Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - onchange of a dropdown

 
Thread Tools Search this Thread
Old 12-30-2004, 07:36 PM   #1
Default onchange of a dropdown


I need to capture a selected value of the onchange dropdown and put it in a
textbox???

--


Dave




DaveF
  Reply With Quote
Old 12-30-2004, 08:19 PM   #2
John Saunders
 
Posts: n/a
Default Re: onchange of a dropdown
"DaveF" <> wrote in message
news:...
>I need to capture a selected value of the onchange dropdown and put it in a
> textbox???


What problem are you experiencing when you try to do this?

John Saunders




John Saunders
  Reply With Quote
Old 12-30-2004, 09:37 PM   #3
DaveF
 
Posts: n/a
Default Re: onchange of a dropdown
I just don't know how to do this clietside

--


David Fetrow
Helixpoint LLC.
http://www.helixpoint.com

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:...
> "DaveF" <> wrote in message
> news:...
> >I need to capture a selected value of the onchange dropdown and put it in

a
> > textbox???

>
> What problem are you experiencing when you try to do this?
>
> John Saunders
>
>





DaveF
  Reply With Quote
Old 12-30-2004, 11:39 PM   #4
John Saunders
 
Posts: n/a
Default Re: onchange of a dropdown
"DaveF" <> wrote in message
news:e%...
>I just don't know how to do this clietside


Ok, you didn't say you had to do it client side!

I'm not a JavaScript wizard, but I suppose that you have to get an
"onchange" event on the dropdown. That event should do something like
"textbox.value = dropdown.value;".

You can add a client-side event to a server-side control via:

dropdown.Attributes("onchange") = "textbox.value = dropdown.value;"

John Saunders

> David Fetrow
> Helixpoint LLC.
> http://www.helixpoint.com
>
> "John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
> news:...
>> "DaveF" <> wrote in message
>> news:...
>> >I need to capture a selected value of the onchange dropdown and put it
>> >in

> a
>> > textbox???

>>
>> What problem are you experiencing when you try to do this?
>>
>> John Saunders
>>
>>

>
>





John Saunders
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add dropdown and text box values to list ranjani The Lounge 0 06-10-2008 08:38 AM
Getting error in Custom control ShakilaRahmanLaboni Software 2 08-01-2007 02:38 PM
Updating a database with value from a dropdown ropio Software 3 07-19-2006 07:12 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46