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

推荐订阅源

T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
博客园 - Franky
The Cloudflare Blog
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
B
Blog
Y
Y Combinator Blog
V
V2EX
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
博客园 - 司徒正美
IT之家
IT之家
G
Google Developers Blog
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - 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