« Previous Next »

Not Answered Thread: trigger an ASP.NET application without calling a *.aspx page - possible ?

Last post 11-05-2009 3:52 AM by fabianus76. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 07-10-2009, 4:33 AM

    trigger an ASP.NET application without calling a *.aspx page - possible ?

    Hello !

    I would like to know if it is possible in IIS 7 to call a web application without putting a *.aspx in the url ?

    like :

    http://www.myshop.com/products

    instead of

    http://www.myshop.com/products.aspx

    Thank you very much for any feedback !

    Regards,
    Fabianus


  • 07-10-2009, 5:36 AM In reply to

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    Hi,

    Yes, you could create a virtual directory called 'products' and then configure 'products.aspx' to be the default document in that virtual directory. That way, any calls to the URL http://www.myshop.com/products would direct the user to your products.aspx page

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 07-10-2009, 6:07 PM In reply to

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    Hello Paul,

    thanks a lot for your feedback !

    What about url rewrite ? In order to automate the thing (and not setting each correspondance by hand). meaning that any http://www.myshop.com/firstlevel/secondlevel/..../xlevel will call http://www.myshop.com/default.aspx which will deal with the interpretation of the url and figure out the right place in the application ?

    Regards,
    Fabianus


  • 08-08-2009, 12:43 PM In reply to

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    Hi Paul,

    again concerning this issue.

    Look a this :

    http://www.microsoft.com/expression/

    How do they do this ?

    Thanks a lot for any feedback !

    Regards,

    Fabianus


  • 11-01-2009, 10:56 AM In reply to

    • rmmason
    • Not Ranked
    • Joined on 08-04-2007, 4:21 PM
    • Sheffield (UK)
    • Posts 9

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    Hi Fabianus,

    In the instance you mentioned you are seeing the default page in that directory. Probably "default.aspx" but it could be any file name depending on whats set up in IIS.

    Ross Mason

    Inflecto Systems
    www.inflecto.co.uk
  • 11-02-2009, 9:54 AM In reply to

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    Hello Rmmasson,

    thanks for your feedback !

    But what if I do not want to call any filename, simple a directory, as it is possible with apache.

    Thanks for any additional help.

    Regards,

    Fabianus


  • 11-02-2009, 10:03 AM In reply to

    • rmmason
    • Not Ranked
    • Joined on 08-04-2007, 4:21 PM
    • Sheffield (UK)
    • Posts 9

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    I'm not sure how Apache actually works.

    I'm confused as to if you just don't want to see the path in the URL bar of the browser. If so then my previous point still stands. You can simply put the folder name in the address bar and the default document for that folder will be shown. 

    If you have some other usage scenario you might be able to map a handler in the web.config to satisfy your requirement. 

    Ross Mason

    Inflecto Systems
    www.inflecto.co.uk
  • 11-02-2009, 1:21 PM In reply to

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    You can definitely do that by using URL rewrite:

    http://www.iis.net/extensions/URLRewrite

    See some examples at:

    http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/

  • 11-05-2009, 3:52 AM In reply to

    Re: trigger an ASP.NET application without calling a *.aspx page - possible ?

    Hello CarlosAG,

    this is precisely what I was looking for !

    Thanks !

    Fabianus


Page 1 of 1 (9 items)
Microsoft Communities