VB popup question

Posted on 2011-05-10
Last Modified: 2012-05-11
I am writing a web site application in using 4.0 and vs2010.  Everything so far is working well.

Now I want to add some type of popup window or message on the screen that tells the user that a process they have started is running.  As I am new to, I could use some guidance as how best to accomplish this.

In WinForm coding I would just popup a small form on the screen that tells the user a process is running and when the process has completed, I would end the form.

In WebForm coding I don't know if that is the correct approach or even how to accomplish it if it is the best approach.

Attached is the code that contains the process.  Following the "If IsPostBack Then" line I would like to notify the user that a process is running.  Then when the process ends (following the "p.WaitForExit()" line, I would like to remove the popup or message.

Thank you for any ideas and suggestions.
Protected Sub btnSummary_Start_Click(sender As Object, e As System.EventArgs) Handles btnSummary_Start.Click
        If IsPostBack Then
            'First, prepare the Retail_Flash_Detail table 
            Dim targetDir As String
            Dim p As New Process
            targetDir = ("\\tta-cwdw\Apps")
            p.StartInfo.WorkingDirectory = targetDir
            p.StartInfo.FileName = "Retail_Flash_Detail.exe"
            p.StartInfo.Arguments = txtSummary_ManualDate.Text
            p.StartInfo.CreateNoWindow = False

            If rdlEmail_or_Display_Summary_Report.Items(0).Selected = True Then     'Email to recipients
                'Call code to email report to recipients
            Else                                                                    'Display report on screen
                Session("mSales_Date_Parm") = txtSummary_ManualDate.Text
            End If
        End If
    End Sub

Open in new window

Question by:EYoung
    LVL 83

    Expert Comment

    LVL 83

    Expert Comment

    LVL 7

    Author Comment

    Thanks for posting the suggestions.  Isn't there an easier way to display a message?  Seems like a lot of coding.  I would like to just post a message saying "Processing data...".  Maybe Web coding is just a lot more cumbersome than Windows coding?

    LVL 83

    Accepted Solution

    >Maybe Web coding is just a lot more cumbersome than Windows coding?

    It is.

    > I would like to just post a message saying "Processing data...".

    There are many ways for doing that actually. You can just add a label on page which says processing data or you can add a javascript Alert but this can be closed. The links I posted are about showing a Javascript Popup modal dialog.
    LVL 7

    Author Closing Comment

    I think I will try the label route first.  Thanks
    LVL 7

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This video teaches users how to migrate an existing Wordpress website to a new domain.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now