Welcome to Bilal Haidar [MVP, MCT] Official Blog Sign in | Join | Help

Code-Behind - Server Objects & Events

I had been always wondering how can I add the Server Objects & Events dropdownlist to my projects that I work on.

I was browsing on the ASP.NET forums and found out this thread:
http://forums.asp.net/thread/1276007.aspx

In that thread, an ASP.NET team member says:

"the Server Objects & Events dropdown in the .aspx editor only applies to inline code not code behind files."

Why is that? This option is very helpful! I know we can use the strong Intelisence in Code-Behind, but at least it reminds us of all the available methods present in the page!

Can somebody explain please?

Regards

Published Thursday, May 25, 2006 4:33 AM by BilalHaidar [MVP]
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Code-Behind - Server Objects & Events

Hi Bilal, this seems unfortunately something that's not added in vs.net 2005 for C# users. Take a look at this thread: http://forums.asp.net/thread/1101557.aspx. The only thing I can say is that you, in de code behind, just need to type in protected override followed by a space an then Intellisense kicks in and you're able to select the event to override. Be sure to let the base call be left in the method.

Grz, Kris.

Friday, May 26, 2006 10:30 AM by XIII

# re: Code-Behind - Server Objects & Events

Hi Kris:

Thanks for the response. I know I can use the great intellisense in VS 2005, but I thought there was a nice way of doing so, just as in code-Inline.

You can even right click on the page, View Component Desiger, then Page Properties, you can find a list of all the needed methods to override!

Regards

Friday, May 26, 2006 11:07 AM by BilalHaidar [MVP]

Leave a Comment

(required) 
required 
(required)