Form tags

netpicker9

Member
Joined
Dec 8, 2004
Messages
17
Programming Experience
1-3
Hi Guys,

Please look at this..

VB.NET:
<html>
<head>
</head>
<body>
<Table >
<tr>
<td>I have some controls here..</td>
</tr>
</form>
<Form action="One.aspx" method="post" onSubmit="CalculateF()">
<input type="hidden" name="txtFirst" value="">
<input type="hidden" name="txtSecond" value="">
<tr>
<td><input type="Submit" Name="Show" ></td>
</tr>
</form>
<Form action="Two.aspx" method="post" onSubmit="DoPost()">
<input type="hidden" name="txtFinal" value="">
<input type="hidden" name="txtBill" value="">
<tr>
<td><input type="Submit" Name="Return" ></td>
</tr>
</form>
</Table >
</body>
</html>

I have a ASPX Page like this.. It has Three Form Tages, calling three different pages. Each Form tag is associated with a JavaScript Function,
which will return some values to the Hidden fields (look in form tag). Based on return values and if user submits that perticular button, it will redirect to that page..

My requirment is, I don't want to code like this in ASPX Page.. I want to have One Form tag per page.. and asp server controls which will do the same functionality for me..

How can I do that? Passing hidden field values to next page and javascript fucntions..

also if I am doing like this, Visual Studio 2005 editor show some errors (Warnings)..
For example "Element 'form' cannot be nested within element 'tr'."

Please suggest me.

Thanks
 
Back
Top