Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need to determin what page I am on

Posted on 2008-06-10
3
Medium Priority
?
234 Views
Last Modified: 2010-04-23
I have a number of pages in my web app.  Thay all share a header (see example asp attached).

In the code behind for KTHeaderSmall, I need to determine what page I am on.

How can I do this in VB code behind?
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MainKTImportInstanceFromTemplate.aspx.vb" Inherits="KTManagement.MainKTImportInstanceFromTemplate" %>
<%@ Register TagPrefix="ah" TagName="Header" src="KTHeaderSmall.ascx"%>

Open in new window

0
Comment
Question by:wsturdev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
JapyDooge earned 2000 total points
ID: 21750663

Request.ServerVariables("URL")

Open in new window

0
 
LVL 1

Author Closing Comment

by:wsturdev
ID: 31465707
Excellent.  Thanks!!
0
 
LVL 6

Expert Comment

by:JapyDooge
ID: 21751261
Thank you! :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question