try
{
if (Convert.ToInt32(this.txtPage.Text) > totalPage || Convert.ToInt32(this.txtPage.Text)1)
{
ClientScript.RegisterClientScriptBlock(GetType(), "提示", "alert('请输入有效数字!')", true);
}
else
{
ViewState["pageindex"] = this.txtPage.Text;
GetData();
}
}
catch (Exception)
{
ClientScript.RegisterClientScriptBlock(GetType(), "提示", "alert('请输入有效数字!')", true);
}