Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

MVC and long paths

  • 14-11-2012 06:57PM
    #1
    Registered Users, Registered Users 2 Posts: 1,886 ✭✭✭


    Trying to learn MVC, but getting a bit tangled up in routing of commands and URLs.

    I have a website running at www.domain.com/site. COLOR="Gray"]When I was running it as 'www.domain.com' (from the root of the website), the below issue wasn't occurring.[/COLOR

    I have a Controller and Method that takes an input Param, so at this point my URL looks like 'www.domain.com/site/Controller/Method/Param'. From here, I'm trying to access a different Controller. If I try to use Javascript to set the form.action to be 'NewController/NewMethod', I end up at 'www.domain.com/NewController/NewMethod'. BUT, if I try setting the form.action to '/site/NewController/NewMethod', I get an IOException telling me 'the device is not ready'

    Most confused! Anyone got any ideas where I'm going wrong?


Comments

Advertisement