Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

How do I use HTML textbox in C#?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan Aldean - 23 Nov 2006 00:56 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.