Thread: Ajax.net
View Single Post
Old 08-01-2011, 03:53 AM   #1
Q1u4r8a9n
 
Posts: n/a
Default Ajax.net

1.Web.config file ,Vibram FiveFingers New Styles tag added :

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

3.Sql.cs class has a usage CheckID (appoint), check whether the name yet exists in the database ;

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

5.Register.aspx to multiplication the HTML script babies :


6.Register.aspx page in a txt carton txtName, one HTML clasp btnCheck,
properties of the btnCheck oncleck value defined in step 4 to fill the feature Check ();

only so mini ... I ambition likewise use this step is probably not nice .. of kid .
made ​​here because also obtainable for your reference .. I forgot to look by while ..- - |

Note : Register.aspx is your own login sheet .
Sql.cs is the file control wafer .
  Reply With Quote

Sponsored Links