Results 1 to 4 of 4

Thread: Opening a Instance of a Web Form

  1. #1
    DirkAG
    Guest

    Opening a Instance of a Web Form

    Hi,

    Using VB.Net on a Web Project I create a instance of an ASPX page (called CrystalWebViewer.ASPX), set some values/properties of the page (e.g. crDoc) and then want to open/browse/redirect this instance (e..g Show the page in IE). Please have a look at the code :

    Dim objReport As New ReportGenerator()

    objReport.ReportID = txtReportID.Text
    objReport.Parameters = txtParam.Text
    objReport.ShowDialog = False
    objReport.Web = True
    objReport.RunReport()

    'Here's where the trouble starts

    Dim objNew As New CrystalWebViewer()
    objNew.crDoc = objReport.CrystalReportDoc
    objNew.DataBind()

    'This line just produces a Empty CrystalWebViewer ASPX Page, not the one that I created as objNew

    Response.Redirect("//localhost/IMS Web Reporter/Crystal Web Viewer.aspx")

    'End of Code

    It is this last line of code that opens the ASPX page but not the instance (objNew) of the ASPX page. I have tried anything.

    Can one not do
    Response.Redirect(objNew.Page)
    or something similar to open the ASPX page from VB.Net ?

    I am a good VB (.Net) programmer but do not know ASP at all, please help.

    Thanks,
    Dirk

  2. #2
    Thelonius
    Guest
    Can you attach the aspx files?

  3. #3
    DirkAG
    Guest
    Thelonius,

    Thanks for the reply. I include the .ASPX file for your use, it is a very simple page with only a Crystal Web Viewer on it. I can open it in the same ASPX, but want to open it in a seperate IE Web page.

    Let me know,

    Thanks,
    Dirk
    Attached Files Attached Files

  4. #4
    DirkAG
    Guest
    Sorry, here is the Web Page that calls the other (Crystal Viewer Page) page.

    I want this page to open an instance of the Crystal Viewer ASPX page in a seperate IE page.

    Thanks,
    Dirk
    Attached Files Attached Files

Posting Permissions

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



Click Here to Expand Forum to Full Width