Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
Now i start the Visual studio 2015 i insert the Text Box in Designer page.like this
ASP.NET
<asp:TextBox ID="txtDate" runat="server" CssClass="date" ></asp:TextBox>


and access the textbox in code behind i get the following Error:

"The name 'txtDate' does not exist in the current context" how to i solve the Error any one give me the Reference.

Note:
I am using Master page and working windows7 OS with SP1.

Thanks Advance!...

Regards,
Karthik M

What I have tried:

I tried to access the asp controls from code behind in ASP.net 2015.
Posted
Comments
[no name] 11-Feb-16 1:02am    
Where is your textbox control present master or child page?
And in which page you are trying to access the the textbox control?
Member 11889799 12-Feb-16 7:21am    
Hi Kumar,
My Textbox present in the Child Page and access the Textbox in same page code behind.

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