[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB ASP.net popup question

Posted on 2011-05-10
6
Medium Priority
?
608 Views
Last Modified: 2012-05-11
I am writing a web site application in vb.net using asp.net 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 asp.net, 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
            p.Start()
            p.WaitForExit()

            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
                Response.Redirect("rptStoresFlashSummary.aspx")
            End If
        End If
    End Sub

Open in new window

0
Comment
Question by:EYoung
  • 3
  • 3
6 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35731971
0
 
LVL 7

Author Comment

by:EYoung
ID: 35733778
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?

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 35736099
>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.
0
 
LVL 7

Author Closing Comment

by:EYoung
ID: 35739111
I think I will try the label route first.  Thanks
0
 
LVL 7

Author Comment

by:EYoung
ID: 35742166
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
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…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses
Course of the Month19 days, 14 hours left to enroll

873 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