I need to use a HTML textbox in C# code.
Any hints, please?
Thanks
Dan Aldean - 23 Nov 2006 01:15 GMT
I cannot use runat="server"
>I need to use a HTML textbox in C# code.
>
> Any hints, please?
>
> Thanks
nick.fletcher@iinet.net.au - 23 Nov 2006 02:18 GMT
Dan,
Can you give some more information about what exactly it is youre
trying to do
> I cannot use runat="server"
>
[quoted text clipped - 3 lines]
>
> > Thanks
Peter Bromberg [C# MVP] - 23 Nov 2006 02:59 GMT
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

Signature
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
> I need to use a HTML textbox in C# code.
>
> Any hints, please?
>
> Thanks
Kevien Lee - 23 Nov 2006 03:12 GMT
I suggest that you can try to use the FreeTextBox control,
may be it is what you want
> I need to use a HTML textbox in C# code.
>
> Any hints, please?
>
> Thanks
Cor Ligthert [MVP] - 23 Nov 2006 06:18 GMT
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
>I need to use a HTML textbox in C# code.
>
> Any hints, please?
>
> Thanks
Dan Aldean - 23 Nov 2006 23:57 GMT
Thanks to all.
the ideea was to be able to access the HTML control (not a server one) in
both javascript and C#
> Dan,
>
[quoted text clipped - 8 lines]
>>
>> Thanks