473,616 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

current applications virtual path in global.ascx

33 New Member
I want to get the current applications virtual path in global.ascx
(event Application_Sta rt())
How can I access that ?

Request.Applica tionPath is not valid there :(
Feb 28 '08 #1
1 1160
kenobewan
4,871 Recognized Expert Specialist
Not sure it is the Application_Sta rt() event you want. This fires once and only fires again if the server is restarted. You may be able to what you want using client side code. HTH.
Feb 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2268
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or recommended and b) if there is another way. I want to add the projects under the sharepoint site as I want authentication but do not want my users to have to login everytime they access a net app from within the sharepoint site. Ideally, they...
5
1461
by: Max | last post by:
I have several web applications I'm trying to upload to my web site, but it seems to be only letting one run at a time. It's totally ignoring the new bin folder in my subdirectory. Is there anyway around this? I do not have access to IIS on the remote machine, nor the ability to make a subdirectory an application. I dot net would let us do this. :( -Max
1
1321
by: mg | last post by:
I took the following steps to share a user control across applications but was unsuccessful. WebUserControl: <%@ Control Language="c#" AutoEventWireup="false" ClassName="WebUserControl1" %> -----------------------------------------
0
1107
by: David | last post by:
I would like to reuse user controls across multiple web applications. Is that even possible? I experimented that by dragging and dropping a user control which is in one web project to another web project and get the following run time error. What is the most effective way to share user controls across? The virtual path '/ApplicantApp/user_YesNo.ascx' maps to another application, which is not allowed
3
1444
by: Chad A. Beckner | last post by:
Hey everyone, Ok. I have a "template and skin" setup on the beginnings of a new portal site. In this site, there are going to be many applications, which will be store underneath the "master" site. How can I share the template user controls with these "sub-applications"? Example: Root
2
3523
by: Jeremy | last post by:
Everything in my app worked fine - then I moved some user controls to a subfolder named \ControlTemplates that physically exists directly under the site root. Then, at runtime when these lines attempts to load a user control from that subdirectory: string templateFileName = @"/ControlTemplates/Template01.ascx"; Control templateControl = LoadControl(templateFileName); The application throws an error with the following message:
6
5859
by: Saar Carmi | last post by:
Hi How can I get the application's virtual directory from the Application_Start method in Global.asax ? Keep in mind there is no request/response object available yet in this stage. Thanks Saar.
1
2730
by: Raed Sawalha | last post by:
I have a problem in getting asp.net application physical path in global.ascx static function in my global.ascx i have a static function : first i tried to get the physical path by refelection using string rootPath = Path.GetDirectoryName(System.Refelection.Assmebly.GetExecutingAssembly().Location); but the problem it returned a path in temprary folder in /winnt/framework/ver/temporay asp.net files ..i do not know why?
8
1296
by: Max | last post by:
Is it possible for an ASP.net server (like IIS 6) to run web application without having available the code behind forms in clear ascii? Can I provide a compiled product to the customer, not an exe file of course, but some dll compiled by my server ? I'm asking that because 1. sometimes I am not happy to provide my source code 2.customer is afraid of their internal security... Thanks Max
0
8199
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
8145
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
8642
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8592
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
8294
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
7118
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...
0
5550
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1439
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.