Link to home
Create AccountLog in
Avatar of somits
somits

asked on

How to navigate to another web form that resides in the same server - using HREF with C#, ASP.NET

Hi:

We're upgrading our web applications written with ASP.NET, C#, from VS2003 to VS2010.

Assumed we created 2 projects, named PROJ_1 and PROJ_2; each resides inside its own folder (each is an application) under wwwroot.

Also assumed, we created web form FORM_1 in PROJ_1 and FORM_2 in PROJ_2.

In VS2003, inside HTML code of FORM_1/ PROJ_1, we can write like this for a link:
href = "../PROJ_2/FORM_2.aspx"
When the user clicks on the link, FORM_2 inside PROJ_2 is displayed.

In VS2010, it does not work. When we click on the link, error "File not found" occurred.

If you've any idea about this, please help.

Thanks a lot,

Somits
SOLUTION
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of somits
somits

ASKER

Hi rkworlds:

Thanks a lot for replying.

The code I need is the HTML code. We're using Visual Studio 2010.

Actually, the "href = ..." code is in the source of .aspx file of a web form.

Can we use location.href and window.location.href inb HTML code?

Thanks a lot,

Somits
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account