469,647 Members | 1,769 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Where is my ".aspx" file located

Hi there,

In a submit button event, I need to open a (server-side) file relative to
the folder containing the ".aspx" file. What's the correct way to locate the
".aspx" folder itself inside my handler? Thanks in advance.
Feb 27 '08 #1
3 1251
Creating or changing files will trigger your app to recompile, kicking
everyone off and resulting in a delay.
I'm reading a number of internal support files only (not ".aspx", ".html",
etc) but I'm not sure I follow you anyway. You mean if I change the ".aspx"
files themselves (which I have no intention of doing) then ASP.NET will
recompile the affected pages? Note that I'm new to ASP.NET but my conceptual
understanding of the ASP.NET lifecyle isn't too bad at this stage (having
read the MSDN docs at length). I'm no expert yet however so could you
briefly elaborate. Thanks.
Feb 27 '08 #2
You're fine reading files, but if you change any or create new ones then IIS
will unload your app then re-load it. It allows IIS to re-read new settings
in the web.config file etc. Browse to your app, change the web.config file
and save it, re-load your app and you'll see a delay cos IIS is unloading
and reloading it.

"Jack" <no_spam@_nospam.comwrote in message
news:el****************@TK2MSFTNGP03.phx.gbl...
>Creating or changing files will trigger your app to recompile, kicking
everyone off and resulting in a delay.

I'm reading a number of internal support files only (not ".aspx", ".html",
etc) but I'm not sure I follow you anyway. You mean if I change the
".aspx" files themselves (which I have no intention of doing) then ASP.NET
will recompile the affected pages? Note that I'm new to ASP.NET but my
conceptual understanding of the ASP.NET lifecyle isn't too bad at this
stage (having read the MSDN docs at length). I'm no expert yet however so
could you briefly elaborate. Thanks.


Feb 28 '08 #3
You're fine reading files, but if you change any or create new ones then
IIS will unload your app then re-load it. It allows IIS to re-read new
settings in the web.config file etc. Browse to your app, change the
web.config file and save it, re-load your app and you'll see a delay cos
IIS is unloading and reloading it.
Ok, I'll need to research this further. Thanks for the info (appreciated).
Feb 28 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by iana_kosio | last post: by
4 posts views Thread by Brent White | last post: by
2 posts views Thread by Pereira | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.