How to call a method in aspx.cs from Class file?
How to call a method in aspx.cs from Class file?Class.cs
public int progressbar(int Total)
{
// all validation are done here. Based on each validaiton done Im displaying a progress bar message accordingly..
System.Web.UI.Page.UpdateProgress(msg,total); // How to call this file??????
}
aspx.cs
public static void UpdateProgress(string msg, int percent)
{
System.Web.HttpContext.Current.Response.Write(String.Format("<script type=\"text/javascript\">parent.UpdateProgress({0}, '{1}');</script>", percent, msg));
System.Web.HttpContext.Current.Response.Flush();
}