Forum  General Visual ...  How do I...?  MessageBox is not being displayed
Previous Previous
 
Next Next
New Post 9/13/2010 12:35 AM
  rajeev2012
128 posts
5th Level Poster


MessageBox is not being displayed 

 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

 
New Post 9/13/2010 9:20 AM
  rajeev2012
128 posts
5th Level Poster


Re: MessageBox is not being displayed 

 Sir, 

Any suggestion?

 

 

 
New Post 9/14/2010 4:40 AM
  rajeev2012
128 posts
5th Level Poster


Re: MessageBox is not being displayed 

 I have got stuck cos of this issue ...

kindly let us know your expert coments

 

 

 
New Post 9/19/2010 8:52 AM
  ori.cohen
4401 posts
1st Level Poster




Re: MessageBox is not being displayed 

Hello Rajeev,

It may be very helpful if you could please describe to me what it is that you are trying to accomplish in the UI flow, and what is the scenario you are constructing in your application. It would greatly help me see the bigger picture. I will then be able to either create an issue for required changes in our framework, or suggest to you the best implementation available to achieve what you want in your VWG application.

I am not really sure even what you are asking here.
Are you encountering a problem running your code?

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 9/21/2010 11:15 PM
  rajeev2012
128 posts
5th Level Poster


Re: MessageBox is not being displayed 

 Hi

I have put the complete code and have explained entire scenario, hence am not sure what else detail I can provide to you. Yet, i try to elaborate my issue,

 

We are using an '.aspx' page (existing Home Page with lots of design and UI stuff) in our webgui project. This home page has regular login screen that allows user to access our system. As per the standard, the login screen throws appropriate message in case of invalid login/password etc...., it work perfectly fine if I use 'Alert' (Javascript) to display the same. However, since the complete application is in visualweb gui, in all other screens we get proper message box, Hence we thought to have the same in this home page, too.

In light of above scenario, we have used 'AspPageBox' as an container to dock our '.aspx' home page and have written the attached code (first post) to get a message box through home page. But, we have found that this is not working properly if there is a delay (like in debug mode).

I hope this post will help you to understand our scenario and issue.

 

Regards

Rajeev

 

 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  MessageBox is not being displayed
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS