Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: question


Message #1 by "asp asp asp" <rajeshasp@r...> on 26 Jan 2001 14:18:58 -0000
1) hello this is my first mail to U i am working on asp in an organization my problem is can i use a
variable defined by the keyword dim(at the server side) at the client side and retrive the valu i gave to that variable at the
client side.



2} is there any way to encrypt the data that the user types n the password field and then sent across the network



   waiting for Ur mail

     rajesh



_____________________________________________________

Chat with your friends as soon as they come online. Get Rediff Bol at

http://bol.rediff.com









Message #2 by Scott Watermasysk <swatermasysk@C...> on Fri, 26 Jan 2001 09:51:43 -0500
For question 1, you could pass the value in a hidden form field.



-----Original Message-----

From: asp asp asp [mailto:rajeshasp@r...]

Sent: Friday, January 26, 2001 9:19 AM

To: ASP Web HowTo

Subject: [asp_web_howto] question





1) hello this is my first mail to U i am working on asp in an organization

my problem is can i use a variable defined by the keyword dim(at the server

side) at the client side and retrive the valu i gave to that variable at the

client side.



2} is there any way to encrypt the data that the user types n the password

field and then sent across the network



   waiting for Ur mail

     rajesh

Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Fri, 26 Jan 2001 15:14:45 -0000
1) yes, like this (I think this is what you mean...)



<%

dim sValue



sValue = ...



%>

<script language="javascript">



var sValue = "<%= sValue %>"; //(quotes necessary if its a string)



</script>



Then to send the value back to the server use a hidden field



-----Original Message-----

From: asp asp asp [mailto:rajeshasp@r...]

Sent: Friday, January 26, 2001 2:19 PM

To: ASP Web HowTo

Subject: [asp_web_howto] question





1) hello this is my first mail to U i am working on asp in an organization

my problem is can i use a variable defined by the keyword dim(at the server

side) at the client side and retrive the valu i gave to that variable at the

client side.



2} is there any way to encrypt the data that the user types n the password

field and then sent across the network



   waiting for Ur mail

     rajesh



________________________________________________________________________

Scottish Enterprise Network

http://www.scottish-enterprise.com

Message #4 by Imar Spaanjaars <Imar@S...> on Fri, 26 Jan 2001 16:31:20 +0100
Yes you can. Do something like this:



' Serverside

<%

Dim sMyVar

sMyVar = "Bla bla bla"

%>



' Clientside

<SCRIPT LANGUAGE="JavaScript">

         var sTest

         sTest = '<%=sMyVar%>'

         alert(sTest);

</script>



When this page is run, it will write the appropriate JavaScript-block to 

the browser. The end result will be:



<SCRIPT LANGUAGE="JavaScript">

         var sTest

         sTest = 'Bla bla bla'

</script>



Now you can use the variable sTest at the client side as you normally would.



To use encryption, consider using SSL. This will encrypt the data between 

the browser and the server.

Take a look at http://www.aspfree.com/devlinks/search.asp and search for SSL.





HtH



Imar





At 02:18 PM 1/26/2001 +0000, you wrote:

>1) hello this is my first mail to U i am working on asp in an organization 

>my problem is can i use a variable defined by the keyword dim(at the 

>server side) at the client side and retrive the valu i gave to that 

>variable at the client side.

>

>2} is there any way to encrypt the data that the user types n the password 

>field and then sent across the network

>

>    waiting for Ur mail

>      rajesh



Message #5 by "Wally Burfine" <oopconsultant@h...> on Fri, 26 Jan 2001 17:32:26 -0000
I think you want to encrypt the data back to the same box. If you don't, the 

un-encripted data is sent also. So in the on click event of the submit 

button, encrypt the text input field and return the encrypted data back to 

the input field and continue on with the submit.





>From: Scott Watermasysk <swatermasysk@C...>

>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>

>To: "ASP Web HowTo" <asp_web_howto@p...>

>Subject: [asp_web_howto] RE: question

>Date: Fri, 26 Jan 2001 09:51:43 -0500

>

>For question 1, you could pass the value in a hidden form field.

>

>-----Original Message-----

>From: asp asp asp [mailto:rajeshasp@r...]

>Sent: Friday, January 26, 2001 9:19 AM

>To: ASP Web HowTo

>Subject: [asp_web_howto] question

>

>

>1) hello this is my first mail to U i am working on asp in an organization

>my problem is can i use a variable defined by the keyword dim(at the server

>side) at the client side and retrive the valu i gave to that variable at 

>the

>client side.

>

>2} is there any way to encrypt the data that the user types n the password

>field and then sent across the network

>

>    waiting for Ur mail

>      rajesh

>


  Return to Index