Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: is it possible?


Message #1 by "Rabia Tabassum" <rabi786t@h...> on Wed, 20 Nov 2002 09:33:07 +0000
  is it possible that i am using vb script at server side and onclick event i want to run a function
declared in vbscript. that when i click then response .write will execuet but when ever i write in browser it always execute before
clicking at button. is it possible to do what i want that on click a function  who is running at server will be execute???????????
 
 


 

 








 
 









  










Add photos to your e-mail with MSN 8. Get 2 months FREE*.
Message #2 by Imar@S... on Wed, 20 Nov 2002 17:38:31
I am not complete sure what you are trying to accomplish. 

If you want to run code on the server after a click on a button at the 
client, you'll need to submit the form to the server and process it there.

Something like this:


' Server side
<%
    If Request.Form("btnSubmit") <> "" Then
        ' Submit button pressed. Do your "add" stuff here
    End If
%>


<!-- Client side -->
<input type="button" name="btnSubmit" id="btnSubmit" value="Add Record" />

HtH

Imar



>   is it possible that i am using vb script at server side and onclick 
event i want to run a function declared in vbscript. that when i click 
then response .write will execuet but when ever i write in browser it 
always execute before clicking at button. is it possible to do what i 
want that on click a function  who is running at server will be 
execute???????????
 
 


 

 








 
 









  










Add photos to your e-mail with MSN 8. Get 2 months FREE*.
Message #3 by "Rabia Tabassum" <rabi786t@h...> on Thu, 21 Nov 2002 07:55:56 +0000
hi
infact i want to that when i click add button the record should insert and at the same page when i click delete it will delete
record. one way is that i should make each button as submit type and at action in form tag i should give path of asp page for add
and for delet i should give path of another asp page. but i want to handle different buttons with one asp page. when i click on add
button only inserton record should execute and on clicking delete button only delete part should execute. becaz the way i m doing
it'll be too heavy to use as much asp as button. so if i have three buttons and i want to execute different codes on clicking event
those code which runs on server side then i have to make three asp pages.
is there any solution????
rabia
 
 
 
 

>From: Imar@S... 
>Reply-To: "asp_discuss" 
>To: "asp_discuss" 
>Subject: [asp_discuss] Re: is it possible? 
>Date: Wed, 20 Nov 2002 17:38:31 
> 
>I am not complete sure what you are trying to accomplish. 
> 
>If you want to run code on the server after a click on a button at the 
>client, you'll need to submit the form to the server and process it there. 
> 
>Something like this: 
> 
> 
>' Server side 
><%
>     If Request.Form("btnSubmit") <> "" Then
>         ' Submit button pressed. Do your "add" stuff here
>     End If
>%> 
> 
> 
> 
> 
> 
>HtH 
> 
>Imar 
> 
> 
> 
> >   is it possible that i am using vb script at server side and onclick 
>event i want to run a function declared in vbscript. that when i click 
>then response .write will execuet but when ever i write in browser it 
>always execute before clicking at button. is it possible to do what i 
>want that on click a function  who is running at server will be 
>execute??????????? 
>  
>  
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
>--- 
MSN 8 with e-mail virus protection service:  2 months FREE*
Message #4 by Teng-Fong SEAK <tfseak@F...> on Thu, 21 Nov 2002 15:27:17 +0100
You need a real server-client application than an HTML "application".

> -----Message d'origine-----
> De : Rabia Tabassum [mailto:rabi786t@h...]
> Envoy=C3=A9 : jeudi 21 novembre 2002 08:56
> =C3=80 : asp_discuss
> Objet : [asp_discuss] Re: is it possible?
>
>
>
> hi
> infact i want to that when i click add button the record
> should insert and at the same page when i click delete it
> will delete record. one way is that i should make each button
> as submit type and at action in form tag i should give path
> of asp page for add and for delet i should give path of
> another asp page. but i want to handle different buttons with
> one asp page. when i click on add button only inserton record
> should execute and on clicking delete button only delete part
> should execute. becaz the way i m doing it'll be too heavy to
> use=C2=A0as much asp as button. so if i have three buttons and i
> want to execute different codes on clicking event those code
> which runs on server side then i have to make three asp pages.
> is there any solution????
> rabia
>

  Return to Index