
April 19th, 2000, 11:29 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
<i><b>Originally posted by : C R Balaji (crbalaji@hotmail.com)</b></i><br />Hi Nilesh,<br /><br />U cannot do what u are trying to do because the <br />function which is running at the server will not be available at the client, to attain something like this u have to keep a form and submit it to an asp then run the function from there, and u cannot have user interface elements like msgbox or alert or input box in the (SCS)server side scripting !because SCS run in the server and the client is not on the server to answer an alert or so<br /><br />Bye<br /><br /><br /><br />------------<br />NILESH SHAH at 4/13/2000 11:18:49 AM<br /><br />On my ASP I have a Button Object. When I click the button i call cmdSave_OnClick procedure, which in turn calls function testing which is intended to be ran on Server.<br /><br />The Code is included below.<br /><br />It gives me Error:Type Mismatch:'testing'<br /><br />Can Somebody please help me <br /><br />Thanks <br /><br /><script language="VBScript" runat = "Server"><br />function testing(x)<br /> alert(x)<br />end function<br /><br /></script><br /><br /><br /><script language="VBScript"><br /><br />sub cmdSave_onClick()<br /> Dim x<br /> x = 1<br /> call testing(x)<br />end sub<br /></script><br />
|