var s = dt.maxid().ToList();
int id = 0; ;
foreach (var a in s)
{
id= a.id.Value;
}
var aa= dt.insertuser(id, txtuname.Text, txtpas.Text, txtname.Text, txtcnum.Text, txtadd.Text, txtemail.Text,DateTime.Now.Date);
string a1 = "";
foreach (var aaa in aa)
{
a1 = aaa.sts.ToString();
}
ScriptManager.RegisterStartupScript(this, typeof(Page), "1", "alert('"+a1.ToString()+"')", true);
No comments:
Post a Comment