Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a .net radiobutton list with 2 options.

 

If the user clicks on rad1 then bindcombo1() method is called else bindmethod2() is called. This all works fine but the client has now asked that the process avoids the round trip meaning that I will have to perform this operation in javascript.

 

Javscript and .net I struggle with and was wondering if you could give me a hand.

 

Is it possible to populate a .net sropdown with javascript and if so how ?

 

Thanks in Advance

Posted
You can write to a Javascript array the values that are to be populated. Then onClick of the Radio button, loop thru the radio button list to determin which was checked, then populate the dropdwon based on the appropriate javascript array.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...