Wont Work On Server

i have made a script and it worls no the local host on my pc but does not work on the server.all of my other asp scripts on the server work any ideas y this would work on the local server and not on the internet?

View Replies


ADVERTISEMENT

CR Doesn't Work With SQL Server

I get the error Error Occured Reading Records: Server has not yet been opened. when I am trying to view a report using the asp pages for crystal reports. It works fine for access files. Can someone help me on it?

View Replies View Related

Server.MapPath() Doesn't Work

I have to upload my senior project to the school's sytem. My asp pages are all in one directory so there is no directory structure. At home I just reference my database file as Code:

Server.MapPath("mydb.mdb")

But it won't work on the school's system saying it can't find the database file. I've tried "mydb.mdb" and ".mydb.mdb", but it still won't find it. I'm just wanting to make sure that, those are the only ways you can reference your db. I've sent and email to the admin, but he doesn't answer his emails. (What an admin!) I'll have to talk to him in person about it then. Suggestions till then?

View Replies View Related

ASP Pages Don't Work On W2003 Server

I have a Windows 2003 server running IIS6.0. It has a number of ASP.NET sites running on it.

I'm trying to instal a legacy classic ASP site, but trying to access and
pages with the .asp suffix produces a "The system cannot find the file
specified." page, or when run locally a 404.

Interesting to note that when I make default.asp my default content page and
browse to /mydomain/ rather then /mydomain/default.asp, this page works
fine.

View Replies View Related

How To Get DB Connection Using Server.MapPath To Work Everywhere?

I have a site with the directory structure like this:

wwwroot (where the default.asp and other pages sit)inc (where the includes are)login (where login pages are)otherDirs (where other pages are)datafiles (where database is)

I usually hard code the db connection path but want to use the MapPath now in case in the future my site moves servers (have been though that and having to manually change all db connection strings - Not Fun ) Code:

View Replies View Related

Display Chinese Character, Work In One Server But Not In Another

I have an asp to display data in database, the data is in big5 encoding
(chinese characters)

I haven't specify the codepage in the asp and placed the file into 2 machine.
When I browse the file in NT machine the chinese characters can display
correctly, but doesn't for the page in my winxp machine. Both OS is english
version. Since the file is actually the same (by copy and paste), so any
setting in the OS or IIS level cause the problem?

View Replies View Related

Include Virtual Does Not Work On 2003-server?

I have 9 asp-sites on a Win2003 server, and would like to use the same
include file, but it does not work.

The path for the servers default website (which is not where the
problem is) is c:inetpubwwwroot and the rest of the sites are at
c:inetpubwwwrootwebsitesSite1 , ..Site2 etc.

I tried using the following on the secondary sites:
<!--#include virtual="Websites/Include.asp" -->
<!--#include virtual="/Websites/Include.asp" -->
<!--#include file="../Include.asp" -->

