473,782 Members | 2,534 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1381
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@_nospa m.comwrote in message
news:el******** ********@TK2MSF TNGP03.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5361
by: Murphy | last post by:
Our website contains subdirectories for each subsidiary company, each company has it's own look and feel to the pages in their subdirectory although they are all part of the main website. The code below in the Web.Config file defines the authentication as forms and the aspx file required for login if the user is unauthenticated... this works well for the root level company web pages however when a user viewing the website of SubCompanyA...
2
15486
by: Steve M | last post by:
I am having a really strange problem. I have a site setup in a virtual directory that fails with the error below. It works on other web servers that are network load balanced with this server. I can go right to the default.aspx right in the ISS Manager and right-click browse and the error still comes up. I re-copied the folder over from a working server and checked IIS and NTFS permissions and it all matches. I recreated the virtual...
1
1310
by: iana_kosio | last post by:
Hi, I was wondering if I can make an aspx file use the PATH variable to locate dlls that it needs. Currently, it looks as though that the aspx page looks for binaries in a bin folder that is located in the current directory. Even if I put the dlls in bin/debug folder it will not work. Thank you in advance for your help. Konstantin ********************************************************************** Sent via Fuzzy Software @...
4
2449
by: TWEB | last post by:
I think I may have an IIS / ASP.Net Configuration issue that I need some guidance with resolving. Here's the problem: a) I have a .stm file. b) I referenc a .aspx file on this .stm file using a server-side-include directive: <!-- include virtual="../../foobar.aspx"--> c)When the .stm file is rendered: The .aspx file is included, but it doesn't look like the ASP.NET engine is processing the page, because I see the raw
4
1327
by: Brent White | last post by:
The aspx file was originally default.aspx, but I'm putting some other aspx files in that same virtual directory and I want to give it a more meaningful name. I renamed default.aspx in the IDE to CorporateSelectStates.aspx, and the file default.aspx.vb was renamed to CorporateSelectStates.aspx.vb. Now when I try to build, I get an error saying "The file /CrystalReportsWebApplication1/Default.aspx.vb does not exist" It refers to line 1...
10
2446
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and load as a 3rd partial class. This would be handy so i can generate standard code into one of the partial classes, while having my custom code untouched
3
3109
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
13
3560
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
2
1467
by: Pereira | last post by:
Hi everyone! I have a single aspx file that I want to use some Web Services located in "http://ip:port/WebService" but I don't know what to do to accomplishe that... Can someone tell me the milagrous line code?? (I don't have that aspx file in a Project...its a simple aspx file that will be called by another program) Thanks in advance, Bruno Pereira
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.