Author: techissue2008 | Posted on: 9/14/2009 7:50:16 PM | Views : 824

 I use ASP.NET and VC#.

How can I
1. display logout hyperlink after successful login in ajax
2. create a session : Session["ClientID"] = "123";
3. display invalid meassage for failed login
<asp:TextBox ID="username1" runat="server" /> <asp:TextBox ID="password1" TextMode=Password runat="server" /> <asp:imagebutton id="buttonLogin" runat="server" ImageAlign=AbsBottom /> <script language="javascript" type="text/javascript"> $(document).ready(function() { $("#buttonLogin").click(function(){ $.ajax({ type: "POST", url: "WebService.asmx/Login", data: "{username: '" + $('#username1').val() + "', password: '" + $('#pass ...

Go to the complete details ...