All works fine on my development machine (Win2k) and on the server
(Win2003) when it is accessed through the LAN, but when I cut the LAN
and access the server through www (e.g. http://www.site1.dk) it does
not work.

I suspect that the internet user does not have rights to the virtual
path, but how do I solve that?

View Replies View Related

Asp Does Not Work

i use a IIS 5.1 with win XP with the newest updates etc.
its possible to start aspx and html files but not asp files
what could it be ? what can i check ?

View Replies View Related

Can It Work Like A CGI?

Can a ASP work like a CGI.(Email Scripts) ? Can a ASP script for email will work, if a Script is on 1 server and form(html.form) is on another server and a thank you page is on 3rd server. Like if u don't know about a CGI there are many websites who give you permission to use their script by editing little bit in yours form and place them on yours server website, there are number of site.

And 1 more thing I want to ask is if some one use a windows server he have a form html on that server, can he run asp script which is on Linux server to get form result on his desired email id.

View Replies View Related

OnAfterPrint Cannot Work

cannot using onAfterPrint in IE 6.0, the page can print but cannot close.
Why??

my code like as below

<body
:
<script language="javascript" type="text/javascript">
<!--
window.print();
//-->
</script>
</body>

View Replies View Related

I Cannot Get This Inner Join To Work In Asp

<!--#Include Virtual="/bug/adovbs.inc"-->

<title>Bug Status Board</title>

<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog =
techsupportBT; User Id = sa; Password="
Set rs = server.CreateObject("ADODB.Recordset")
sSQL="SELECT T.BugIndex, T.[Date Entered], T.DESCRIPTION,"
sSQL= ssql &" T.Company, T.Technician, T.Developer, T.PROGRAM, "
sSQL= ssql &" T.Status, T.PRIORITY, T.[Version Fix], n.noc"
sSQL= ssql &"FROM TSHIGHISSUES INNER JOIN noc ON T.BugIndex =
n.bugindex "
set rs=conn.Execute(ssql)

and this is the error message that I get Error Type:

Microsoft OLE DB Provider for SQL Server (0x80040E14)
Incorrect syntax near the keyword 'INNER'

I cannot find an example anywhere that helps with this situation. This works fine in SQL, but for some reason asp is being a pain.

View Replies View Related

Can't Get CDO Mail To Work

I copied ASP/VBScript code from several sources and adapted it to my page and variables. Here is my current code for implementing CDO:

View Replies View Related

Why Sub Procedure Does Not Work

I am trying to construct a sub procedure that concects to db , executes a stored procedure and returns a recordset. Connection to db and executing the stored procedure works fine.

The problem is that when I call the sub in the asp page to be executed the recordset is refused to be returned from the sub and the recordset itself does not appear to be constructed. or in another words the error displayed is: 'object required' --> refering to my recordset --> 'rs'

I do not know why, can any one tell me the reason, I tried much but with no result.
NOTE: For testing puropses I looped through the recordset isnide the sub itself and it worked fine Code:

View Replies View Related

Global.asa How Does It Work?

Is there somebody who can explain to me how I can use a Global.asa to store Functions and Variables in it? I understand that there are 4 events that can be used in a global.asa : Application_OnStart, Application_OnEnd, Session_OnStart, Session_OnEnd

But still i don't get how i can CALL functions of variables. Because with those 4 things they start all in the beginning or in the end of a session or application.

For example i use an encrypt function in different pages, can i just put it in de global.asa and call it when i need it?

View Replies View Related

ASP Not Work In W2003

I've just moved all asp file from IIS4/5 to IIS6(2003), but they don't work.It there any trick?

View Replies View Related

Work Week

I need to provide a pulldown with work weeks displayed.Is there any easy way to do this?

I would like to go 6 months from the current date and show a week as Oct. 11- 15.Which is Monday to Friday.

View Replies View Related

Validation Does Not Work

I have an asp page. In this there is a form when submit it have to chech if the fields are not emtpy.When it not empty it wil insert into a database an a mail.If a field is empty it send it anyway, it doens't do the validation. Here is a part of my code:Code:

<% if request("action") = "Verzenden" then
datum = request("dtmmeldinghelp")
if datum <>"" then
'I have tried also: if len(datum) <0 then
response.Write("<html>" & "<body>" & "Fout" & "</body>" & "</html>")
else
' here come my sql insert to code and the code for email
' this works fine
%>

View Replies View Related

Aspfunction Does Not Work

i built this test program:

<HTML>
<HEAD><TITLE>Test</TITLE></HEAD>
<BODY>
the time is <% = Time %>
</BODY>
</HTML>


It does not show the time! very basic probably but not for me.

View Replies View Related

Button Won't Work

I am trying to add a button to a menu which it's action is conditioned by a session variable. The button shows up fine but I get no action from the button being clicked . The variable does have a valid value. If anyone can help me out with this it would be greatly appreciated. The code follows:

<input TYPE="submit" NAME="Button1" VALUE="Quote Generator">

<SCRIPT LANGUAGE="VBScript" FOR="Button1" EVENT="onClick">
If Session("RVQuoteAuthority") = "Y" then
Response.Redirect(Quote.asp)
else
MsgBox "No Authority"
End If
</SCRIPT>

View Replies View Related

How CDONTS Work ??

Talking about the cdonts objects.. i want to send the email in windows xp..
i downloaded cdonts.dll and registered it.. but still i am not able to send
the mail.. is it so that i need to set the settings in the Virtual SMTP server
in IIS ?

View Replies View Related

Does GetObject Work With ASP?

I have not been working with ASP for too long at this time and am not real familiar with a lot of things about ASP. I have searched for articles on the following question but
not come up with any definite answers. Code:

View Replies View Related

Setting Up IIs To Work With Asp

I am trying to get ASP to work with IIS and i keep getting page cannot be displayed when i try to open asp pages? Do i have some settings wrong somewhere?

View Replies View Related

Session.LCID Does Not Work

The problem is, even when i set the LCID property at the
beginning of my code, it always returns the date in
brazilian date format. Example:

<% @Language=VBSCript %>
<% Session.LCID=1033 %>
<% Response.write (now & "<BR>" & Session.LCID) %>

This code should return:
MM/DD/YYYY HH:MM AM or PM
1033

But it´s returning:
DD/MM/YYYY HH:MM
1033

Do you see? The LCID is correct but it keeps showing the
date in brazilian format? What the hell is happenning?

View Replies View Related

CDONTS Doesnt Work Always

I am using CDONTS to send mail to the user from my ASP application.
However, the code doenst works all the time. I am able to get mails but
nothing happnes most of the time. The code works maybe once in 20 tries.
What could be the reason?

View Replies View Related

How To Get Unicode Characters To Work In URL?

I have the following reference to an image in my web page. The name of the image is simply one Chinese character followed by .jpg.
<a HREF="transfer/rad0/﨨.jpg" TARGET="_blank">﨨.jpg</a>

The Chinese character is HTML encoded. I'm specifically setting UTF8 encoding w/codepage 65001 in each web page. When I right click this URL and attempt to download the image to disk, I get an error saying the web server can't locate the URL. In the error message, the Chinese character is displayed as ? (question mark). It works if the URL has only ASCII characters in it.

What do I need to do to be able to download images via URLs that contain Chinese (Unicode) characters?

View Replies View Related

Separate File Does Not Work.

i have this css file.

default.css


Code:
#navcontainer ul
{
margin: 0;
padding: 0;
list-style-type: none;
}


when i put both codes at 1 file, everything are ok, but when i separeted them into different files, nothing happened. what's wrong with the code?

View Replies View Related

If Else Statement Wont Work

i have this if endif condition but it doesn't seem to work

if date = "12-06-2007" then
response.write "its december 6"
else
response.write "its not december 6"
end if

and i try this also but its not working either

if day = "6" and month = "December" and year = "2007" then
response.write "its december 6"
else
response.write "its not december 6"
end if

View Replies View Related

Getting Webpage Position To Work

I am having a prob with getting for example, ASP Free Forums > Programming > etc, to display properly. I can get it to work sort of but need to be able to read in a value and be able to change it before its displayed.

It works on the first page but when going to other pages it doesn't. Also when going back to the original page, topic.asp where it works, from view topic the formatting disapears which is a mystery to me. Here is the code that gets it to work on the topic.asp page:section = Trim(Request("Section")) Code:

View Replies View Related

FileSystemObject Scripting Don't Work

I am having ASP with the following code to access the file with windows
scripting host. The page run on local server IIS 5.1 on Win XP Pro SP2. The
IE never show me any error with this, but will keep access the page for very
long. This code is running fine on other system. Code:

View Replies View Related

HTTP_REFERER Does Not Work Properly

Pretty simple task ... page1.asp calls page2.asp and I want page2.asp to show the HTTP_REFERER (which I expect to be page1.asp).

It's blank when I try from my local machine and from other machines. HTTP_HOST, URL and various other server variables work fine so there is a work around, but I'd like to know why HTTP_REFERER doesn't seem to work

View Replies View Related

Button Work As A Switch

This is could be a noob question, but I don't know where to look for answer.
I wanted to create form with a button that checks a boolean value and computes depend on the value. At the end of the click, it should revert the boolean value. ie, if it's true, reverts to false. or the reverse....works like a switch

something like
protected bool myBool = true;
......
if(myBool){process 1....myBool = false;}elseprocess 2....myBool = true;}

Some how, it works on the first click. process1 got processed and boolean changed to false. But it doesn't work on the second click..the handler was never get called again.
What's the problem?.

View Replies View Related

CDONTS Doesnt Seem To Work

i posted earlier, and the response seemed to be there is
another dll i need to use the cdonts object, i used it
fine for awhile on my old setup, i upgraded to 2k3 and it
errors up as if cdonts isnt an object. So is there a dll
i need to have to use the cdonts object in iis 6 or do i
need to rewrite my code to use cdo? (if so, please provide
asp 3 example on how to send an email with recepient,
sender, body and subject)

View Replies View Related

ASP String Function Does Not Work

I'm trying to figure out why the Left function doesn't seem to work.

One of the pages fails with an error:
Microsoft VBScript runtime error '800a000d'

Type mismatch

/status.asp, line 45

Line 45 is:

response.write Left("This is A Test!", 6)

Where is the Type mismatch? All my references say this should work, and give me "This i" as output. The Right function doesn't work either. But the MID function does work.

View Replies View Related







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