Assign value to HTML control

G

Guest

Hi
Unless it is a server control it cannot be accessed at the server side. You can set the value of the textbox by making it as a runat = server control
the bes
srini
 
A

Ashish M Bhonkiya

Hi Grey,
HMTL or HTML ?

to assign the value to the HTML textbox you need to the add the runat="server" attribute for the html textbox

once you have that you can access that html textox control with its id and assign the value
myHTMLTextBox.Value = "Hello";

HTH
Regards
Ashish M Bhonkiya

I want to assign a value to HMTL textbox with id "txtABC" in ASP.NET with C#
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top