Click here to Skip to main content
15,886,026 members
Articles / Web Development / ASP.NET

Chat Application in ASP.NET Using AJAX (Pop-up Windows)

Rate me:
Please Sign up or sign in to vote.
4.83/5 (28 votes)
7 May 2010CPOL3 min read 151.5K   23.2K   66  
Chat application in ASP.NET using AJAX and SQL Server.
Public Partial Class Login
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnLogin.Click
        If (((txtUserID.Text.ToUpper() = "USER1") And _
                   (txtPassword.Text = "User1@123")) Or _
                   ((txtUserID.Text.ToUpper() = "USER2") And _
                   (txtPassword.Text = "User2@123")) Or _
                   ((txtUserID.Text.ToUpper() = "USER3") And _
                   (txtPassword.Text = "User3@123"))) Then
            FormsAuthentication.RedirectFromLoginPage _
                 (txtUserID.Text, False)
        End If

    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
India India
Hi, I am Narsimlu Keshagouni working as Technical Lead in Hyderabad, India.

Comments and Discussions