Request Current Page Name

i want to link to another page and include the current page as a querystring in the filename like .ASP Code:

<a href="newpage.asp?previous=currentpage.asp">my link</a>
which is a simple matter of explicitly writing it

however, if the script is #include d on every page (so i don't know which page is using it), how can i reference the current page and pass it to my link.

View Replies


ADVERTISEMENT

Current Page

how to print or get the name of current page using ASP

View Replies View Related

Using ASP To Get Current Page

I'm not sure if someone has requested in the past (I know I've looked for a solution for a while) but I've just developed a very neat way of getting the current page name in ASP:

url = request.ServerVariables("URL")
page = right(url, len(url) - instrrev(url, "/"))

I've finally found a use for the instrrev function

View Replies View Related

Current Page Url

How can I retrieve the current page url(and parameters/arguments) using ASP code? The current page is an asp search results page so the url includes the page name and the criterion(sorry I don't know what they're called) I had the 'post' method tag on the end.

I need to get it and store it so I have an easy way of getting back to this page at a click of a button a few pages down the track. I've tried using location and history but I'd like to manage it myself.

View Replies View Related

Get The Name Of The Current Page

is there a command in asp to get the name of the current page?

furthermore, is there a way to retrieve the name of the current page within
an 'included' file (not the name of the included page, but the name of the
page that is including the file)?

View Replies View Related

URL Of Current Page

I am using an include for a navigation bar, This nav bar appears on many different pages and the help facility a button on the navigation barneeds to launch a help box relating to the page it is included in.

The help files are .html but the file names relate directly to the asp page in which the navbar is included. To get the javascript in the navbar to correctly display the correct help window, I need to get at the page name. I am using

dim thisPage
thisPage= request.ServerVariables("URL")

This will hopefully return me the full file path of the page that the navbar is included in. I then need to take the filename out of this URL and remove the .asp from the end so that i can use it in my javascript function to open the corresponding .html help file.

View Replies View Related

Get Current Page

I'm just working on this big newsletterscript, wich will be working with templates (preformatted html code), stored in the database. I've already started but i'm still looking for suggestions or methods to do this more easily then i'm up to right now. So when you you chose another design your content will be loaded in this other template/ html design.

Right now i'm having troubles with the fact that i have a page; nice formatted with the right content! Generated from asp visual output in pure html in my browser. What i want to do now is to get this page structure/ content as it is shown in my browers (html output) INSERTED into MS Access.

View Replies View Related

Printing Current Page And Another Page

Is there any way I can print the current page(page1.asp) and another
page(page2.asp)from the current page(page1.asp).

View Replies View Related

Can't Get Current Page After Transfer

I'm trying to add logging to my web application, but I found a strange problem. Whenever I execute a Server.Redirect(Page1.asp) I can use the request.ServerVariables("SCRIPT_NAME") to get the current page name. However, if I use Server.Transfer(Page1.asp), the value of the server variable equals the refering page (In this case default.asp). How do I get the value of the working page regardless of the transfer method.

View Replies View Related

Check Current Page

I want to check if the name of my current page is index.asp for example, to specify a certain css class but this doesn't work

<li <% if Request.ServerVariables("SCRIPT_NAME") = "index.asp" then Response.write "class=""here"""%>>

What's the proper method?

View Replies View Related

Saving Current ASP Page

I would like to know how I can save my current ASP page
to the server side in html file format.
Then I would like to stream it back to the client side.

View Replies View Related

Current Page Title

I am trying to display the current page that is being view with asp.The line i am tryng to add is "You are editing: CurrentPageName".I can't find any code examples to help with this.

View Replies View Related

Save Current Page

is there an easy way to save the current page in asp through code. for example if I dynamically created a page and then wanted to save it without requiring the user to do anything.

View Replies View Related

Save Current Page

I want to be able to save a file created by an asp file somewhere. Or even email the file if possible. I've searched google extensively and only found people with the same problem but no answer. He solved the problem but didnt post the solution.

View Replies View Related

Finding Out The Path Of Current Page

Is there an easy way to find out the path of the current asp page? When looking at http://localhost/images/listing.asp I want to be able to extract "http://localhost/"

View Replies View Related

How To Get Current Page As Attachment In Mailto Tag

i have a page and i have mailto tag in it. when i click on that i has to get that page (page containing mailto tag) in the outlook express body . or the URL of the current page in body of the mail.

View Replies View Related

Send Email With Link To Current Page

How would I send an email to someone from a webpage with a link to the
current page? I've seen this where you can put in your email, the person's
email that you are sending teh page to, a subject for the email, and a
message along with the link.

View Replies View Related

Page Request

