How can i able to update the textbox value once the radio button selected index change and without post back method?
and tricks?
thanks for advance.
gahhon
13
Junior Poster
Recommended Answers
Jump to PostUse jquery if you do not want an postback.
$("#RadioButtonId").live("change", function() { $('#TextBoxId').val($("#RadioButtonId").val()); };
Jump to PostThere are several ways to handle this but javascript/jQuery is probably what you want to do as Singlem suggests...
here is an example that incorporates some asp.net controls to give you a better example especially if you are not familiar with javascript or the jQuery library. Something you may consider …
Jump to PostOk, so if you take the sample I posted above and just modify it according to the last sample you posted...I removed "onselectedindexchanged="radCategory_SelectedIndexChanged" since we are handling this client side, and also specified ClientIDMode on the textbox since we do not want asp.net to generate its own ID.
All 11 Replies
Singlem
0
Light Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
gahhon
13
Junior Poster
Singlem
0
Light Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
gahhon
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
gahhon
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
gahhon
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.