惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
腾讯CDC
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
Vercel News
Vercel News
P
Proofpoint News Feed
雷峰网
雷峰网
博客园_首页
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
爱范儿
爱范儿
V
V2EX
F
Fortinet All Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
MyScale Blog
MyScale Blog
S
SegmentFault 最新的问题

博客园 - Gordon Golden Shining

who am I inside of me STGenerator Released Asp.net page lifecycle explain in msdn 我做的代码生成的工具的思路 (支持.NET2.0) Programming Haskell in Visual Studio.net 2003 C#/VB.Net converter A good book to read A possible way for testing threading/server application a break in .net 2.0 remoting WinXP sp2 and win 2003 does break com+/System.Transaction 2.0 You have to read this All about codes generation New tools box for year 2005 Recommend: IOC container must read article dynamic proxy how to How to implement AOP in .net My Wishlist for .net development some common used tips in web development No refresh dropdownlist using xmlhttp callback
ObjectDataSource的Add-In
Gordon Golden Shining · 2006-08-29 · via 博客园 - Gordon Golden Shining

Asp.net 2.0 的 ObjectDataSource 有一个很讨厌的地方,就是它的TypeName都是一个String
所以不能用Go To Definition去方便的自动跳到它引用的类. 所以就自已写了一个AddIn
可以自动跳到它引用的Project 的文件,比较方便.

安装下面的文件,然后去Tools->Options->Add-in下加入安装目录找到Add-In的位置Load出来就行了.

用起来也简单, 在ASPX的Souce窗口下,点右键,有多一个Menu. "Find Class", 在ObjectDataSource里点它
就会自动找到它引用的文件了.

有一个重点就是, 要把Menu 安装到_applicationObject.CommandBars)["ASPX Context"]里才行.

然后操作TextSelection, 去找到TypeName和MethodName,然后调用CodeElement来找到ProjectItem就OK了.

不过Vs.Net 2005下还有个Bug. a change of behavior retrieving the ProjectItem.FileCodeModel in Visual Studio 2005 Web projects

MSI Setup

Source Code