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

推荐订阅源

D
DataBreaches.Net
L
LangChain Blog
博客园_首页
J
Java Code Geeks
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
WordPress大学
WordPress大学
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
C
Check Point Blog
IT之家
IT之家
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
D
Docker
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ

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