Server Side Vs. Remote

I'm having a problem viewing a pdf file via intranet from the remote location. When I view it from the server side it works. Here is the code and the file name.

This is what the path looks like in the Access 2k database. c:/Inetpub/WWWroot/TEB/Documents Okay this is what happens, when I use this path it doesn't open the file because it's looking for it on my local machine.

But when I use this path f:/Inetpub/WWWroot/TEB/Documents in which F: is mapped to the server where the web site is locate it opens the file. If I use this method this would mean mapping everyone to this server which causes a security issue.

I cannot allow anyone to view or modify my files for the intranet, they may become corrupted. So what I need is some kind of alias or something that. Is there a way that I can capture the c drive from the server using Access 2k without using the actual c: format so that it will read from the server and not the local pc. Code:

View Replies


ADVERTISEMENT

Opening Server-side Excel File Then Modifying It Client Side Using Vbscript

is it possible to open an excel file (used as a template) from server using server-side vbscript; then modify it or add values from client using client-side vbscript?

View Replies View Related

Passing Client-side Array Index To Server Side Script

Following is a vbscript code extract triggered by a combobox OnChange event. arrVendorA and arrdefpack are server side arrays and i need the intCounter parameter to be the array index. Code:

<script>
sub getstdPackByVendor(strPartNo, intCounter)
dim selVendor
selvendor= colSelect("cboVendor", intCounter).value

if selvendor= "<%=arrvendorA(intCounter)%>" then
if "<%=arrdefpack(intCounter)%>" = 2 then
colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(intCounter)%>")
end if
end if
end sub
</script>

View Replies View Related

Server-side Array, Client-side Index Problem

The following code is giving me a type mismatch error at the 'if' statements... any ideas, anyone ?

sub getstdPackByVendor(strPartNo, intCounter)
dim selVendor
selvendor= colSelect("cboVendor", intCounter).value

if selvendor= "<%=arrvendorA(" & intCounter & ")%>" then
if "<%=arrdefpack(" & intCounter & ")%>" = 2 then
colTD("txtStdPack" & intcounter+1 ).innertext =
cstr("<%=arrVAStdPAckL2(" & intCounter & ")%>")
end if
end if
end sub

View Replies View Related

Server-side Vbscript Call With Javascript Client-side

How do I go about calling a server-side vbscript within a client-side
javascript function? What I have is a page heavy on the javascript that has
a number of functions, one of which is to begin a visual countdown with an
onclick and also open an asp page containing the server-side vbscript, which
initiates a wake-on-lan call. I had no idea how to call the vbscript within
the javascript function, so this is why I opted for the vbscript asp page
"pop-up" via window.open. Code:

View Replies View Related

Client-side Confirm() Needs To Run Before Server-side Code

I check to see if a certain submission button is asking for removal. If the removal is true, I update a recordset's delete column. This has been tested and it works. However, now I'd like to prompt the user to make sure that he/she wants to remove the record. Here's the code: ....

View Replies View Related

Can Client Side Scripts See Server Side Form?

I have a Client Side Java Script which is supposed to re-load the options on my serverside ASP form.

I have been trying to get the syntax right to assign the Select box on the ASP form to a variable in my JavaScript so I can update the options. Can anyone either tell me if this is not possible or what the syntax should be. Here is some information.

Form Name = AddProdForm
Select Box name = subprodline
JavaScript Variable = form1

Here is one of the many versions of this line I have tried.

var form1=document.forms(""AddProdform"");

View Replies View Related

Executing Server Side .exe File From Client Side

I m writing one code to invoke remote desktop service for given IP address. For that i m using mstsc.exe file to invoke RDP.

I have a no of links to be displayed on the page and on click of link, RDP for that IP should be called. Currently i m using one button to invoke RDP. Code:

View Replies View Related

Tables - Server-side Vs. Client-side?

I am starting to build quite a few pages that will have
tables of data from an SQL database.

I have been building the table rows on the server side
in VBScript, but I have been thinking about having the
VBScript code just build array variables in the <head>
section (or as local variables), and then have JavaScript
functions on the client side actually populate the tables
when the page loads.

I do plan to do other things like being able to sort the
tables in JavaScript code on the client, limit the tables
height and be able to scroll the rows, and click on a row
in the table, and have the values populate a form. I will
also need to be able to export/download/? some tables into
Excel.

