Hello, in one of my pages I have an include:
<!--#include file="console.aspx" -->
Now...Inside console.aspx, I want to be able to find the
name of the page that included it. This is because I
include console.aspx in every page...
Thank you! 6 1157
Thanks. But I am still confused at how to get the actual
url/filename of that page. -----Original Message----- The most common replacement for old fashioned include
files are web usercontrols. They basically are like object oriented include files on
steroids. Then from within your control you can access information
about the parentpage by using the "Parent" object.
Here's more info: http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vbcon/html/vbconintroductiontowebusercontrols.asphttp://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vbcon/html/vboriwebusercontrols.asphttp://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vbcon/html/vbconWebUserControlsVsCustomWebControls.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Hire top-notch developers at http://www.able-
consulting.com
"John Sedlak" <js*****@optonline.net> wrote in message news:06****************************@phx.gbl... Hello, in one of my pages I have an include:
<!--#include file="console.aspx" -->
Now...Inside console.aspx, I want to be able to find
the name of the page that included it. This is because I include console.aspx in every page...
Thank you!
.
You can get such information from the Request object, e.g. Request.Path,
Request.FilePath or something like that.
HTH,
Axel Dahmen
---------------------------------
"John Sedlak" <js*****@optonline.net> schrieb im Newsbeitrag
news:05****************************@phx.gbl... Thanks. But I am still confused at how to get the actual url/filename of that page.
-----Original Message----- The most common replacement for old fashioned include files are web usercontrols. They basically are like object oriented include files on steroids. Then from within your control you can access information
about the parentpage by using the "Parent" object.
Here's more info: http://msdn.microsoft.com/library/default.asp? url=/library/en- us/vbcon/html/vbconintroductiontowebusercontrols.asphttp://msdn.microsoft.com/library/default.asp? url=/library/en-us/vbcon/html/vboriwebusercontrols.asphttp://msdn.microsoft.com/library/default.asp? url=/library/en- us/vbcon/html/vbconWebUserControlsVsCustomWebControls.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Hire top-notch developers at http://www.able-
consulting.com
"John Sedlak" <js*****@optonline.net> wrote in message news:06****************************@phx.gbl... Hello, in one of my pages I have an include:
<!--#include file="console.aspx" -->
Now...Inside console.aspx, I want to be able to find the name of the page that included it. This is because I include console.aspx in every page...
Thank you!
.
You can get such information from the Request object, e.g. Request.Path,
Request.FilePath or something like that.
HTH,
Axel Dahmen
---------------------------------
"John Sedlak" <js*****@optonline.net> schrieb im Newsbeitrag
news:05****************************@phx.gbl... Thanks. But I am still confused at how to get the actual url/filename of that page.
-----Original Message----- The most common replacement for old fashioned include files are web usercontrols. They basically are like object oriented include files on steroids. Then from within your control you can access information
about the parentpage by using the "Parent" object.
Here's more info: http://msdn.microsoft.com/library/default.asp? url=/library/en- us/vbcon/html/vbconintroductiontowebusercontrols.asphttp://msdn.microsoft.com/library/default.asp? url=/library/en-us/vbcon/html/vboriwebusercontrols.asphttp://msdn.microsoft.com/library/default.asp? url=/library/en- us/vbcon/html/vbconWebUserControlsVsCustomWebControls.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Hire top-notch developers at http://www.able-
consulting.com
"John Sedlak" <js*****@optonline.net> wrote in message news:06****************************@phx.gbl... Hello, in one of my pages I have an include:
<!--#include file="console.aspx" -->
Now...Inside console.aspx, I want to be able to find the name of the page that included it. This is because I include console.aspx in every page...
Thank you!
.
THANK YOU ALL!
You have been a great help to me. I am loving ASP.NET! I
can't wait until I get to college... -----Original Message----- Correction: I meant to say the "Page" object (not the
parent object.) -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Hire top-notch developers at http://www.able-
consulting.com "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in
messagenews:ub**************@TK2MSFTNGP09.phx.gbl... The most common replacement for old fashioned include
files are web user controls. They basically are like object oriented include files
on steroids. Then from within your control you can access
information about the parent page by using the "Parent" object.
Here's more info: http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vbcon/html/vbconintroductiontowebusercontrols.asp http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vbcon/html/vboriwebusercontrols.asp http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vbcon/html/vbconWebUserControlsVsCustomWebControls.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Hire top-notch developers at http://www.able-
consulting.com
"John Sedlak" <js*****@optonline.net> wrote in message news:06****************************@phx.gbl... > Hello, in one of my pages I have an include: > > <!--#include file="console.aspx" --> > > Now...Inside console.aspx, I want to be able to find
the > name of the page that included it. This is because I > include console.aspx in every page... > > Thank you!
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Doug |
last post by:
The html below shows DataList "DiscountList" nested within DataList
"EventItemList". DiscountList contains a Label control.
I'm trying to find the label, using FindControl, during...
|
by: News |
last post by:
I have a page with many controls. Among these controls there is a table
which is a datagrid with nested repeater inside. My problem is that I can
not use DataGridCommandEventArgs to get datagrid...
|
by: mroffey |
last post by:
Hi everyone,
I've been having this problem and I've searched high and low, but I
can't seem to find the answer to what is probably a very simple
solution.
In a nutshell, I have a nested...
|
by: Argirop |
last post by:
I have a page Default.aspx. Its first line is the following:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="default.aspx.cs"...
|
by: Jim in Arizona |
last post by:
How do I find a control within a datalist itemtemplate from a sub
procedure that isn't a normal called procedure from a datalist (like the
update, edit, or cancel procedures)?
For instance,...
|
by: Fred Chateau |
last post by:
I am trying to reference a server control in a user control, from the
containing page. Is there a way to do that? I have tried
"UserControl1.FindControl("ControlName")" but I get a null reference....
|
by: Matthew White |
last post by:
Hi all,
I'm working on an AJAX site, and I'm using Dojo and Mootools (both
Javascript) to provide some interactivity. Dojo has a back button fix, but
it requires the use of of a string added...
|
by: RobertTheProgrammer |
last post by:
Hi folks,
Here's a weird problem...
I have a nested GridView setup (i.e. a GridView within a GridView), and within the nested GridView I have a DropDownList item which has the...
|
by: Nick |
last post by:
Hi there,
I have a website that functions fine locally, but when published to the
server it develops a bottleneck during loading some of the pages. Basically
what happens is the page loads to...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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,...
|
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...
|
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,...
| |