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 Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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?
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?
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....
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
Current Page
how to print or get the name of current page using ASP
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
Current Record ID
I've created a form whereby the user fills in there details into a datbase.Once there details have been entered into the database I want to show the Primary Key(there generated ID number).This is the code I have right now <% SQLQuery = "Select * from StudentReg" Set GetDetails=MM_dbconnect_STRING.Execute(SQLQuery) %> <%=GetDetails("ID")%> This however will only show the frist ID number in the database, not the one the user just entered. How do I get the current ID within the new record?
Current Grade
To cut down on maintenance,I'm tracking 500 or so students via their graduation year, rather than their current grade,so I don't have to go in every summer and ratchet up all the grades. I need to allow the teachers to search for them based on grade(9, 10, 11, or 12).So what I need is to be able to compare the grade chosen on any given day of the year,and have the code figure out what grad year that person is in, assuming a constant of the 4 year plan, and do a SELECT * WHERE gradYear = 2009 The problem is that I could take the nowYear or something, but that changes half-way through the school year (stupid northern hemisphere) and I'm stumped on how to compare more complicated dates.
Get Current Date
i need a button or a link, that when clicked on, grabs the current date. It then puts this date inside a textbox.
Getting Current User In ASP
How can I query the current user logged on to the local machine and store the username, the first name of the person, and the last name of the person in variables?
Show Most Current PDF
I have a ASP page that when a user clicks a link it uses a DLL to stamp a .pdf with a watermark and then display the .pdf in there web browser using the Adobe Reader. This all works fine. if a user views a pdf and then modifes it if they click the link again it still shows the old version of the file. They have to hit there refresh button to show the changes. How can I make it so my page always displays the lastest version of the PDF and not what is in the cache?
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.
Current Recordset
ADODB.Recordset error '800a0cb3' Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype. I am moving my webserver from NT4 using SQL to win2003 using SQL 2003. I get the above error when my asp page does teh line: Rs.absolutepage = intCurrentPage I tested teh value of intCurrent page and teh value is 1. Any ideas? The .asp Page works perfectly fine on teh old machine.
What's The Current File
Thingy to call to figure out what the current file is (ie: index.asp)? I thought it was request.servervariables("something") but just can't find it .
Add Hours To The Current Time
how you convert an integer such as 5 into an hour string so the system identifies it as an hour instead of just the number 5 and then once you do that ("if you need to do that at all") add 5 hours to the current time... Also is there a way way to add lets say 50 hours to our current time and date so when it is calculated it shows 2 days and 2 hours away from now... If you cant do that it would be nice to know how to change 7.85 into just 7... or 8.94 into just 8... no rounding up or down just the first number before the decimal.
Ldap Asp Current User
how do i collect current user using ldap and asp, i want to know who's doing what, so when a page loads can i check who's logged in to the domain?
Find Current Directory
I am wondering if there is a command to determine what the current directory is. My reason for this is that i have a include file called connection.asp sat in a folder called Data. My connection.asp file holds the connection details. I need to determine whether the file calling the include is in the root folder or not. EG. if it is the root folder the location of the db will be "Data/dbMarkShop.mdb" but if it is another folder, say a Scripts folder, the location of th db would be "../Data/dbMarkShop.mdb"
Finding Current Directory?
How can I find out the full directory path (i.e. c:path ofile) of a file? I'm logged into a server and the of course, I have an FTP directory root, but I need to know the absolute path.
Get Current Windows User
Is it possible to get the current user that is logged on to the computer? I want to use this as the basis of my validation on the site instead of asking them to login in again. I know it could be a security issue if they keep the computer unattended.
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.
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?
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.
Improving My Current Work
i have an ads website which i have developed for my coursework but want to make it that bit better. Code:
Fullname Of Current User
I have my webpage (ASP) in domain (IIS 6.0).I need to make a popup with fullname of current user.How can I do this?Maybe someone have any examples?
Messages For The Current Week
I have a db with the fields Day, Month, Year and Message. How can I select all of the messages for the current week starting with sunday and return the results as a list.
Expire Date To Current
I would like to know how can I remove expires date from asp I am not this can be done in access or asp script. There are a field i n access datbase say p_expdate which I delete and replace p_date which display the current post date Which specific file in asp should I modify I had look into the file like register.asp and search for p_expdate. I had rename to p_date. Do you think the setting on my datbase or value I need to set.
Fill A Box With Current Date
i have three boxes to display date.dd/mm/yyyy format.1 box for dd 2 for mm 3 for yyyy.suppose today's is 25 july 2005.now i want to fill this box date from 24 july 2005 to prevous month 25 june 2005 .means each time one month back of current date.
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.
Save Current ASP As An Image
Is there a way to save the client side opened asp page as a image file to the server side.That is take a screen shoot of the page and save it as a file preferrable html file or some image file and save it onto the server.
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.
Display Current Filename
im working with forms etc and am currently using action="mediainsert.asp" is there any way i can assign the current asp filename to a vairable and use that in place of the mediainsert.asp as shown above?
ObjEmail.From = (current User?)
Does anyone have a link for me of how to set up the obj.From address in a CDOSYS asp to be from the currently logged in user's email account, instead of having a field (Request.Form) capture that information?
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.
Current Line In An ASP File
ASPError object gives the current line where error occurred. Is there a way to find out the line where Err.Number became non-zero due to a Server.CreateObject(...) failure?
Either BOF Or EOF Is True, Or The Current Record Has Been Deleted
ADODB.Field (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. This is the error I recieve when trying to run my site. I know why. I am passing a non existed URL Parameter. However I would like to recieve a MsgBox that says that such record doesn't exist. Code:
How Do I Send The Current Form As E-mail
I have constructed an order form and the users will enter the informtion. I now need to send the filled out form as an e-mail (body being the HTML with the fille din data) to a predefined e-mail address. I know how to use CDO. I don't want to go to another page to recontruct the HTML as the '.body'
Either BOF Or EOF Is True, Or The Current Record Has Been Deleted
I have several pages I set up in my web site and I am having trouble with two of them - search and results. The stat_search uses a form which seems to work right and when I test the recordset on the stat_results page and enter a value it returns the right results. When a value is entered from the stat_search page the results page displays the records with the right value and the Records _ of _ indicates the right number of records but when I use the Next or Last arrows to move to the next record I receive the ADODB.Field error. Code:
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/"
Current Windows User Handle
is it possibile to retrieve the current Windows User Handle from ASP code? I would like to retrieve the correspondent in ASP for thi piece of ASP.NET code: WindowsIdentity id = HttpContext.Current.User.Identity as WindowsIdentity; if (id != null) { IntPtr handle = id.Token; } I need to pass "handle" variable to a .NET method (using interop).
Changing The Current Region Of Asp.net Account
How can I change the culture/region of the machines ASPNET Account??? In code, I can set it for the threat manually by using system.threading.thread.currentThread.currentUICul ture, but there must be a way to do it global on the machine: Plesk allows to change this for the machine which works fine, but how do I do it manually when no plesk is available?
Either BOF Or EOF Is True, Or The Current Record Has Been Deleted.
This is the error I'm getting: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /ism5315/readtrends.asp, line 46 What I'm trying to do is select the records from my table that match the sensor and gauge the user selects. I have time fields that are optional, and I'm trying to get the page to work if the user selects no time frame first. Of course, there can be mutliple records for the gauge and sensors, so I created a loop that should run thru and select them all. But I am getting the above error. But I know I am getting into the loop because I have included a response.write sql to verify I am selecting the correct objects. Code:
Current Recordset Does Not Support Updating.
I have read post after post after post on how to fix this problem and nothing seems to work for me. I have also been on the phone with my hosting company and all permissions are set to writable and modifyable. Here is the code for my UpdateHandler.asp page. which returns the following error: ADODB.Recordseterror '800a0cb3' Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. /members/UpdateHandler.asp, line 51 I am using access 2003 database. Code:
|