Access VB.Net Controls from Javascript

F

fripper

I have a VB .Net application for which I would like to write a JavaScript
program to handle a countdown counter. My question is can I access the text
property of a textbox that I created in design mode with VB .Net from the
JavaScript program? This is to say I want the JavaScript program to pick up
the value in the textbox reduce it by one and put the new value back into
the text box.

Thanks.
 
C

Cor

Hi Fripper,
I have a VB .Net application for which I would like to write a JavaScript
program to handle a countdown counter. My question is can I access the text
property of a textbox that I created in design mode with VB .Net from the
JavaScript program? This is to say I want the JavaScript program to pick up
the value in the textbox reduce it by one and put the new value back into
the text box.

Are you talking about a Webform application, by default we expect here it
is windowforms when that is not written. But I am very in doubt with your
message?

Cor
 
B

Bill McCarthy

hi fripper,

You can refer to the textbox by it's ID, as it is rendered as a html control.
For IE, you can just refer to the element directly, but for netscape etc, you
have to go through the Document.All collection , eg Document.All['foo']


Bill.
 
F

fripper

Yes ... this is a web form application.


Cor said:
Hi Fripper,
pick

Are you talking about a Webform application, by default we expect here it
is windowforms when that is not written. But I am very in doubt with your
message?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top