n1.InnerHtml = txtName.Text;
n1.InnerHtml = txtCountry.Text;
Alfa
US
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 attend4days leftRegister
Manikavelu VelayuthamRank #413 · 6K reputationPosted Jan 4, 2011, 7:23 PM EST
HTML controls are not accessible in code behind page.
To access the HTML controls, it should be converted to server controls.
To convert the control, an ID should be given along with the 'runat="server' tag.
Finally you can access it in code behind page.