Click here to Skip to main content
15,891,876 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am getting c# code (which is generated automatically on doubble clicking controls) in designer instead of code behind. How can i solve this?
Posted
Comments
Ron Beyer 21-Aug-13 13:59pm    
Are you saying that when you double click a control, that you are getting the method prototype in the .Designer file, and not in the code-behind file? There is some code that is added to the designer file to wire the event to the method, but the method prototype itself should be placed in the code behind, with the MyControl.MyEvent += MyEventHandler in the designer.
ZurdoDev 21-Aug-13 14:03pm    
I think they are saying the code is in the asax file.

1 solution

Make sure Place code in separate file check box is enabled in the Add New Item dialog box
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900