|
Execute is a method associated with a Server, Connection, or Command object in ASP, not a standalone function. It looks like you're trying to append field values to field names, then treat them as functions. What are you really trying to accomplish?
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
Isn't it Server.Execute? I could be wrong...
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
|
Hi
I have a menu (html) that always stays the same. I want to include this menu on my other html pages, but don't want to use frames.
How is this done? I know there's a #include syntax in asp, but I want to use only html.
tx
|
|
|
|
|
(i.e.
if I have an includes folder at the root of my web dir)
or
(i.e.
to 'step back' one dir and into the includes folder.)
include virtual is the best way to include a file.
|
|
|
|
|
Hi
sorry but this stil does not work, I don't know what I'm doing wrong!
my one file is a.html:
standard "hallo world" sentence
the other one is b.html:
<html
<body>
in the same dir...
|
|
|
|
|
If using 'include virtual' it doesn't matter if the file is in the same directory or not - you always specify the absolute path from the web root. Meaning, if your domain name is acme.com, and you have a folder called 'includes', then the full URL to your includes would be www.acme.com/includes/...same with this. If your a.html is in a directory other than the web root, then you have to specify it (i.e., include virtual = "/includes/a.html" or whatever your path is).
If it's in the same directory you can simply use 'include file' and it will work in your particular example as well.
Robby
|
|
|
|
|
This is SSI (server-side include) syntax and must be supported by the web server. Either the web server must be configured to treat .html files as SSI files or the file must be renamed to the use the extension associated with SSI (usually .shtml ).
Think of SSI as a "lightweight" scripting language that doesn't have the advanced features of languages like ASP/JSP/PHP.
- Mike
|
|
|
|
|
|
Try the sum (5*22.99) in Javascript... (Internet explorer 6.0.2800xp sp2)
<script type="text/javascript" > document.write(5*22.99);</script>
I get 114.94999999999999!! it can't be right.
what do you get or is this machine specific?
Jason
|
|
|
|
|
I get the same. IE 6.0.2800.1106 (SP1)
Just another little oopsie... I had similar problems with Paradox, trying to convert a currency value to text often (not always) got the last digit wrong by one. It took me hours to figure out
text = asc(int(amount)) + "." + asc(int(amount*100)- (100 * int(amount)))
just to be able to print a check. Does it get the correct answer if you format it to display only the first two decimal places?
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
hi all.i am working now on my graduation project which is about content management system. i want to add date and time to my home page which are to be always updated when the clock or date of the computer change.
so i want it dynamic not static.
thanks .
good luck for all.
|
|
|
|
|
<%@ Language=VBScript %>
<%
Response.Write ("hello! It is currently " & Now())
%>
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
Hi!!
I am facing a problem while downloading file from a site. Infact the file with the code below is working fine on my local system but when i tries to download the file from remote server it generates an error and displays following text as a message box:
"Internet Explorer cannot download <file> from <servername>.
Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found."
The file i am trying to download is a self extracting .exe file. The path of a file is perfect coz when i put a small size file on the same location with the same name, download starts without any error. ONe thing, using win2003 server.
Please reply me and help me ASAP its really very urgent.
Regards,
Farhan Ahmed
farhanmanzoor@hotmail.com
----------------------------------- C O D E ------------------------------------
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition","attachment;filename=" &strFileName& ""
strFilePath = replace(request.ServerVariables("APPL_PHYSICAL_PATH")&strFilePath, "\","/")
Const adTypeBinary = 1
strFilePath = strFilePath
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing
--------------------------------------------------------------------------------
|
|
|
|
|
This is more of a networking issue than a web development issue. In all liklihood, your computer is behind a firewall or something. What web address are you using remotely? If the URL you are trying to download from is not a valid .com, .net, .org, (or other top level domain) site, then it's not going to work.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
The file path i am using for downloadin the file came from the DB which is like..
downloads\Course\filename.exe
Plz do let me know whats happening with it??
regards.
|
|
|
|
|
I cannot help you unless you answer my question. What URL are you typing into your browser to test your site remotely? It is my theory that you are trying to access a website that has not been made globally accessible. The only way(s) your site can be globally accessible is if you either:
- Host the site on your own machine and have a T1 or a static IP on a cable or DSL connection
or
- Host the site with a webhost
Which of these two situations are you using to make your site globally accessible?
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Hi again,
How to create a table dynamically using VBScript used for Server side scripting?? Data base is MSAccess.
Thanks and Regards,
Satya Prasad
|
|
|
|
|
Can you please make you question more specific?
What table do you want to create? HTML table or a table on the Database?
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
Sorry,
My question was incomplete.
I am interested to create a Database table dynamically.
I am using MS ACCESS as the database.
How to do this using VBScript at the server end??
Thanks and Regards,
Satya
|
|
|
|
|
|
Hi friends,
I am a new bee in ASP.
I have a web page with three list boxes for user selection. I am processing this user input in the next page when user click Next.
I am writing a select call using these three user selection assigning them to some variables.
My select call is like this.
Con.execute("select * from '" &var1& "' where IO='" &var2&" ' and Server='" &var3& "' order by sno")
If I execute this code I am getting this following error.
0x80004005 Syntax error in query. Incomplete query clause.
What is the syntax error in my code?? Can any body correct??
Thanks and Regards,
Satya Prasad
|
|
|
|
|
syntax error in query means u got something wrong in the syntax duh!
try response.write [the query] and see what u get
"there is no spoon" biz stuff about me
|
|
|
|
|
Check your quotation marks in the query string. I suspect it's getting truncated somewhere. Try adding
cmd = "select * from " & var1 & " where IO=" & var2 & " and Server=" & var3 & " order by sno"
Response.Write(cmd)
Con.Execute(cmd)
and play with the string until it works correctly, then delete the Response.Write line. VBS is a pain about strings...
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
My website uses the Office XP web components (OWC10) to generate charts. These charts are dynamically generated by server-side ASP code and then downloaded to the client browser as .GIF images.
Usually, this works just fine and the client gets a nice chart, but occasionally all the chart labels are missing. Here are a couple of images, one good, the other bad:
The Good Image[^]
The Bad Image (missing labels)[^]
I have noticed that the missing labels phenomenon only occurs if the web server (Win2k Server) is not logged in. As soon as I log in to it as administrator, everything goes back to normal, but this is really not the best "fix"...
Does anyone have any idea why this would be happening? I am absolutley lost as to the reason for this - and so is Microsoft. I have spent several hours talking with them and all they could suggest was to get a better graphics card!
|
|
|
|