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

推荐订阅源

博客园_首页
爱范儿
爱范儿
罗磊的独立博客
V
V2EX
量子位
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
Jina AI
Jina AI
博客园 - 叶小钗
小众软件
小众软件
博客园 - 【当耐特】
Y
Y Combinator Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell

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