Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two projects - same solution - hyperlink/response.redirect

Status
Not open for further replies.

cathiec

Programmer
Oct 21, 2003
139
IE
hi all,

i tried posting this in the VB.NET forum but was redirected to here.

i have a solution with two projects in it. I want to link from an aspx page in one of the projects to an aspx page in the other project but i keep getting errors. (i did a File>Open>Add project to solution to add the second project to the solution)

i would like to be able to do it using a hyperlink or if not the response.redirect. everything i try gives me an error. please help!


project 1 = Reports
project 2 = Website3

i try to call an aspx page in Reports from an aspx page in Website 3 from behind a button.

Response.Redirect("Reports/BodyPart.aspx") this gives me the error:
cannot find resouce: WebSite3/Reports/BodyPart.aspx

Response.Redirect("../Reports/BodyPart.aspx") this gives me the error:

HTTP Error 404 - Not Found



Response.Redirect(Server.MapPath("../Reports/BodyPart.aspx")) this gives me the error: failed to map to the path /Reports/BodyPart.aspx


i also tried dragging and dropping a hyperlink onto the page but i can only see the project that contains that aspx page ie Website3 - i cannot see the Reports project from the navigate url property.

they are all the things that i have tried.

regards
 
Have you been successful at running the page at all? If you haven't tried then to the BodyPart.aspx. Can you post that address?

Also browse to the place on the web server where your projects are located. What is the path? Are the folders on the same level, or is one nested in the other?
 
i can run the BodyPart.aspx page from the reports project no problem.

if i publish the reports project and try to use that url from the webform within website3 and set the Reponse.Redirect to " this works.......thanks!!!

i now have another problem. the BodyPart.aspx uses a crystal report viewer on page load to display info.

i now get a screen saying

"The report you requested requires more information"
and then it asks you to enter name and password before the report is shown. the report is then displayed but all the images on the report are not showing.

is there any way to get rid of the screen asking for username and password? i know this is more of a crystal error.

thanks and regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top