Validation controls
What is the role of runat="server" ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dhaval PatelRank #1,023 · 1.9K reputationPosted Jan 17, 2012, 8:03 PM EST
Using runat="server" on controls allows you to access and change it via the code behind. example: Server side: not use in lable1 from server side(code behind) .. you are not able to bind any value in label but runat="server" Text="Lable:"> runat="server" has been used so, you will be get lable1 from clint side .... label1.text=""; This post help you than please mark as Accepted AnswerJignesh TrivediRank #16 · 50.3K reputationPosted Jan 17, 2012, 9:51 PM EST
As per my understanding ASPX contains mix tags are asp tags and HTML tags and HTML tags has an option of either it expose on server side (code behind file). But Asp tag must have runat server tags and it must expose in code behind file.
hope this help.