validation should be done without using any Validations controls
i mean form is design as
Textbox1(required Field validation)
textbox2(Email Validation)
Textbox3( Numeric validation)
Textbox4(NO special characters validation)
Textbox5(Alpha numeric validation)
Textbox6(Date validation)
here i need code using java script in asp.net without using any Validation controls to toolbox ........
and also give me information how to do in Asp.net
i have try lot but iam not getting solution where javascript code should write and where asp.net code should write. how it works...............
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="javascript">
<!--
function Form1_Validator(theForm)
{
var alertsay = "";
if (theForm1.Name.value == "")
{
alert("You must enter an Name.");
theForm.Name.focus();
return (false);
}
}
</script>
<head runat="server">
<title><;/title>
</head>
<body>
<form id="form1" runat="server">
<form action="javascript.asp?<%--ID=<%=siteID%>--%>"
method="POST" onsubmit="return Form1_Validator(this)" name="Form1">
<input type="submit" name="Submit" value="Submit">
<asp:Label ID="Label1" runat="server"
style="z-index: 1; left: 42px; top: 291px; position: absolute"
Text="Label"></asp:Label>
<asp:TextBox ID="Name" runat="server"
style="z-index: 1; left: 96px; top: 287px; position: absolute"></asp:TextBox>
</form>
</form>
</body>
</html>
i have written code like this but it not working
pls help me i am new for .Net.........