Links

hi everyone,

can i link to asp.net page from a vb.net program for an instance, i click on a button in a vb.net form and it will link and open up internet explorer (an asp.net page).




Answer this question

Links

  • Gadgetman

    the URL did not start with http://www.

    it starts with http://localhost/



  • Project Ebiru

    This will work as long as your web site you are trying to access is correctly deployed and running on a web server.

    If you are using web matrix then it will be using its own internal web server rather than IIS which is the normal deployment web server for ASP.Net applications. And this web server if I recall is started when you start web matrix.

    If you go to Internet Explorer and type in the URL for you web site that is running in web matrix - does this work If this does then if you stop running web matrix and run it again - does it still work

    The process start is doing nothing more than trying to access the URL provided with the default application. If the URL is correct and accessible then the web page will start.


  • MNSiyal

    When you published the web site - was it published to a web server.  

    To start the web page you enter a URL starting with something like http://

    What is the URL you are using   Does it work it you try and access a web site from the internet, choose any http://www.   URL.

    If you attempt to access this web page using Internet Explorer using this URL without web matrix loaded does this work    If you now run web matrix and type in the same URL into IE does it work.

    IF the answers are NO and YES then it would appear that the web server it is using is the one contained in Web matrix.  

     


  • Luis Simões

    ok..thanks..

  • ahorse

    Sure, put this in the button click event

    Process.Start("http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=388338&SiteID=1")


  • NellWood

    ok..thanks a lot for helping

  • Magic21

    how to check whether the URL runs on IIS web server or not

  • jjirra

    Is the URL deployed on a IIS web server. If no, then the page works in Web Matrix because web matrix is using its internal web server.


  • Mike Ogilvie

    hi,

    If I directly run in Internet Explorer, it will not work.. it will onli works went i run through web matrix.



  • melf1969

    Then your using a local web server - which is probably the one that is contained in web matrix and not permanently running.

    Hence if you start web matrix then a web server is running that can process the http requests. If you dont have web matrix running there is no service to process the http requests. If you publish to a IIS server that is running all the time then this will work.

    At the moment any local web page on this machine would only run when web matrix was running. Web Matrix is for development of simple web solutions not for a deployment solution.

    Also you may want to check out Visual Web Developer Express which is the latest version of a .NET development tool - Web Matrix is old and not supported.


  • burrowsUW

    hi!

    i have include the code u gave me but i cannot directly run the page i want. the code only works when i open up my asp.net program and run it 1st.

    everytime when we use web matrix to debug asp.net code, there will definitely have a port number. izit i must include the port number in the address if yes how am i suppose to do it



  • Links