
| email this FAQ to a colleague
Q: I want to find out the date on the client machine. How can I achieve this with ASP? A: You may be able to find it out on the client side but not on the server side. ASP files are only *executed* on the server side so they only have access to the server side objects and resources. SERVER ASP code gets processed and sent to client. This code could just be straight HTML or could include scripting. The scripting will only run at the server. It only has access to server side objects and resources. CLIENT HTML code gets read from server and processed. This code could just be straight HTML or could include scripting.
The scripting will only run at the client. It only has access to client side objects and resources. Never is any information, variables etc. passed between the two processes. This limits what you can accomplish. This is as specified with the HTTP protocol which basically states that you ask for a file and receive it. Client requests file - Get default.asp Default.asp is processed on the server machine. The results of that processing are passed to the client HTTP request Server response - Default.asp Results of 'get' passed to client machine Client machine may have script processing to do. Formats page based on HTML specification and processes and script. - Michael Schmidt | Articles | | | Jul 31, 1997 - Creating a Category Site with ASP | | In this issue 15 Seconds implements a catalog site that is build with Active Server pages and SQL Server. Along with the implementation there is source code and a discussion of the advantages and disadvantages of creating a catalog site that gets its content from a database. Included are pages for displaying products, creating a menu page, category page, and running a search across a database. [Read This Article] [Top] |
| | Apr 22, 1997 - Active Server Components with VS 5.0 | | A rewrite of part one of a four-part series on Active Server objects. A simple example of creating a Active Server Component in Visual Studio 5.0 using the Active Template Library 2.0. The example component retrieves the user's cookie, if not available issues a new 128-bit cookie. Included in the issue is the source code and step by step instructions. This issue has been rewritten to illustrate the use of Visual Studio 5.0 and ATL 2.0 in writing Active Server Components. [Read This Article] [Top] |
| | Apr 6, 1997 - Creating a List Server with ASP | | This issue describes how to make a list server using Active Server, SQL Server, and Stephen Genusa's ASPMail Component. Included are source and instructions for adding the user to the list from a Active Server page, removing the user from the list via a Active Server page, and sending mail to the whole list. [Read This Article] [Top] |
| | Jan 24, 1997 - Simple ASP Chat | | This 15 Seconds' issue contains source code and step by step instructions for creating a chat session using Active Server pages, HTML and a standard web browser. Also demonstrated is writing and reading of a file with an Active Server page. [Read This Article] [Top] |
|
|