Javascript to populate controls without postback

  • Thread starter Thread starter MattB
  • Start date Start date
M

MattB

I've got a web form (asp.net 1.1, vb.net) that has controls for a user
to enter their height and weight in either English or Metric units. I'd
like to be able to populate the metric control when the English changes
as well as the converse.
I have used javascript previously to do little things like blank out a
password field when it's clicked on or raise an alert when a button is
clicked by using Control.Attributes.Add().
Now I'd like to have one control's event populate another control and
I'm not sure how to do that.

Anyone got any suggestions or better yet, examples of this kind of stuff
I can look at?

Thanks!

Matt
 
asp.net 1.1 controls don't have builtin support for client script. you have
to look at the html rendered and then determine how to hook events or change
values. this is improved in version 2.0

if you don't know the browser dom, you should buy a book.

-- bruce (sqlwork.com)
 

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

Back
Top