User talk:Mdfachowdhury

'''Creating a message alert using java script in c

Just add the following function in your class module:

using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data; using System.Data.Sql; using System.Data.SqlClient;

/// /// Summary description for GetData /// public class GetSQLData { public GetSQLData { } public void CreateMessageAlert(System.Web.UI.Page senderpage, string alertMsg, string alertKey) {       string strScript; strScript = "alert('" + alertMsg + "') "; if (!senderpage.IsStartupScriptRegistered(alertKey)) {          senderpage.RegisterStartupScript(alertKey, strScript); } }

Then call it from your aspx page:

GetSQLData _DBModule = new GetSQLData; _DBModule.CreateMessageAlert(this, "Select Lot [Warning]: Lot Not Available for Selection. Please Select a different Lot", "alertKey");