Sending value to client side

Results 1 to 2 of 2

Thread: Sending value to client side

  1. #1
    Lollita Guest

    Default Sending value to client side

    Hi,<BR>I have a textbox at client size. I would like to assign a value from the server to the textbox and use the value of the text box to link it to another page.<BR>e.g<BR>"window.location = "Main.asp?lngtemp=" & txtbox.value"<BR><BR>Nothing seems to work. I beg for anybody help.

  2. #2
    Ritesh Guest

    Default RE: Sending value to client side

    Lets say the value you want to pass is var_value.<BR>Then do like this:<BR>&#060;form name=form_name&#062;<BR>&#060;input name=text_to_pass value="&#060;%=var_value%&#062;"&#062;<BR>&#060;/form&#062;<BR><BR>then to send it to other page use:<BR>&#060;script language=vbscript&#062; &#039you can also use javascript<BR>sub SomeEvent()<BR>form_name.action = "post_page.asp?val=" & form_name.text_to_pass.value<BR>form_name.submit() <BR>&#060;/script&#062;<BR><BR>you can collect it easily on the next page.

Posting Permissions

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