How do I use HTML textbox in C#?

  • Thread starter Thread starter Dan Aldean
  • Start date Start date
D

Dan Aldean

I need to use a HTML textbox in C# code.

Any hints, please?

Thanks
 
Dan,

Can you give some more information about what exactly it is youre
trying to do
 
Dan,
This is really an ASP.NET question, not a C# language issue, and should be
posted to the ASP.NET newsgroup.
It sounds like you are looking for an HTML "INPUT" field. There is nothing
to stop you from using this in an ASP.NET page, and it does not need to have
the runat=server attribute. The Form field will get posted and is available
in the Request.Parames collection on any postback.

Example:
<input type=text id="myTextbox" >

Peter
 
I suggest that you can try to use the FreeTextBox control,
may be it is what you want
 
Dan,

If you don't want to use the textbox on the server, than just drag it on
your form from the HTML toolbox part and that is all.

Cor
 
Thanks to all.
the ideea was to be able to access the HTML control (not a server one) in
both javascript and 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

Back
Top