View Replies View Related

Client Side And Server Side Validation

I am doing login page . (login.asp)As usual it has username , password textbox and a login button .i need to do client side validation for mandatory fields and I need to do server side validations to check for the hardcoded username and password .if it matches i have to redirect to another page(content.asp)

View Replies View Related

Client Side Asp Within Server Side Asp

im trying to use the following code to log whenever a user clicks through
this particlular message box - however, this currently logs regardless of
whether or not the message box was clicked - im assuming this is because the
server-side code can't see the client side if condition. but how can i set
the varMsgBox variable as a server-side variable? Code:

View Replies View Related

Server Side Script Inside Client Side Script Allowed?

I have a sub routine called when I click on a button. It is inside VBScript tags (client side). Can I do server-side scripting inside that?

<script language="vbscript">
sub cmdButton_Click
code

'can I do this
<% strValid = "Update" %>

End Sub
</script>

Would be nice but don't think it works. Anyone know for sure?

View Replies View Related

Connecting Web Server And Remote Db Server Via Asp

my prob is i have 2 different computers, one that runs my asp pages and the other my database server (mySQL). im working on my local and trying to connect my remote database with my remote webserver using DSNless connection string as more advisable. Code:

View Replies View Related

Local Server To Remote Server

I am not an expert but I am trying to create an application where I need to connect my website to the user's(basically my client) database in access and then I will read the values from the database in the local drive and upload all the values in the database at my webspace. I will have everything like the database name and the password....so how can I do this

View Replies View Related

Remote Server

i want upload a txt file to remote server

View Replies View Related

Remote Server

I work with dreamweaver 8. I use the tools provided within dw to create my asp features etc. I downloaded a news script to save time since its a very low budget site, but I need to customise how its displayed.

The news script connects using a Server.MapPath connection. I would like to be able to work locally using a dsn. dsn=nwnews; but I would like to be able to change that connection to work on the remote server for testing etc.

This is Dreamweavers Connection file: Code:

View Replies View Related

FSO On Remote Server

We're wanting to upload files and save them to a different server on the network (Windows 2000) from the web server. The upload works fine but we cannot copy files, using the File System Object, to this other server folder.

what is required in terms of mapping and registering the folder so that the web server can link to it?

View Replies View Related

Remote Server By FSO

I just want to delete a file in a server by FSO. My code is:

Set objFSOD = Server.CreateObject("Scripting.FileSystemObject")
objFSOD.DeleteFile Server.MapPath(".") + "Greetings" + sFileName1,
True
Set objFSOD = Nothing

When I check the code locally, everything is fine. I have two remote servers. When I check the code in each servers, one is fine and other is thrown a error. But the error msg is in Korean language while I'm not korean, that is why I can't read the error
msg. What would be the error msg about? The sFileName1 was always correct every time I checked.

View Replies View Related

Remote Server

Currently we have a site that allows users to listen to mp3 files. It is creating bandwidth issues. So we want to move the mp3 files to an ISP that caps bandwidth usage. Ours is currently burstable.

Now I am able to do the following:

Set fs = CreateObject("Scripting.FileSystemObject")
If fs.fileExists(music_file) Then
'show music file
Else
'do not show a link for file
End If
set fs = nothing

Is it possible to do the same thing, but on a remote server?

View Replies View Related

ASP.net Not Working On Remote Server

Localy along with VS2005 when hitting ctrl+f5 the asp application server get's launched, and the whole site works fine, now on my windows 2003 server i installed IIS, it also has apache running and that works fine but the IIS part, i cant get it to work.... i have my inetpub filder on c which has a www folder but when i copy my project to there it tells me it's unable to process the page (aspx), can somebody help me out here please.....

I did the configuration and rule statements in the server manager which now displays ASP.net working and active, but it does NOT work at all....

View Replies View Related

CDO - And Remote SMTP Server

1. I wonder, why do I need to add the following lines when sending forms through mail, using CDO component?

2. If I remove these lines and the form is still submitted as it should, and I get the mail as a result as it should, does it mean I do not need these lines?

3. In other words - How do I know if an SMTP service is installed on the local server, and not in another network (besides asking the admin)? Code:

View Replies View Related

XML Server.map Won't Take Remote Locations