I have just run into a problem where I have a page that posts back to itself to execute code, except when the page does the post back it somehow executes code that is in our home page for the site. The only reason I know that is happening is because I keep track of the pages executed by the user to see how they have traversed the site. Has anyone
every seen anything like this before?

View Replies View Related

Request.form Cookes And Display On Next Page

I'm trying to display the username by requesting the cookie from the login page and I'm getting a page that only display "Hello" and not the username. Code:

View Replies View Related

ASP Page Does Not Recognize Session & Request Variables.

I do contract work for an organization that has some of the word code I have ever seen. I think they are using some sort of screwy CMS or something.

The code on their pages are pages stacked on pages, in other word one page loaded into a browser might have 3 <html><body></body></html> sets. Its really bad. So I started working on a page that has a form. It is included in the main page with this line of code:

View Replies View Related

Can't Insert Records From Page With Request.form

I'm trying to insert records into an SQL database coming from a page using the request
..form method. The table "general" has a primary key 'geid .' I get the following error:

Cannot insert the value NULL into column 'geid', table 'general';

column does not allow nulls. INSERT fails.

....not sure how to include the 'geid' field into the scheme.

strSql = "insert into general (firstname,surname,company) values ('"
strSql = StrSql & Request.Form("firstname") & "', '"
strSql = StrSql & Request.Form("surname") & "', '"
strSql = StrSql & Request.Form("company") & "')"
myconn.Execute (StrSql) ....

View Replies View Related

How To Send Request To IIS Server After The Page Displayed

Is that possible that I can send request to IIS Server after a .ASP page is
displayed? My Requirement is:

Clinet will Fill the Details in one Request Form after the details are
filled then the Request Files will be shown to the user as Link in Another
page. (Currently before Sending the Link Page to Customer I am updating DB
in Different Servers Located Different Palces - So It takes Time).

So What is My Requrement is After the user gives his details - I will
directly display the Link Page and After the Link Page is Sent to Browser
then I will Execute / Update the DB.

View Replies View Related

Recordset To Only Contain Current Items (i.e. If Date Of Item Is Past Current Date)

I have a noticeboard that the user inputs items into. One of those is the date of an event. Once that event has passed I want it to disappear from the page.

So I need to do a comparison with current date to the date in the "datestarted" field. My table is called "notices." Using Access and ASP VBscript.

View Replies View Related

Request.BinaryRead :: Request Object Error 'ASP 0104 : 80004005'

Why does the error below occur whenever the statement Request.BinaryRead Request.TotalBytes) is executed for uploads larger than 100K? I thought the 100K limit applied only to Request.Form. This does not occur with smaller uploads. This is running on an IIS 6 server with full FP2002 extensions.

ERROR:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed

View Replies View Related

Consecutive Request.Form And Request.BinaryRead

Request.Form and Request.BinaryRead cannot be called after each other as it causes errors.

I need the BinaryRead and I also need to access other form values, but I cannot call them after one another. What do I do?

View Replies View Related

What Is The Difference Between REQUEST And REQUEST.QUERYSTRING?

What is the difference between these two statements? They seem to do the
same thing...

response.write(request("variable"))

response.write(request.querystring("variable"))

View Replies View Related

Using Request And Request.Form

when the asp page is Request("txtName").i can use "testpage.aspx?txtName=User1" to post the value.but when i use Request.Form("txtName").i cannot use that method,what can i do to solve that problem.(as i cannot modifty the request.form syntax but i need to post data to that web page, is there any method so that i can pass that parameter?)

View Replies View Related

Request Instead Of Request.QueryString

I saw some program using "request("fieldname") " instead of "request.QueryString" to get the value from URL, what's the different ?

View Replies View Related

Get Current Url

Im trying to get the current url where the user is at and store it into a variable. I want this to be done automatically, not when a user clicks a button. Any ideas?

View Replies View Related

Getting Current URL

a way to get the current URL AND the variables in it, all in one command? There probably isn't, seems to simple, right?

View Replies View Related

Display The Current URL

I'd like to know how to display the current URL on the web page as a footer. This seems to be a fairly simple task, but everything i've found on the internet either doesn't work for some reason, or is asp.net specific....

View Replies View Related

Read Current Url

Is there a way that I can read the current url.

I have an asp page currently such as default.asp?x=1&y=2&z=3

Now I want to keep the existing parameters and attach another parameter
to it and resend to default.asp

As the original parameters are dynamic, and may or may not be
generated, the only way is to read the current url and to simply add my
new parameter such as h=5 to the url.

I don't know how to read the current url.

I tried Request.ServerVariables("SCRIPT_NAME") but that didn't include
the parameters. i.e. it just returned the default.asp

View Replies View Related

Current Connection

Does anyone know where I can find information about Reading current
connection value from performance counters into ASP page. I wanted to
know how I can call the current connection value in my ASP page

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved