How do I link to the same .aspx page from 2 different websites?

Discussion in 'ASP .Net' started by Mel, Jun 30, 2009.

  1. Mel

    Mel Guest

    I have 2 websites and both of them need links to the same reports.
    Both websites are on the same web server, both use IIS 6, Website 1
    requires basic authentication and Website 2 uses Integrated Win.
    authentication. I can create a link on website 1 to the report page
    located on website 2 but it prompts for a username and password, which
    I don't want. It requires a password because website 2 uses
    integrated Win. auth. Where can I put the reports so both websites
    can access them without requiring a password? Can anyone lead me in
    the right direction?
     
    Mel, Jun 30, 2009
    #1
    1. Advertisements

  2. On Jun 30, 7:32 pm, Mel <> wrote:
    > I have 2 websites and both of them need links to the same reports.
    > Both websites are on the same web server, both use IIS 6, Website 1
    > requires basic authentication and Website 2 uses Integrated Win.
    > authentication.  I can create a link on website 1 to the report page
    > located on website 2 but it prompts for a username and password, which
    > I don't want.  It requires a password because website 2 uses
    > integrated Win. auth.  Where can I put the reports so both websites
    > can access them without requiring a password?  Can anyone lead me in
    > the right direction?


    When site used Windows authentication, you can specify access to
    specific location in the web.config file
    I suppose you have a report in the /reports/ directory

    Add a web.config to the /reports/ directory

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <location path="report.aspx">

    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>

    </configuration>

    This should enable all users to get access to that /reports/
    report.aspx

    Point /reports/ as a virtual directory to your second application

    Hope this helps
     
    Alexey Smirnov, Jul 1, 2009
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sriram Mallajyosula

    How do I post data from aspx page to another aspx page.

    Sriram Mallajyosula, Nov 5, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,269
    Steve C. Orr [MVP, MCSD]
    Nov 5, 2003
  2. Chumley Walrus

    2 different datalists on same aspx page

    Chumley Walrus, Apr 22, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    648
    Guest
    Apr 24, 2005
  3. tshad

    Same aspx page/different folders

    tshad, Jun 1, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    648
    tshad
    Jun 1, 2005
  4. MadHatter51
    Replies:
    1
    Views:
    1,137
    Hakan Lambracht
    May 17, 2006
  5. Rushi
    Replies:
    3
    Views:
    381
    Rushi
    Jun 4, 2007
  6. Christopher Brewster
    Replies:
    5
    Views:
    630
    John Machin
    Nov 14, 2008
  7. bluebaron
    Replies:
    3
    Views:
    962
    Jonathan N. Little
    Nov 4, 2009
  8. Guest
    Replies:
    2
    Views:
    362
    Foo Man Chew
    Dec 29, 2003
Loading...