Web Connection
Default to a dynamic page
Gravatar is a globally recognized avatar based on your email address. Default to a dynamic page
  Craig Tucker
  All
  Jan 22, 2019 @ 08:22pm

Hey Rick, How do you default the 'default' page to a dynamic (non-present) file? I can change the web.config to default to something like 'craig.mpg', but I can't get it to kick off to a dynamic page (function) when the app starts up.

For example, I would like for this page to kick-off but not show in the browser url ie "http://localhost/makePetgifts"

Thanks much, Craig

Gravatar is a globally recognized avatar based on your email address. re: Default to a dynamic page
  Rick Strahl
  Craig Tucker
  Jan 23, 2019 @ 02:10am

You can set the default page in the config to craig.mpg, and create an empty page. Then in your code, just don't call ExpandScript() to actually render the page, but just do your regular code.

You can also set up extensionless URLs for the application. It works but takes a bit of effort and is tricky to get right with complex paths.

More info here:

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Default to a dynamic page
  Craig Tucker
  Rick Strahl
  Jan 23, 2019 @ 04:35am

Ah, got it - Thanks!

© 1996-2019