<div id="login-box" class="login-popup"> <a href="#" class="close"> <img src="images/close_pop.png" class="btn_close" title="Close Window" alt="Close" /> </a> <form class="signin" action="#" method="post"> <div style="margin-bottom: 17px; padding-bottom: 11px; border-bottom: 1px solid #E6E6E6;float: left; width: 100%;"> <div style="float: left; margin-left: 30%;"> <img src="images/popup_logo.png" alt="LOGO" /> </div> <div style="text-align: center; margin: 8px 0px 3px 48px; float: left; width: 74%;color: #1B4C7B;font- family:Verdana; font-size:14px; font-weight: bold;"> Welcome To Silicon Home </div> </div> <div class="popup-form"> <fieldset class="textbox"> <label class="username"> <asp:TextBox ID="user_name" runat="server" placeholder="Username or Email"></asp:TextBox> </label> <label class="password"> <asp:TextBox ID="user_password" runat="server" placeholder="Password" TextMode="Password"></asp:TextBox> </label> <asp:Button ID="login_btn" runat="server" Text="Sign in" OnClick="login_btn_Click" /> <div style="float: left; width: 100%; margin-bottom: -4px;"> <p style="margin-top: 15px; margin-bottom: 5px; float: left; width: 45%;"> <a class="forgot" href="#">Not yet Registered?</a> </p> <p style="margin-top: 10px; margin-bottom: 5px; float: left; width: 38%; margin-left: 57px;"> <asp:Label ID="Login_Status" runat="server" Text="" ForeColor="Red"></asp:Label> </p> </div> </fieldset> </div></form>
<script type="text/javascript"> $(document).ready(function () { $('a.login-window').click(function () { // Getting the variable's value from a link var loginBox = $(this).attr('href'); //Fade in the Popup and add close button $(loginBox).fadeIn(300); //Set the center alignment padding + border var popMargTop = ($(loginBox).height() + 24) / 2; var popMargLeft = ($(loginBox).width() + 24) / 2; $(loginBox).css({ 'margin-top': -popMargTop, 'margin-left': -popMargLeft }); // Add the mask to body $('body').append('<div id="mask"></div>'); $('#mask').fadeIn(300); return false; }); // When clicking on the button close or the mask layer the popup closed $('a.close, #mask').live('click', function () { $('#mask , .login-popup').fadeOut(300, function () { $('#mask').remove(); }); return false; }); }); </script>
$(document).ready(function () { $('a.login-window').click(function () { // Getting the variable's value from a link var loginBox = $(this).attr('href'); //Fade in the Popup and add close button $(loginBox).fadeIn(300); //Set the center alignment padding + border var popMargTop = ($(loginBox).height() + 24) / 2; var popMargLeft = ($(loginBox).width() + 24) / 2; $(loginBox).css({ 'margin-top': -popMargTop, 'margin-left': -popMargLeft }); // Add the mask to body $('body').append('<div id="mask"></div>'); $('#mask').fadeIn(300); return false; }); // When clicking on the button close or the mask layer the popup closed $('a.close, #mask').live('click', function () { $('#mask , .login-popup').fadeOut(300, function () { $('#mask').remove(); }); return false; }); });
Session["User_Name"] = user_name.Text; Response.Redirect("~/product.aspx");