LOGIN FORM IN ASP

PROGRAM:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication4._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<script type ="text/javascript" >
function testlogin()
{
if ((form1.text1.value=="")||(form1.p1.value==""))
alert ("user id not entered ");
window .close();
}
function timecheck()
{
form1.text1.value==""
var t=setTimeout ("testlogin()",10);
}
function disp()
{
var a;
a=form1.text1.value;
alert("user id is "+a);
}
</script>

    <title></title>
</head>
<body onload ="javascript:timecheck()">
    <form id="form1" runat="server">
    ENTER NAME
    <input type ="text" id="userid"name="text1"/><br />
    ENTER PASSWORD
      <input type ="password" id="pwd"name="p1"/><br />
      <input type="button" value ="submit" onclick ="disp()" />
    <div>
   
    </div>
    </form>
</body>
</html>

No comments:

Post a Comment