473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Exchanging data between Jscript and Vb .net app

I must do some basic communication between a webpage (that could be php or asp if necessary) with javascript output to my visual basic application and vice-versa.
Anyone knows if this is possible at all?

thnks in advance,
Thiago.
May 10 '07 #1
3 1233
Paulson
63
I must do some basic communication between a webpage (that could be php or asp if necessary) with javascript output to my visual basic application and vice-versa.
Anyone knows if this is possible at all?

thnks in advance,
Thiago.
This is how u call a javascript from an aspx page(I am using vb.net think that it is also possible with c#)

To call a javacript in a Asp.net page(eg:default.aspx)

1. Add the javascript as an attribute of the control u want to add it
(ie if u want the javascript to work on a button click add it as an attribute
of button)

2. Specify the event on which it should happen and jscript function name.


Sample:It is done as follows
__________________________________________________ ________________

btnSubmit.Attributes.Add("onclick", "DoTotal();")
__________________________________________________ ________________

Here what i did is i added the javascript ----->DoTotal()<-----
on the event button click ------>onclick<-----
of the button named btnSubmit ------>btnSubmit<-----

Note: This is only valid for server side controls.
Note:the coma(,) , Semicolon(,) in calling jscript are important


make some javascripts and and call from aspx page using this do some trials and see if there is any progress.If you specify a situation I can also try to see if it works as u say.

I am not an expert but still try this please It may help.

God bless u regards bye Paulson
May 10 '07 #2
I think you miss understood me, maybe I didnt explain the situation well.

I have a Vb.net app (an executable), client-side, that needs to find out a selection a user made in a webpage (jscript return).

My app is actually like a browser which will open that page, and it needs to get information back from that site to itself.

Like this:

Vb app (Browser) >opens webpage with jscript > jscript returns value to Vb app

Im sorry if I didnt make myself clear before.

thanks for your attention,
Thiago.
May 10 '07 #3
Maybe I should use cookies or sessions?
any ideas??

I know jscript and asp/php can both manipulate cookes/sessions, so it must work right?
May 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
4
by: Harag | last post by:
Hi All I currently thinking of converting from my little knowledge of VBscript to jScript ASP. With this in mind I'm looking at my current code to see how it will convert over to Jscript. ...
14
by: John Bentley | last post by:
Note this is crossposted to comp.lang.javacript and microsoft.public.dotnet.scripting. After some Googling and FAQing my understanding of these terms is, crudely: Javascript (3 different...
8
by: dthom | last post by:
Hi, I have a C# service application - and a Win32 / C++ service application running on my system. I need someway to interact between those two - the Win32 application is pure Win32 - so im...
0
by: Rafael Veronezi | last post by:
I would know if ASP.Net prevent a way for calling Pop-up Windows directly, beside using javascript... And I would know if there's a way to exchange values between those windows. Look at my...
0
by: Brian Takita | last post by:
Hello, I'm getting the following error at the end of this message when trying to run the ReportManager and the ReportServer: Assembly system.data.dll security permission grant set is...
5
by: Maxwell2006 | last post by:
Hi, I have a requirement to develop an application component using only Server-Side Jscript (not Jscript.NET). What is Server-Side Jscript?
3
by: Alwin | last post by:
Hey All! I am currently designing a database model for (at first sight) a simple order entry program. The problem I'm currently facing is the exchange of data between the databases of each branch...
4
by: | last post by:
Hi all, I have an interesting situation. I have a compiled Jscript.net dll. I am referencing this in a Vb.net project. Now the jscript dll has a property that is of decimal type. In the VB...
1
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.