Blogger Template by Blogcrowds

Alert Message and Focus Asp.net

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);
}

0 ความคิดเห็น:

บทความใหม่กว่า บทความที่เก่ากว่า หน้าแรก