Keeping values on form after submition

Posted by Lina on Stack Overflow See other posts from Stack Overflow or by Lina
Published on 2010-04-08T08:41:06Z Indexed on 2010/04/08 8:43 UTC
Read the original article Hit count: 327

Filed under:
|

Hi,

I'm trying to keep the entered data in the form after submitting by using "value=..."

I'm getting a compilation error on the following code:

<form id="myform">
           <input id="hour" type="text" name="hour" value="<%=hour%>" style="width:30px; text-align:center;" /> :
           <input id="minute" type="text" name="minute" value="<%=minute%>" style="width:30px; text-align:center;" />
           <br/>
           <input type="submit" value="Validate!" />
</form>

the error is : Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'hour' does not exist in the current context

any solution? thanks a lot in advance, Lina

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about form