Hi
I am using AspPageBox to display an exiting homepage.aspx and am using following code to display error message, which occurred in homepage.aspx.
I am experiencing weired issue, at times error messages are not being pop-up. To resolve this issue, when I did debug, i have found, during debug most of times (approx 7-8 times out of 10-Not showing) I don't see message box even if the control goes to MessageBox.Show(...), whereas the same code is displaying error messages at run time (approx 7-8 times out of 10- Showing)
//The "Default" is a webgui form that has AspPageBox to hold HomePage.aspx page
namespace WebGUIApplication1.HomePage
{
public partial class Home : Gizmox.WebGUI.Forms.Hosts.AspPageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
rightMainPanel1.onButtonClick += new EventHandler(rightUC_onButtonClick);
}
}
private void rightUC_onButtonClick(object sender, EventArgs e)
{
string messsage = rightMainPanel1.getMessage();
if (messsage != string.Empty)
{
showMessage(messsage);
}
}
private void showMessage(string prompt)
{
try
{
Gizmox.WebGUI.Forms.Hosts.AspPageBox asppagebox = (Gizmox.WebGUI.Forms.Hosts.AspPageBox)this.PageContext;
Default msg = (Default)asppagebox.Form;
msg.showMessage(prompt);
}
catch (Exception ex)
{
}
}
}
Does message box (or asppagebox with messagebox) is linked with delay/excecution time
Regards
Rajeev