1
Answer

Switch from ASPX "Source" to C# codebehind

pethu raj

pethu raj

7y
275
1
I am desinging a form in ASP coding, If i give a button code in .aspx page <asp:Button ID="button1" runat="server" Text="Insert" Font-Bold="true"/> it should be called out in aspx.cs page in C# code, can i know the key or how to call out, if we enter button, gridview it should be called out in C# page, i have attached screenshot for your reference.
 
.ASPX
 
 
 
ASPX.cs 
 

Attachment: Myfinalform.zip

Answers (1)
0
Sam

Sam

NA 157 0 15y

Sam,
Thanks for your good help intentions.
I somehow (not sure) managed to restore the files, but I'm not sure what I did.
I simply collected the files I believed should be in the project and made sure they all are in the right folder with the correct namespace, and the most important (i believe) was getting rid of repetitions.

I find the VS (I use Express) to be extremely (dangerously) sensitive to file handling and lacking good automatic file backup (I used to work with Borland Builder where each build saved full backup of previous builds).
I would nevertheless appreciate any good guidelines that will help me prevent such issues in the future.
Sam
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 15y
Do you still need help?