Whenever i put in a remote location to server.map, it errors about an invalid character (the colon is what gets it. is there any way to do xml parsing remotely?

View Replies View Related

FSO Remote Server Access

Wish I'd found the thread yesterday before spending half the day fighting
the same battle and finding a workaround. But at least it explains why my
final approach worked.I set the remote folder as a virtual folder on the webserver, assigned web rights to a domain user and used fso.copyfile(server.mappath) to copy a
file created locally.I'm not thrilled that access to the remote location can't be controlled at the user level this way but at least access to the calling script can.
Strange though, the problem showed up during a migration. Server A had been
hosting this asp page and connecting to server B sucessfully. I was moving
the application to server C when I ran into the problem. All three machines
are W2K, same service pack, same domain, same users, same access
rights/method configuration. Go figure.

View Replies View Related

Database On Remote Server

I try to get data from a database which is on an other server. I can view the files on this server via the directory "t:" from the machine the ASP pages are on.

Constring:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=t:database.mdb"

Error:
't:Database.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

View Replies View Related

Connecting To SQL Db On Remote Server

I need to connect to a SQL db on a remote server but my connection string doesn't appear to work as the page just keeps timing out. The physical url of the db is (not real IP) 0.0.0.0/Databases/query and the connection string looks like so:

strConn = "Driver={SQL Server};Server=0.0.0.0/Databases/;Database=query;"

What should the connection string look like?

View Replies View Related

FileExists On Remote Server

how to use FileExists to check to see if a file exists on a local server BUT what if I want to check if a file exists on a remote server (webserver)? If I enter "http://domainname/folder/image.jpg" it always returns false.

View Replies View Related

Asp Forms In Remote Server

im hosting my website in linux server...so i need to develop an enquiry form....my fren is hosting in a windows hsoting server and he have the asp enquiry coding..

is there any way i can do remote coding hosting ...where the enquiry form will be in my php server and the asp coding will be in my frens windows hosting server..

View Replies View Related

Remote Access To SQL Server

I was given the following by my host:

Database name: asdfafasf
IP/Host: 11.111.11.111
Server: asfafaf
Username: afafdadaf
Password: adfadf

Every program I use (excluding Enterprise Manager - I don't have it) to connect is unsuccessful. Access Projects for example, when I try to establish a connection, it doesn't ask for IP/Host.

View Replies View Related

Access Remote Server

I have admin privileges on a remote server and would like to use a web interface (asp) to manipulate various files. It seems that when I access the remote web pages I only have IWAP and IWAM privileges. Is there a way to automatically send my admin username and password via the asp pages so I will have admin privilages?

View Replies View Related

Connecting To Remote Oracle Server

How can I access remote oracle server?. I'm using the following connection string.

" Provider=MS Remote;Remote Provider=MSDAORA;Data Source=XYZ;Remote Server=http://DBServersIP;User Id=id;Password=pw"

Both the web server and DB server has oracle client. I can tnsping, connect using sql * plus from the webserver.

But when I try to do simple connection & query , I get the following error.

" Microsoft ADO/RDS(0x80072EFD)
Internet Client Error: Cannot Connect to Server.
"

Can someone throw some links or help.?

View Replies View Related

Remote Server Drive Space

I have wrote small script that can get local drive information (e.g. size). Is there anyway I can get disk information from server ?

'Get Drive's Free space
dim MyDriveC,MyObject, MySpace
set MyObject = Server.CreateObject("Scripting.FileSystemObject")

'Set Object
set MyDrivec = MyObject.GetDrive("c:")

'Free Space
MySpace = MyDrivec.AvailableSpace

'Write msg
'Response.Write("Available space on Drive C: " & MySpace)

code is working fine but when I try to put other then "c:" it says path not found.

is there anyway I can get infromation from server or remote computer ?

View Replies View Related

HTTP Post To A Remote Server

I have an asp page. There I enter some text. This text needs to go some other web site but as jsp page ( such as http://www.web.com/Link.jsp).

Now, I was told to submit my asp page as HTTP Post to their jsp page. This is completely a new thing for me to do. Code:

View Replies View Related

Connect To A Database On A Remote Server

I have my access database on a xp workstation setup as a web server using IIS. I am trying to access the mdb from another web server, but when I run my code below I keep getting :

Microsoft ADO/RDS error '800a20ff'

Internet Server Error. Code:

View Replies View Related







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