Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

cannot access form controls after using master page

$
0
0

Hi,

I have designed my website in Asp.net.

the aspx page contains <asp:content id="con1" runat="server"> and got the controls within the tags like <asp:label id ="lblxyz" runat="server">

when i go to code behind, I cannot access any controls. I get the error message when i write

lblxyz.Text = "this is it"

error message"lblxyz is not declared" It may be inaccessible due to its protection level.


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>