Access Variables From Asp Server To Client?

isit possible to access variables (code) from ASP server script to ASP client page?? take for example the code supplied below:

'server script
<%@ Language=VBScript %>
<%
dim svalue
svalue="access me"
%>

'client code
<HTML>
<BODY>
<SCRIPT LANGUAGE="VBScript">
dim x
x = svalue 'svalue isfrom server script
response.write x
</SCRIPT>
</BODY>
</HTML>

View Replies


ADVERTISEMENT

Can't Access Client Side Environment Variables

I am trying to find out how to access %APPDATA% environment variable on the client side of an ASP Intranet application. I need this so that I can perform some cleanup function. So far everything I read points to using Environment.GetEnvironmentVariables("APPDATA"); I can't seem to get this to work. Error message says Environment not defined.

View Replies View Related

Client/Server Side Variables

At the moment I am building a small news board on my companys intranet. There are 2 different offices with 2 different domains. for each office I want to show different news relating to that office.

Is there any way with asp to get the name of the domain that the user is logged onto so I can filter different news for each domain. This will just save the hassle of putting the intranet on 2 different domains.

View Replies View Related

Accessing Server Variables From The Client Browser

I want to be able to client process of the ASP page to get the value
populated in Request("rssFeed"), how can I do this because the Request
object is not available to the Client-side.

View Replies View Related

VBScript (client-side) And ASP Variables

I'm having an issue using a VBScript (client side) and ASP together.

Basically I have this piece of testing code (sampled from my site) where the "Order Total" is obtained from the server. In my code I just declare an "Order Total" server side variable and set it myself. Code:

View Replies View Related

How To Use Variables Of An Array In ASP To Client Script In The Same Form ?

I have an array varibles in ASP script and i want to use these

varibles again in client Script (in VBScript) .

View Replies View Related

Access With Client

I have some questions:

1.what's the cons in using access 2003 with client/server apps?I know for starters that it crashes when traffic is big and that u have to repair and compress it every now and then. what do u think?
2.and also,should I write and execute my sql sentences in the asp page itself or use wsc for that?
3.what are the benefits of using xml besides xmlhttp and using it to retrieve info from other sites?I have heard that u can present your own data easier with it.

View Replies View Related

Difference Between Environment Variables And Server Variables

can anyone tell me difference between environment variables and server variables.

View Replies View Related

Connect Access Db On Client Side

1. i need to develop a admininstrator module where, admin who login from client side will have a access database, and will browse that access database and click a submit button says "upload"

2. I have to take all the data of that access database and upload to sql server which is in ftp server.

3. It is not just mere uploading of data but i have to do lot of process in that database and format the data with proper relationship and then upload.

so my question is How to connect a access database which is in client side.?

View Replies View Related

Server And Client

I have my asp pages stored in my server ,but when i try and call the asp pages in the clinet side it does not show a portion of the page,the same thing if i call from the server it shows me.

View Replies View Related

Web Server To Client

I need to know if, and how, it is possible to use ASP to download a file automatically from the web server to the client in a given path. Is that possible ? Ideally I want a page with a link that when pressed it will copy a certain file that exists on the web server down to the client.

View Replies View Related

Server/client Probs

oChart.ExportPicture file_path, "gif", 200, 200

Response.Write "<img src='"&file_path&"'>"

if file_path=/smart/chart.gif

how this code can run in client computer as it will search in the local cmputer

View Replies View Related

Download File From Server To Client In Asp

we have some exist file at server site.we wants to open it from any client by simple browse or click on file. is tre any tool to do this or any script.

View Replies View Related

Web Applications Is Client-server Application?

My boss told me web application is NOT client-server application. I argued
with him because browser is the client, and the server code put in server.
Then web application should be a client-server application. My understanding
is that a web application is an application that runs on a browser. But
client-server application is not necessary a web application.

View Replies View Related

Client And Server Copying Files To And Fro

There is a client and a server. They both share a folder structure that is identical. The client is able to copy and import files to and from the server with button click.

The client is running IIS and some local scripts. The client also has a network drive mapped to the SERVER location.

Is there a way I can copy files without running IIS on the clients machine? The server needs to pass the file info to the Client. Also keeping in mind that I can't get IE to open file protocol links.

View Replies View Related

Web Client Disconnects From SQL Server - IIS Timing Out?

I am having a problem executing long running queries from an ASP application which connects to SQL Server 2000. Basically, I have batches of queries that are run using ADO in a loop written in VBScript. This works pretty well until the execution time of a single query starts to exceed some threshold, which I am trying to narrow down. I can typically run 2 - 10 queries in a loop, with the run time being anywhere from under a minute to an hour or more. Now that this application is being subjected to run against some large databases (25 - 40G), I'm having problems getting the application to continue beyond the first query if it takes a while to run.

I used SQL Profiler to try to diagnose what was going on. I can see the query executes to completion, but immediately after completing I can see an "Audit Logout" message, which apparently means that the client has disconnected. The query durations vary from 45 or 50 minutes to up to over 90 minutes. I have the ADO connection and query timeouts set to very large values, e.g. 1000 minutes, so I can't think its that. My guess is that there is some IIS setting or timeout that I am running up against and the connection to SQL Server is just dropped for some reason.

The configuration is

NT 4.0 SP6
SQL Server 2000 SP3
IIS 4.0
Explorer 5.5

I'm only running into this problem on the very largest databases we run against. The vast majority continue to function properly, but this is going to happen more often as time goes on the databases continue to grow in size.

View Replies View Related

Pass Client Creds To Web Server

Using classic ASP is it possible to get the user's name and password and pass them to the web server to avoid the Windows Authentication popup login box?

