event handler in VS 2005 designer

H

Hong

Hi,

I am trying to wire an event handler to ASP.NET control event in VS
2005 designer view for an aspx page. When I double click on the event
in the Property box, the event handler is added to the top part of
apsx file instead of the code behind cs file. How can I config VS 2005
so that it will add the event hanlder to cs file?

Thanks!
hshen
 
M

mike

Hi,

I am trying to wire an event handler to ASP.NET control event in VS
2005 designer view for an aspx page. When I double click on the event
in the Property box, the event handler is added to the top part of
apsx file instead of the code behind cs file. How can I config VS 2005
so that it will add the event hanlder to cs file?

Thanks!
hshen

when you start a new page, you have the option (checkbox at bottom of
dialog) to place code in a seperate file and also an option to choose
which language you would like to use. make sure you choose to place
code in seperate file to create the .cs file
 
H

Hong

when you start a new page, you have the option (checkbox at bottom of
dialog) to place code in a seperate file and also an option to choose
which language you would like to use. make sure you choose to place
code in seperate file to create the .cs file

Thanks for your reply. The issue is that I have a lot of pages
upgraded from VS 2003. They are already there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top