To copy This code and paste for design the table:-
<table align="center" class="style1"
style="color: #FF0000; font-size: medium; font-weight: bold; font-style: italic">
<tr>
<td align="center" class="style2" colspan="2">
<div id="js_clock" style="text-align: left; font-size: 8pt; vertical-align: top;
color: olive; text-align: center;">
<script type="text/javascript"> function js_clock() {
var clock_time = new Date();
var clock_hours = clock_time.getHours(); var clock_minutes = clock_time.getMinutes();
var clock_seconds = clock_time.getSeconds(); var clock_suffix = "AM";
if (clock_hours > 11) { clock_suffix = "PM"; clock_hours = clock_hours - 12; }
if (clock_hours == 0) { clock_hours = 12; } if (clock_hours < 10) { clock_hours = "0" + clock_hours; }
if (clock_minutes < 10) { clock_minutes = "0" + clock_minutes; }
if (clock_seconds < 10) { clock_seconds = "0" + clock_seconds; } var clock_div = document.getElementById('js_clock');
clock_div.innerHTML = clock_hours + ":" + clock_minutes + ":" + clock_seconds + " " + clock_suffix; setTimeout("js_clock()", 1000);
}
js_clock();
</script>
</div>
Welcome To Log in..</td>
</tr>
<tr>
<td align="center" class="style2" colspan="2">
Log In</td>
</tr>
<tr>
<td class="style2">
Username</td>
<td>
<asp:TextBox ID="txtuid" runat="server" Width="123px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style2">
Password</td>
<td>
<asp:TextBox ID="txtpsw" runat="server" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style2">
</td>
<td>
</td>
</tr>
<tr>
<td class="style2">
</td>
<td>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Log in" />
</td>
</tr>
<tr>
<td class="style2">
<asp:Label ID="lblstatus" runat="server"></asp:Label>
</td>
<td>
</td>
</tr>
</table>
style="color: #FF0000; font-size: medium; font-weight: bold; font-style: italic">
<tr>
<td align="center" class="style2" colspan="2">
<div id="js_clock" style="text-align: left; font-size: 8pt; vertical-align: top;
color: olive; text-align: center;">
<script type="text/javascript"> function js_clock() {
var clock_time = new Date();
var clock_hours = clock_time.getHours(); var clock_minutes = clock_time.getMinutes();
var clock_seconds = clock_time.getSeconds(); var clock_suffix = "AM";
if (clock_hours > 11) { clock_suffix = "PM"; clock_hours = clock_hours - 12; }
if (clock_hours == 0) { clock_hours = 12; } if (clock_hours < 10) { clock_hours = "0" + clock_hours; }
if (clock_minutes < 10) { clock_minutes = "0" + clock_minutes; }
if (clock_seconds < 10) { clock_seconds = "0" + clock_seconds; } var clock_div = document.getElementById('js_clock');
clock_div.innerHTML = clock_hours + ":" + clock_minutes + ":" + clock_seconds + " " + clock_suffix; setTimeout("js_clock()", 1000);
}
js_clock();
</script>
</div>
Welcome To Log in..</td>
</tr>
<tr>
<td align="center" class="style2" colspan="2">
Log In</td>
</tr>
<tr>
<td class="style2">
Username</td>
<td>
<asp:TextBox ID="txtuid" runat="server" Width="123px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style2">
Password</td>
<td>
<asp:TextBox ID="txtpsw" runat="server" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style2">
</td>
<td>
</td>
</tr>
<tr>
<td class="style2">
</td>
<td>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Log in" />
</td>
</tr>
<tr>
<td class="style2">
<asp:Label ID="lblstatus" runat="server"></asp:Label>
</td>
<td>
</td>
</tr>
</table>
After design the table than copy the following code and goto the web.config file and paste this code :-
Hints-You can provide username and password as Your choice :-
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<authentication mode="Windows">
<forms loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name="admin" password="admin"/>
</credentials>
</forms>
</authentication>
<identity impersonate="true"/>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<compilation debug="true" targetFramework="4.0"/>
<authentication mode="Windows">
<forms loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name="admin" password="admin"/>
</credentials>
</forms>
</authentication>
<identity impersonate="true"/>
<authorization>
<deny users="?" />
</authorization>
</system.web>
No comments:
Post a Comment