Trouble loading Web forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fripper

    #1

    Trouble loading Web forms

    I must have done something that has suddenly caused me to be unable to load
    a new web form when developing web apps. Simple example: WebForm1 has a
    button which when clicked simply does a Response.Redire ct("WebForm2") . When
    I run the program and click the button I get "The page cannot be found"
    message. WebForm2 is clearly there ... in the same folder that contains
    WebForm1. I have developed a number of simple web apps over the past couple
    of years and have never run into this problem; although I don't think I have
    tried this since installing SP2.. IIS is installed and appears to be OK.
    Using debug mode I was able to ascertain that Server.MapPath is correct ...
    its value is "c:\inetpub\www root\WebTest"; WebTest is the folder that
    contains WebForm1 and WebForm2.

    Any thoughts?

    Thanks very much.


  • Jeff Dillon

    #2
    Re: Trouble loading Web forms

    You don't redirect to a file path, you redirect to an http path

    Jeff
    "fripper" <fripper@insigh tbb.com> wrote in message
    news:#OVUgkj1EH A.1740@TK2MSFTN GP15.phx.gbl...[color=blue]
    > I must have done something that has suddenly caused me to be unable to[/color]
    load[color=blue]
    > a new web form when developing web apps. Simple example: WebForm1 has a
    > button which when clicked simply does a Response.Redire ct("WebForm2") .[/color]
    When[color=blue]
    > I run the program and click the button I get "The page cannot be found"
    > message. WebForm2 is clearly there ... in the same folder that contains
    > WebForm1. I have developed a number of simple web apps over the past[/color]
    couple[color=blue]
    > of years and have never run into this problem; although I don't think I[/color]
    have[color=blue]
    > tried this since installing SP2.. IIS is installed and appears to be OK.
    > Using debug mode I was able to ascertain that Server.MapPath is correct[/color]
    ....[color=blue]
    > its value is "c:\inetpub\www root\WebTest"; WebTest is the folder that
    > contains WebForm1 and WebForm2.
    >
    > Any thoughts?
    >
    > Thanks very much.
    >
    >[/color]


    Comment

    • Jim Hughes

      #3
      Re: Trouble loading Web forms

      Include the full file name with extension.

      Response.Redire ct("WebForm2.as px")

      "fripper" <fripper@insigh tbb.com> wrote in message
      news:%23OVUgkj1 EHA.1740@TK2MSF TNGP15.phx.gbl. ..[color=blue]
      >I must have done something that has suddenly caused me to be unable to load
      >a new web form when developing web apps. Simple example: WebForm1 has a
      >button which when clicked simply does a Response.Redire ct("WebForm2") .
      >When I run the program and click the button I get "The page cannot be
      >found" message. WebForm2 is clearly there ... in the same folder that
      >contains WebForm1. I have developed a number of simple web apps over the
      >past couple of years and have never run into this problem; although I don't
      >think I have tried this since installing SP2.. IIS is installed and appears
      >to be OK. Using debug mode I was able to ascertain that Server.MapPath is
      >correct ... its value is "c:\inetpub\www root\WebTest"; WebTest is the
      >folder that contains WebForm1 and WebForm2.
      >
      > Any thoughts?
      >
      > Thanks very much.
      >[/color]


      Comment

      Working...