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 .

View Replies


ADVERTISEMENT

Whats The Exact Error For "system Cannot Find The File Specified"

i get "system cannot find the file specified" error. iam sure that the path of file iam looking for is true. i guess this is a friendly message thrown. when i turned off the freind messages in IE (client side) i still get the same error. is there any way that i can see the exact error so that i can debug.

View Replies View Related

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?

View Replies View Related

Get The Current File Path

In my ASP file, located at the "/test" directory of the website, I include another ASP file as below.

<!--#include file="../templates/_header.asp"-->

Inside the _header.asp file, how can I get the current file (_header.asp) directory? I need to get the web relative/absolute directory of _header.asp, but instead even if I can get the physical directory location of that file should be fine.

I tried Request.ServerVariables("") with almost all the variables, but none gave me what I wanted. This is necessory, becase the location of _header.asp and the file which includes that can vary.

View Replies View Related

Open A File In The Current Directory

Set fileSystem = Server.CreateObject( "Scripting.FileSystemObject" )
Set file = fileSystem.OpenTextFile( "config.xml", 1, False )

It's saying that 'config.xml' doesn't exist. How can I reference this file? It's in the same directory as the file with the above code. Do I need to build the path somehow?

View Replies View Related

Whats The Best Browser For Mac OS X?

whats the best browser for mac OS X?

View Replies View Related

ASP & ASP.NET Whats The Difference?

A few weeks ago I was told in this forum that ASP would be a great solution to a large web site. I purchased a book about ASP.Net but have also seen info on ASP. Can you please tell me what is the difference between the two?

I don't know computer programming at all. Dreamweaver MX is the program I use. Can ASP be done with a WYSIWYG program? I have set up databases in Access & built web sites with DW MX I am not sure how to tie the two together.

View Replies View Related

Whats Asp's Equivilent To PHP's 'extends'?

I want to be able to do the following, but im not sure how in asp.

<?php
class Cart {
var $items;

some functions.
}
?>

<?php
class Named_Cart extends Cart {
var $owner;

}
?>

View Replies View Related

Whats All About Bound Checking?

How can I make such a bold statement? Two words: Buffer Overflow.

In the very first class I took in programming (those many years ago), we were berated class after class about proper bounds checking to prevent buffer overflows. What this means in simple terms is that every time my program asked the user for input, it had better check to make sure the input fit in the place I reserved for it. If I asked for a ''Y/N'' and I got a ''yes'' or a ''no'', those extra characters had to go somewhere and I had better be prepared for them.

View Replies View Related

Whats The Transition From Access To...

It sounds like you are looking at the properties of the WebSites main branch, when you need to look to the first element under this branch (opening it) to the next "step down", and check the properties of the child element (mine is called "default web site", but yours perhaps has been changed from that).

It also contains an "advanced" button on the Web Site tab (right next to the "IP Address" field) which allows "multiple" identities, which is the part which I couldn't to work with 100% consistency.

View Replies View Related

Detect Whats In A String After A Character

i have a browse button on a web form that the user can upload images via ftp. the user clicks on the browse button to browse a file on his computer and the text field displays the path - "mycomputerdesktopmyimage.jpg".

i need to get the name of the image and insert the name into my database. so i need to be able to search the string ("mycomputerdesktopmyimage.jpg") and insert all the characters after the last "" which will give me the image name. ive tried just writing out the string in asp (jscript), but it gives me "mycomputerdesktopmyimage.jpg" without all the backslashes.

how do i get those backslashes back into the string? my second question is how do i search for the characters after the last backslash? i know i can use a substring on this, but how can i use it for the last backslash?

View Replies View Related

Whats The Difference Between Access And MSSQL?

I've done several sites with ASP that use an Access database, and it has worked fine so far. I will be developing a much larger site and I need to know if Access just isn't going to cut it anymore.

Is MSSQL what I should use instead? How much is too much for an Access database? What are the differences in coding for something besides Access? (is it just in the connection string, or what?)

View Replies View Related

If Checkboxes Not Selected Then Show Error, Whats The Best Way?

I have a form and if none of the radiobuttons are selecte or any of the txt fields are empty i want it to display an error, also if the entry in a txt field is not numeric i want it to display an error, if there are no errors then i wanted to display a message

what is the best way of going about this??

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

Whats All About "IMS Package"?

anyone has any idea what IMS Package is all about? i read that The IMS Package consists of two major elements: a special XML file describing the content organization and resources in a Package, and the physical files being described by the XML.

The special XML file is named as imsmanifest.XML, together with all resources, when import, will be extracted from a single .zip file.

Does any one know where i can get such kind of .zip files so that i can check what exactly happening inside?

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

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 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?

View Replies View Related

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.

View Replies View Related

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.

View Replies View Related

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?

View Replies View Related

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?

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

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.

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

SQL For Current Date

I am coding an ASP page and need to know how to pull the current date.

Here is my code:

SELECT tenant_id,fname + ' ' + lname as [name],
FROM TENANT
WHERE start_date < [TODAY'S DATE] AND [TODAY'S DATE] < end_date

View Replies View Related

Get Current Rates

i'd like to know if their is a way to get current rates to use them in an asp script that makes currency conversions?

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







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