Thread: Ajax.net
View Single Post
Old 07-24-2011, 01:55 AM   #1
Q1p0i0n9w
 
Posts: n/a
Default Ajax.net

1.Web.config file ,Supra Skytop II Shoes tag added :

<add verb = POST, GET :
Ajax.Utility.RegisterTypeForAjax (typeof (Register));

3.Sql.cs class has a means CheckID (name), check whether the name already exists in the database ;

4.Register.aspx code-behind document in a way :
[Ajax.AjaxMethod]
public string CheckName (string name)
{
Sql sql = fashionable Sql ( );
return sql.CheckID (label);
}

5.Register.aspx to join the HTML script children :


6.Register.aspx page in a txt carton txtName, an HTML button btnCheck,
properties of the btnCheck oncleck merit defined in tread 4 to fill the function Check ();

only so tiny ... I will also use this step is probably no agreeable .. of kid .
made ​​here for likewise available because your reference .. I forgot to look at when ..- - |

Note : Register.aspx is your own login page .
Sql.cs is the data control floor .
  Reply With Quote

Sponsored Links