Session["Username"]; = "Vuyiswamb";
txtUsername.Text = Session["Username"];
Thank you for posting at Dotnetfunda [Administrator]
Thanks & Regards Rajkumar J
<table style="width:40%;"> <tr> <td class="style5"> </td> <td class="style6" align="center"> <h1> Log In</h1> </td> </tr> <tr> <td class="style4"> User Name</td> <td class="style2"> <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="250px" style="font-family: Verdana"></asp:TextBox> </td> </tr> <tr> <td class="style4"> Password</td> <td class="style2"> <asp:TextBox ID="TextBox2" runat="server" Height="20px" Width="250px" style="font-family: Verdana" AutoCompleteType="Disabled" TextMode="Password"></asp:TextBox> </td> </tr> <tr> <td class="style5"> </td> <td class="style2"> <asp:Button ID="btnLogin" runat="server" Height="27px" Text="Log In" Width="70px" onclick="Button1_Click" Font-Italic="False" style="font-family: Verdana" /> <asp:Label ID="lblError" runat="server" ForeColor="#990000" style="font-family: Verdana"></asp:Label> </td> </tr> </table>
Session["User"] = strUser.ToString(); Response.Redirect("page2.aspx");
<asp:Label ID="lblUserName" runat="server" Text="Guest"></asp:Label>
rotected void Page_Load(object sender, EventArgs e) { strUserName = Session["User"].ToString(); lblUserName.Text = Session["User"].ToString(); }
Thanks SagarP http://www.emanonsolutions.net http://emanonsolutions.blogspot.com/
Login to post response