Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends
I have aspx file with aspx.cs file but aspx.designer.cs is not available, so all the controls not visible in code behind file because of not intialization. how can create a designer file for that particular aspx.cs file.
Thanks
Posted

U have to Delete that page and create again.
 
Share this answer
 
Comments
baskaran chellasamy 10-May-13 10:13am    
i created designer page. but i have some problem with controls.I have dragged the textbox into aspx file but when i enter the name of the textbox in the aspx.cs file, it shows the TextBox1 not available in the current context. what is the problem?
Hi Baskaran,
Designer classes get created automatically by a tool like Visual Studio.

So we shouldn't create them manually. If in any case, acidentally if the designer class modified or deleted, then we need to delete the corresponding page (backup should be taken) and again create from Scratch...

I hope you got the point. But still if you have any queries do revert back.


Best of luck...
 
Share this answer
 
Simply....

You might be creating a ASP.net website instead of creating a ASP.net Project.

While creating a new web application don't choose the Website, instead choose Project in that choose asp.net web application.

YOUR PROBLEM WILL GET SOLVED...
 
Share this answer
 

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

  Print Answers RSS


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