Dynamically load an ASP Page

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Dynamically load an ASP Page

    I'm pretty new to ASP.Net
    (server side)
    Suppose that I have an instance of an ASP Page class, and I want the
    client's web browser to load it.

    I don't necessarily know the URL of the page that I have, I just have an
    instance of it. How do I make the browser load the page.

    If I were writing winform code, it would be something like this:

    MyFormClass oForm = new MyFormClass();
    oForm.Show();




    J.Marsch Guest

  2. Similar Questions and Discussions

    1. Load Image Dynamically
      Hi, brothers :) I'm rather novice in this area. I mean web programming and control building and though. I create UserControl: public class...
    2. Dynamically load of 3d models
      Hi! I'm about to create a larger realtime 3d project. I havn't completely decided on which technology to use, but my first choice is director....
    3. load image dynamically into tilelist icon
      Hey all you Flex gurus, If got a httpservice set up, and my mxml app loads some XML, the data is put into a grid and a tilelist by using the...
    4. Can CSS file load dynamically?
      We have a large application. In our design, we make the whole application as one mxml application, and the other modules are the mxml components to...
    5. Best way to dynamically load jpegs?
      I am new to Flash and actionscript and just getting my feet wet learning how to put the pieces together. I would like to dynamically load series of...
  3. #2

    Default RE: Dynamically load an ASP Page

    Hello Jeremy,

    It seems that you have some misunderstanding here.

    In windows forms application, there is a startup point to run the application. After that, the code runs under user interaction, like
    typical win32 applications. So you could initialize a form and then show it in the code.

    But for asp.net web forms appliation, things are different. It is based on HTTP request/response model. In order to run a
    page, you need to request it from a client's browser. After it is request, asp.net wil run server side code and send response to
    the client. So there is no way to initialize a page and display it like a windows forms. But, you could use functions to open a
    new page in client side, such as showModalDialog.

    For details, I suggest you refer to [url]http://msdn.microsoft.com/library/en-[/url]
    us/vbcon/html/vboriCreatingApplicationsInVBVCs.asp?frame=true.

    Thanks very much.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !Reply-To: "J.Marsch" <jeremy@ctcdeveloper.com>
    !From: "J.Marsch" <jeremy@ctcdeveloper.com>
    !Subject: Dynamically load an ASP Page
    !Date: Fri, 1 Aug 2003 14:07:59 -0500
    !Lines: 16
    !X-Priority: 3
    !X-MSMail-Priority: Normal
    !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    !Message-ID: <ef$18AGWDHA.3232@tk2msftngp13.phx.gbl>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !NNTP-Posting-Host: 206.52.52.37
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:164219
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !I'm pretty new to ASP.Net
    !(server side)
    !Suppose that I have an instance of an ASP Page class, and I want the
    !client's web browser to load it.
    !
    !I don't necessarily know the URL of the page that I have, I just have an
    !instance of it. How do I make the browser load the page.
    !
    !If I were writing winform code, it would be something like this:
    !
    !MyFormClass oForm = new MyFormClass();
    !oForm.Show();
    !
    !
    !
    !
    !


    Yan-Hong Huang[MSFT] Guest

  4. #3

    Default Re: Dynamically load an ASP Page

    Thank you for the info, I'll read up.

    "Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
    news:T8iBVbxWDHA.1996@cpmsftngxa06.phx.gbl...
    > Hello Jeremy,
    >
    > It seems that you have some misunderstanding here.
    >
    > In windows forms application, there is a startup point to run the
    application. After that, the code runs under user interaction, like
    > typical win32 applications. So you could initialize a form and then show
    it in the code.
    >
    > But for asp.net web forms appliation, things are different. It is based on
    HTTP request/response model. In order to run a
    > page, you need to request it from a client's browser. After it is request,
    asp.net wil run server side code and send response to
    > the client. So there is no way to initialize a page and display it like a
    windows forms. But, you could use functions to open a
    > new page in client side, such as showModalDialog.
    >
    > For details, I suggest you refer to [url]http://msdn.microsoft.com/library/en-[/url]
    > us/vbcon/html/vboriCreatingApplicationsInVBVCs.asp?frame=true.
    >
    > Thanks very much.
    >
    > Best regards,
    > Yanhong Huang
    > Microsoft Online Partner Support
    >
    > Get Secure! - [url]www.microsoft.com/security[/url]
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    >
    > --------------------
    > !Reply-To: "J.Marsch" <jeremy@ctcdeveloper.com>
    > !From: "J.Marsch" <jeremy@ctcdeveloper.com>
    > !Subject: Dynamically load an ASP Page
    > !Date: Fri, 1 Aug 2003 14:07:59 -0500
    > !Lines: 16
    > !X-Priority: 3
    > !X-MSMail-Priority: Normal
    > !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    > !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    > !Message-ID: <ef$18AGWDHA.3232@tk2msftngp13.phx.gbl>
    > !Newsgroups: microsoft.public.dotnet.framework.aspnet
    > !NNTP-Posting-Host: 206.52.52.37
    > !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
    > !Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet:164219
    > !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    > !
    > !I'm pretty new to ASP.Net
    > !(server side)
    > !Suppose that I have an instance of an ASP Page class, and I want the
    > !client's web browser to load it.
    > !
    > !I don't necessarily know the URL of the page that I have, I just have an
    > !instance of it. How do I make the browser load the page.
    > !
    > !If I were writing winform code, it would be something like this:
    > !
    > !MyFormClass oForm = new MyFormClass();
    > !oForm.Show();
    > !
    > !
    > !
    > !
    > !
    >
    >

    J.Marsch Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139