Alert Message and Focus Asp.net
Example:
public static void msgAndFocus(string message, Page page, string ctrl_Id)
{
ScriptManager.RegisterStartupScript(page.Page, page.GetType(), Guid.NewGuid().ToString(), string.Format("alert('{0}');document.getElementById('{1}').focus();", message, ctrl_Id), true);
}
Example:
public static void msgAndFocus(string message, Page page, string ctrl_Id)
{
ScriptManager.RegisterStartupScript(page.Page, page.GetType(), Guid.NewGuid().ToString(), string.Format("alert('{0}');document.getElementById('{1}').focus();", message, ctrl_Id), true);
}
บทความใหม่กว่า บทความที่เก่ากว่า หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
0 ความคิดเห็น:
แสดงความคิดเห็น