Friday, March 16, 2012

open asp.net page from desktop

Hi there
Is it possible to open an .aspx page from an icon placed on the desktop?
Best regards
LoaneIf by open you mean to have it open in a browser with the output on the
screen then the answer is no. The reason is that the browser does not
know how to handle the file, it's not standard markup. To have the
output show as youi intend it to, it must be parsed and/or executed by
the .NET and then the output is rendered and sent to the browser.
You need to either run through IIS, or another application that will
handle this for you (another server like IIS is the web server included
with the visual web designer/web matrix.)
Hope this helps,
Darren Kopp
"Loane Sharp" <look_sharp_not@.hotmail.com> wrote in message
news:u5lgnofwFHA.1032@.TK2MSFTNGP12.phx.gbl...

> Is it possible to open an .aspx page from an icon placed on the desktop?
With the greatest of ease!
1) Right-click on your desktop and select New, Shortcut
2) Enter the text below:
http://www.markrae.com/welcome.aspx
3) Click the Next button
4) Select a name for the shortcut (optional)
5) Click Finish
Hi Darren
What if I make the shortcut point to an HTML file (since this is really just
an entry-point to an ASP.NET application)?
Best regards
Loane

> If by open you mean to have it open in a browser with the output on the
> screen then the answer is no. The reason is that the browser does not
> know how to handle the file, it's not standard markup. To have the
> output show as youi intend it to, it must be parsed and/or executed by
> the .NET and then the output is rendered and sent to the browser.
Hi Mark
I couldn't get this to work. Any ideas?
Best regards
Loane

> With the greatest of ease!
> 1) Right-click on your desktop and select New, Shortcut
> 2) Enter the text below:
> http://www.markrae.com/welcome.aspx
> 3) Click the Next button
> 4) Select a name for the shortcut (optional)
> 5) Click Finish
"Loane Sharp" <look_sharp_not@.hotmail.com> wrote in message
news:e23HQOhwFHA.2348@.TK2MSFTNGP15.phx.gbl...

> I couldn't get this to work. Any ideas?
What happened when you tried?
I get a dialog box saying:
http://127.0.0.1/index.aspx
This file does not have a program associated with it for performing this
action. Create an association in the Folder Options control panel.
I created associations for .aspx files and Internet Explorer. But still the
error.
Any ideas?
Best regards
I am assuming that you are not trying to link directly to the file.
What you want to do is open your web browser, and browse to the page
you would like to link to. Now what I typically do is just go to the
address bar, and right next to the Url there is a small icon, just drag
that to your desktop and it should associate both the link to that
location as well as the program.
Alternatively, if using Internet Explorer, try File > Send > Shortcut
to desktop.
Hope this works for you,
Darren Kopp

0 comments:

Post a Comment