Apr 24th, 2002, 04:31 AM
#1
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
Apr 24th, 2002, 09:22 AM
#2
Can you attach the aspx files?
Apr 24th, 2002, 09:42 AM
#3
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
Apr 24th, 2002, 09:49 AM
#4
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
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width