PC Review


Reply
Thread Tools Rate Thread

Access VB.Net Controls from Javascript

 
 
fripper
Guest
Posts: n/a
 
      31st Mar 2004

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.




 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      31st Mar 2004
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


 
Reply With Quote
 
Bill McCarthy
Guest
Posts: n/a
 
      31st Mar 2004
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.


"fripper" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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.
>
>
>
>



 
Reply With Quote
 
fripper
Guest
Posts: n/a
 
      31st Mar 2004
Yes ... this is a web form application.


"Cor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using javascript to access asp.net controls Andy B. Microsoft ASP .NET 3 16th Jul 2009 08:26 PM
as controls and javascript Vince Microsoft ASP .NET 1 18th Sep 2007 08:36 AM
Getting Controls in JavaScript tshad Microsoft ASP .NET 3 19th Jul 2007 01:10 PM
Using FindControl() to access controls created by javascript Lau Lei Cheong Microsoft ASP .NET 7 15th Dec 2004 02:55 AM
access web controls in a User control via Javascript george d lake Microsoft ASP .NET 1 19th Feb 2004 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:42 PM.