Results 1 to 4 of 4

Thread: [RESOLVED] [2005] how to call a page in upper root

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Resolved [RESOLVED] [2005] how to call a page in upper root

    Dear all ,
    hoping you are doing well, i am using vs2005 web development, and i have the following situations:

    i have a page called : mainpage.aspx that calls another page called : showimage.aspx which is located inside a sub directory called "gallery"

    so when the mainpage makes a call to the showimage page i use the following code

    <vbcode>
    response.redirect("gallery/showimage.aspx")
    </vbcode>

    it works fine, but standing from the page showimage.aspx , how can i call the mainpage.aspx located in the upper folder.

    i know i can make an absolute call with the url such as "www.softexsw.com/mainpage.aspx", but the problem is that we hadn't yet purchased the domain name and or even are going to choose the name soon.

    i need to make the page calls another page in an upper directory, this must be possible but the question is how ????

    thx in advance

    rgds

  2. #2
    Frenzied Member vbdotnetboy's Avatar
    Join Date
    Jun 2004
    Location
    Lewisburg, PA "Next year Raiders in the Super Bowl"
    Posts
    1,310

    Re: [2005] how to call a page in upper root

    try

    VB Code:
    1. Response.Redirect("~/mainpage.aspx")

    Derek - Using VS 2008 99% of the time and VS 2003 1% of the time

    Please Help Us To Save Ana

    ● Helpful Links: DNR TV | Awesome site for tips | Using ADO.NET to work with Excel | Xml Namespace 2.0 Framework Changes|Ultra High Security Password Generator | Mendhak's ADO.NET Tutorial
    ● Code Bank: Random Password Generator | Generic DbProviderFactory Access
    ● Site Work: Bottle Run Xtreme | Spaids Racing.com

    Company I work for - CSSI

    WHEN POSTING PLEASE INDICATE VERSION

    Please use vbcode tags or code tags when posting code
    [highlight=vb]ALL your code goes here[/highlight] or [code]ALL your code goes here[/code]

    If my post helped you in anyway... please be kind and give me some ratings

  3. #3

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: [2005] how to call a page in upper root

    hohohohohohooooooooooooooooooooo


    it works like magic

    thank you very much vbdotnetboy , that was fast and effective

  4. #4
    Frenzied Member vbdotnetboy's Avatar
    Join Date
    Jun 2004
    Location
    Lewisburg, PA "Next year Raiders in the Super Bowl"
    Posts
    1,310

    Re: [2005] how to call a page in upper root

    no problem anytime

    Derek - Using VS 2008 99% of the time and VS 2003 1% of the time

    Please Help Us To Save Ana

    ● Helpful Links: DNR TV | Awesome site for tips | Using ADO.NET to work with Excel | Xml Namespace 2.0 Framework Changes|Ultra High Security Password Generator | Mendhak's ADO.NET Tutorial
    ● Code Bank: Random Password Generator | Generic DbProviderFactory Access
    ● Site Work: Bottle Run Xtreme | Spaids Racing.com

    Company I work for - CSSI

    WHEN POSTING PLEASE INDICATE VERSION

    Please use vbcode tags or code tags when posting code
    [highlight=vb]ALL your code goes here[/highlight] or [code]ALL your code goes here[/code]

    If my post helped you in anyway... please be kind and give me some ratings

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