Urgent !

Results 1 to 6 of 6

Thread: Urgent !

  1. #1
    Shastri Guest

    Default Urgent !

    When I call an ASP page .which make use of its components and call its methods and sets its public variables, where does it get executed ??<BR>(on the server<BR> or <BR>client<BR><BR>also are the variables of that component or class available on client or server.<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Urgent !

    everything on server unless its client side activex control, but you should difine it, so you&#039ll know when you see it

  3. #3
    Shastri Guest

    Default RE: Urgent !

    &nbsp;<BR>So u mean,the instances of objects are created on the server, so the class vars. of the diff. instances are stored in server memory?<BR>So all the different instances are all created in server memory and stored in diff. server memory locations? is it ?<BR><BR>and the client is finally using the resources of the server ?<BR>is it ?<BR><BR>Thanks <BR><BR>Shastri<BR><BR>

  4. #4
    Shastri Guest

    Default How ????

    &nbsp;<BR>When a client asks for an ASP, the server loads the asp.dll file.After that u can call a list of methods from the response object. So what happens ? u create an instance of the response object on the server ? if so, does the method called from the response object gets executed on the server? but then, how is it that the results of that method, say a string message gets downloaded to the client? ( for e.g. response.write).<BR><BR>So does this mean that a parameter is passed to the object on the server and the result comes back to the client???<BR><BR>Any ideas ??<BR><BR>Thanks<BR><BR>Shastri<BR>

  5. #5
    Ragnar Guest

    Default RE: How ????

    An ASP page is basically an HTML page with some code. The code modifies the page on the fly. When the client request the ASP page, any HTML items will be sent to the client browser to be displayed as is. In addition, any data processed with a Response.Write call will also be sent to the client browser for display.

  6. #6
    Join Date
    Dec 1969

    Default RE: How

    before sending the asp-page as html to the client, the server<BR>processes it and executes any and all serverside code contained in the asp-page. (delimmited by &#060;script runat=server&#062;...&#060;/script&#062;<BR>or &#060;% ... %&#062;<BR>This all runs serverside.<BR>The server only sends the non-serverside code (html) back to the client, plus things that were passed into the html by means of<BR>&#060;% =serverside_variable %&#062;<BR>or<BR>&#060;% Response.Write(serverside_variable) %&#062;<BR>so in asp-page:<BR>&#060;script language=jscript&#062; //client side code<BR>var myVariable;<BR>...<BR>myVariable = &#060;% =server_myVariable %&#062;<BR>...<BR>&#060;/script&#062;<BR><BR>will be sent as: (supposing the value of server_myvariable was 12<BR><BR>&#060;script language=jscript&#062; //client side code<BR>var myVariable;<BR>...<BR>myVariable = 12<BR>...<BR>&#060;/script&#062;<BR><BR>hope this is a good answer to your question.<BR>Bart.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts