1.Web.config file ,
Vibram Fivefinger tag added :
<add verb = POST, GET :
Ajax.Utility.RegisterTypeForAjax (typeof (Register));
3.Sql.cs class has a method CheckID (appoint), check if the name already exists in the database ;
4.Register.aspx code-behind file in a large part :
[Ajax.AjaxMethod]
public string CheckName (string name)
{
Sql sql = current Sql ( );
return sql.CheckID (name);
}
5.Register.aspx to multiplication the HTML script kid :
6.Register.aspx sheet in a txt box txtName, an HTML clasp btnCheck,
properties of the btnCheck oncleck amount defined in step 4 to fill the feature Check ();
only so tiny ... I ambition likewise use this tread is probably no nice .. of babies .
made here for also accessible because your reference .. I forgot to look at when ..- - |
Note : Register.aspx is your own login page .
Sql.cs is the file control membrane .