View Replies View Related

How To Send UDT From A ATL Server Implemented In VC++ To ASP Client

I want to know the possiblity and process of an ASP client, which needs to get some UDT from a ATL Server component implemented in VC++. The UDT is basically a C++ class consisting of a BSTR and a short. for eg.,

class CMyClass
{
BSTR myName;
short myNum;
};

and what actually i need is to pass a collection(vector) of this object to ASP client as well as to a VC++ client.

View Replies View Related

FileExists On Client Machine NOT Server

The jist of what i want is the obj.FileExists (how it checks for a file on the server) for the client machine.

The client will be scanning something that will put a pdf file into a shared folder on their machine (it will be the same path for all clients). I need to get the code* to pull that file so that i can take the data on the pdf.

*Code doesn't have to be ASP. i'm up for ASP, VBScript, Javascript.

View Replies View Related

Start Client Application From Web Server

I want to launch a client application from the server and send it some parameters. The application is written in PowerBuilder.

View Replies View Related

Client Side Server.HTMLEncode

Normally when I do serverside processing and if the string may contain < or > characters in the userdata I would do:

<%=Server.HTMLEncode(userdata)%>

However if I'm doing client side processing is there any equivalent VB function that I can call to do just that, or do I have to write my own routine to convert < to < and > to >, etc?

View Replies View Related

Is It Possible To Determine The Client's Time Zone On The Server?

I was wondering if anyone knew how to determine how to determine the
client's time zone from within an ASP page?

View Replies View Related

Sharing Data Between Client And Server Scripts

Suppose I load data from a database and store it in a VBScript array using asp (i.e. this is all done from the server)

I then want to have some client side scripts (they have to be client side because they are activated depending on what the user does on the page). Is there any way of accessing the array generated at the server, through the client side scripts???

If not, how else can I write my page?? The data is loaded from a database, which is obviously done at the server. If not by doing what I have already described, how else can i use the database data in my client side scripts???

View Replies View Related

ASP Script Takes Longer On Client Than Server

Let me paint the picture: A large MS SQL database (in 7.0) on a Win2K box (not that the Server O/S matters here really) and an ASP page that grabs data from it to present, of course, to the client browser. For the sake of conversation (since I have tested this oversimplified version of the problem) the code pulls a select * from blah (where blah is my BIG table - right now about 25,000 rows).

The problem/question is the time it takes to present the HTML to the client. The big question is...

Why would it take significantly longer to present the final (parsed) HTML on a remote client computer than right on the server? Note: I would normally consider the time it takes to "download" the HTML to the client, but in this case the actual "presented (parsed) HTML" is so small (it's only one integer inside the body tags), that could never account for the difference in time...and I mean significant..on the server...seconds...on a random client computer...many minutes...on my customer's machine...over an hour (which is, of course, my particular problem).

I obviously have to look at their ISP, but a)Again, the end-product HTML is very VERY small and b)the page does eventually present itself (so it's not timing out). I have the scripttimeout set ridicously high so that potential problem doesn't come up, but that's not the problem.

I just want to know what could be causing the significant time difference? Everything I know about the ASP "process" tells me this scenario should never happen (unless the HTML being sent is significant, of course, like a huge list, or something).

View Replies View Related

File Download From Web Server To Client Field

How to download the file from web server to client machine? If anybody have idea, inform to me.

View Replies View Related

File Creation On Server, Without Wasting Client Time

I have a chunk of code, where based on the user's selections, it goes through a database and selects all of the records from the database and writes them to a text file (the database contains nearly 600,000 records), currently, the file is written and the user would end up having to wait for it to be written, before continuing.

Is there a way that this file could be kind of.... tagged or something, so that the server creates it in the background, instead of while the user waits, so the user can continue doing other things, rather then having to wait for the text file to be created.

The files can be quite large, as they can end up being anywhere from 1 - about 600,000 records with between 4 - 10 fields each. Here is a sample of the code that creates the text file. Code:

View Replies View Related

How Can I Access GET Variables?

How can I Access GET Variables in ASP?

View Replies View Related

Access Variables

I am having an issue with disabling a form field. The page pulls up records in a database. A user is allowed change the record as needed until it is published in one or both of 2 options (combo boxes). If the record is published in one then all other fields except the unpublished combo box is disabled, allowing the user to publish the other at a later date. However, I run in to my problem here.

I cannot access the data in the fields if they are disabled. Is there some way to access the data in the fields while they are disabled? Or is there some way to not allow a user to edit the contents of a text fields without disabling it? Either way would likely get me past my problem.

View Replies View Related

Access The Variables

is it possible to access the servariable inside the client script? if so can some one give me an example?

View Replies View Related

Access Cgi Environment Variables

can't seem to find how accesss the standard cgi environment variables in vbscipt/asp, remote_addr, server_port, etc they are accessible right? or a similar vbs set?

View Replies View Related

What Is To Need Server Variables

What do you need to have on the server in order for LOGON_USER to work?Its not working on my server.Reverse DNS maybe?

View Replies View Related

Why Server Variables

Need to know some about current user of NT domain. In my asp page i have used Request.ServerVariables("LOGON_USER") to get current NT user but some times it returns nothing and some times it gives correct user name.

In my application i am redirecting from one page to antoher and i need to keep server variable "LOGON_USER". For every page i have different kind of security. I don't know wheather i am missing some thing at IIS or this command works unusually.

View Replies View Related

Server Variables

I just have a question for something I have been seeing out in the WWW.

Some websites that I goto display the city and state of where I live. The question is How are they doing that? is it a Server Variable ? If so does any one know what that Variable is?

View Replies View Related







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