Thursday, March 29, 2012

Html Help

I'm havinf a problem with the following form tag, as for some reason it doesn't allow me to go to a different page


<%@dotnet.itags.org. Page Language="C#" %>
<html>
<head>
<title>My Page</title>
</head>
<body>
<form runat="server">
<form method="POST" action="http://www.microsoft.com">
<input type="submit" value="15" name="redirect" />
</form>
</form>
</body>
</html>

Can anyone figure why?Hi,
Place HTML <form> outside the Server side <form> :


<%@. Page Language="C#" %>
<html>
<head>
<title>My Page</title>
</head
<body>
<form runat="server">
</form>

<form method="POST" action="http://www.microsoft.com">
<input type="submit" value="15" name="redirect" />
</form>
</body>
</html>

Take a look @. :
-Form-based Programming in ASP.NET
-Wilson WebForm enables Multiple Forms and Non-PostBack Forms

HTH
thanks for that, is it possible to do the same thing within a user control, coz this is where my problem occurs?

No comments:

Post a Comment