HighTechTalks DotNet Forums  

Passing parameters from VB.Net to JScript function-reg

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Passing parameters from VB.Net to JScript function-reg in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Thirumalai
 
Posts: n/a

Default Passing parameters from VB.Net to JScript function-reg - 08-04-2006 , 07:32 AM






Hai all,

I am developing a Vb.net application which uses the VSA scripting engine.The
scripting language is Jscript.

At a point I got struck.

In VB.net application I am having a form with 2 input textboxes and 1
command button.Say for example, I will enter 5 in textbox number 1 and 10 in
textbox number 2 and then when I click over the command button, my vb.net
function should pass 5 and 10 as arguments to the Jscript(scripting
language) function.

How can I do this.I mean how can I pass parameters from vb.net to jscript or
vbscript function?

Anyone please help me.

Thanks and Regards,
Thirumalai.





Reply With Quote
  #2  
Old   
Scott M.
 
Posts: n/a

Default Re: Passing parameters from VB.Net to JScript function-reg - 08-16-2006 , 06:01 PM






Is this an ASP.NET web application?

If so, in your VB.NET code add the following:

response.write("<INPUT TYPE='Hidden' ID='value1' VALUE='" & textbox1.text &
"'>")
response.write("<INPUT TYPE='Hidden' ID='value2' VALUE='" & textbox2.text &
"'>")

Then in your client-side code, you can add the JScript to retrieve the data
by the ID's of the hidden form fields.



"Thirumalai" <thirumalai (AT) cspl (DOT) com> wrote

Quote:
Hai all,

I am developing a Vb.net application which uses the VSA scripting
engine.The scripting language is Jscript.

At a point I got struck.

In VB.net application I am having a form with 2 input textboxes and 1
command button.Say for example, I will enter 5 in textbox number 1 and 10
in textbox number 2 and then when I click over the command button, my
vb.net function should pass 5 and 10 as arguments to the Jscript(scripting
language) function.

How can I do this.I mean how can I pass parameters from vb.net to jscript
or vbscript function?

Anyone please help me.

Thanks and Regards,
Thirumalai.







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.