.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Articles >> C# >> Post New Resource Bookmark and Share   

 Subscribe to Articles

A simple ajax login page in c#

Posted By:Gowthammanju       Posted Date: July 30, 2011    Points: 200    Category: C#    URL: http://www.dotnetspark.com  

These Article explains about a simple login page using ajax in c#.net

Hey this is the common way to create the login page using ajax as

Include the below style sheet in head section as

Include the various functions which is describe in java script as

In body place the script manager as

Now insert the panel in body with a table inside as


use name space as

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

finally include source code as

public partial class _Default : System.Web.UI.Page

    public static string Login(string Username, string Password)
        string Response = "";

        if (Username == "john" && Password == "secret")
            Response = "1";
            Response = "0";
        return Response;

hence u find the way for correct solution for simple ajax login page

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend