Re: get value from html
- From: "Eliyahu Goldin" <removemeegoldin@xxxxxxxxxxxxxx>
- Date: Mon, 3 Apr 2006 10:14:29 +0200
Yaniv,
All you need to do is to add runat="server" to the input:
<input type="hidden" id="txtSubmitText" runat="server" name="txtSubmitText">
The name attribute is not really needed.
If you are with Visual Studio 2003, you will need to switch from HTML to
Design view and the VS will generate a reference to txtSubmitText in the
code-behind file. Alternatively you can add a reference yourself as
protected System.Web.UI.HtmlControls.HtmlInputHidden txtSubmitText;
In VS2005 you don't need any references in code-behind/
Eliyahu
"éðéá" <@discussions.microsoft.com> wrote in message
news:D550C2D9-D5DF-436D-A348-376A17CF6439@xxxxxxxxxxxxxxxx
i'm using input field like this:
<form id="frmSubmitForm" name="frmSubmitForm" action="Class1.aspx"
method="post">
<p><input id="btnSubmit" name="btnSubmit" type="button" value="Submit"
onclick="SubmitXML()"></p>
<input type="hidden" id="txtSubmitText" name="txtSubmitText">
</form>
"Eliyahu Goldin" wrote:
What html element on the form is used for getting the user input?
Eliyahu
"????" <@discussions.microsoft.com> wrote in message
news:A84FD19F-16C4-429B-B21F-D94267059664@xxxxxxxxxxxxxxxx
i know how to write string into file c# but i don't know how to recive
the
value from the html into the ASP (get the value ti the server side i
guess..)
Yaniv
"Eliyahu Goldin" wrote:
What is your particular problem? Getting the value to the server side?
Writing a file?
Eliyahu
"????" <@discussions.microsoft.com> wrote in message
news:8AF4A5D5-DD6E-4A44-9F54-9DBF723B17E9@xxxxxxxxxxxxxxxx
hey,
i have a value that i get from the user using form - (javaScript
code)
.
now i want to write it on file,
how can i do it ? (asp. C#) ?
thanks
yaniv
.
- References:
- Re: get value from html
- From: Eliyahu Goldin
- Re: get value from html
- From: Eliyahu Goldin
- Re: get value from html
- Prev by Date: Re: How to set for debug/release
- Next by Date: Re: Check Image is over another Image
- Previous by thread: Re: get value from html
- Next by thread: What special thing is doing Page.Render
- Index(es):