How can I get the value in server side of selected
Loading
How can I get the value in server side of selected
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Geni LouPosted Feb 28, 2023, 11:36 AM
Thanks Naimish Makwana
I wil apply this :-)
Naimish MakwanaPosted Feb 28, 2023, 11:32 AM
Hello Geni,
Try below:
In this example,
languageis the ID of the dropdown list control on your webform. TheSelectedIndexChangedevent is wired up to this control using theOnSelectedIndexChangedattribute in the HTML markup, like this:Thanks
Naimish Makwana
Geni LouPosted Feb 28, 2023, 11:25 AM
Hi Naimish Makwana,
I want the result in .NET Webforms..
will this work on webform? because I will not use the
Naimish MakwanaPosted Feb 28, 2023, 10:32 AM
If you want in Webform use below code:
Note that the
SelectedIndexChangedevent handler will only be called if theAutoPostBackproperty of theDropDownListis set totrue.Thanks
Naimish Makwana
Naimish MakwanaPosted Feb 28, 2023, 10:27 AM
Hello Geni,
In which you want the result? .NET webform, MVC or Windows Form?
Thanks
Naimish