Is this possible ? 
Author Message
 Is this possible ?

Why this dont work ?

<INPUT TYPE="submit" NAME="Btn1" VALUE="Click ">
<script language=VBScript>
Sub Btn1_OnClick
 Dim str1
 str = "xxx"
 MsgBox str
<% ObjRecordset.MoveFirst %>
 str = <%=objRecordset("au_fname")%>
 strl=Cstr(str)
 MsgBox strl
End Sub

</script>

Is this possible transfer od data between Client side and Server side
scripts and how ?



Tue, 10 Dec 2002 03:00:00 GMT  
 Is this possible ?
I think your confused. To pass information from a form the information must
be submitted to the servlet and then processed. You seem to be mixing the
two which doesn't work because they have no knowledge of each other.

-H>
...
<form method="post" action="my-file.asp">
 <input type="submit" name="btn1" value="Click"/>
</form>
...
<H-

->
<%
 ...
 Dim Str, Res
 Str = Request.queryString("btn1")
 Res = objRecordSet("au_fname")
 Response.Write(Res)
 ...
%>
<-

What your trying can be accomplished with remote scripting but I dont think
thats what you need, if your new to ASP then why not buy a book.

--
Dominic



Tue, 10 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Is this possible, or am I pushing it?

2. Is this possible, or am I pushing it?

3. Is this possible, or am I pushing it?

4. is this possible or am I dreaming

5. I am trying to update a record, i am not using data control

6. I am learning VB.NET and am wondering....

7. I am trying to update a record, i am not using data control

8. Possible Possible ASP Scripting Enhancements: compilation, queuing, resident programs

9. When is 5:00 AM not 5:00 AM? When it's 5:00 AM.

10. Possible Bug, Possible Faulty code

11. Possible bug in WScript.Network **how do I check if I am logged i n to domain **

12. I am looking for a HTTP/1.1 ASP component

 

 
Powered by phpBB® Forum Software