Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9129733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:48:57+00:00 2026-06-17T07:48:57+00:00

I have a page which displays the following content when it is loaded: <div>

  • 0

I have a page which displays the following content when it is loaded:

<div>
  <img src="loading.gif" alt="Loading" /> Generating PDF Document, please wait.
<div>

At the same time, I want to run this method the code behind automatically:

private void GeneratePdf()
{
    ...
}

Lastly, I want to redirect the user to the File.pdf path once the GeneratePdf() method is completed.

How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:48:58+00:00Added an answer on June 17, 2026 at 7:48 am

    You need to use the Page_Load event as explained here. Additionally, this is a great explanation of the page life cycle. You should take a look at it. Here is some sample code from the above link:

    <script runat="server">//This script runs on the server and dishes up some output for the page.
    Sub Page_Load
    lbl1.Text="The date and time is " & now()
    End Sub
    </script>
    
    <html>
    <body>
    <form runat="server">
    <h3><asp:label id="lbl1" runat="server" /></h3>//This generates the textbox that will be given a value from the above script.
    </form>
    </body>
    </html>
    

    Hope this helps you!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have subclassed UIView object inside a uiscrollview which displays a pdf page. I
I have the following web page, which displays a number of images and a
I have a page which displays my database information. Through each loop, there is
i have a jsf page which displays an image from an url http://ichart.finance.yahoo.com/z?s=^NSEI&t=1d&q=l&l=on&z=l&p=s&a=v&p=s i
I have an ASP page which displays a text box when it loads. It
I have web page in PHP which displays all records in a table. I
Lets say you have a fragment of the page which displays the most recent
We have a Web application (ASP.NET) which displays in some page links to miscellaneous
I have an ASP.Net page, which displays a list of options to the user.
i want to have an iframe, which displays the page given as parameter in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.