that's not dot net
this is:
<script language="C#" runat="server">
string strTest = "test";
void Page_Load()
{
myHiddenField.value = strTest;
}
</script>
<body>
<form id="try" runat="server" >
<asp:hiddenfield runat="server" id="myHiddenField" />
</form>
</body>
--
Bruno Alexandre
K鴅enhavn, Danmark
"a Portuguese in Denmark"
Blog.
http://balexandre.blogspot.com/
Photos.
http://www.flickr.com/photos/balexandre/
"David Jia" <> wrote in message
news:%...
>I have a html form in aspx pages, so how can I grant value to the hidden
>field in this form?
>
> For Example:
>
> <body>
> <script language="C#" runat="server">
>
> string strTest = "test";
> </script>
>
> <form name="try" action="post" >
> <input name="test1" type="hidden" />
> </form>
>
> How to make test1's value equals to strTest in C# script. Thank you very
> much
>