You can use .val() method of jQuery just like the snippet code I wrote above.
Helping you always. Don't forget to click "Mark as Answer" on the post that helped you.
♠ ASP.NET Core Tutorials → Start from the Beginning and become an Expert in 30 days time ♠
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
191 Points
461 Posts
How To Check Listbox 1 in If Condition
Aug 01, 2019 08:22 AM|Gopi.MCA|LINK
Hello
I used this code in my aspx page
It look on page load like this
how to check select here in if condition
Thanks
Participant
1060 Points
732 Posts
Re: How To Check Listbox 1 in If Condition
Aug 01, 2019 09:27 AM|yogyogi|LINK
You can use .val() method of jQuery just like the snippet code I wrote above.
♠ ASP.NET Core Tutorials → Start from the Beginning and become an Expert in 30 days time ♠
Member
191 Points
461 Posts
Re: How To Check Listbox 1 in If Condition
Aug 01, 2019 09:35 AM|Gopi.MCA|LINK
Hi..
In c# code behind
how to check
Member
191 Points
461 Posts
Re: How To Check Listbox 1 in If Condition
Aug 05, 2019 04:30 AM|Gopi.MCA|LINK
In c# how to check sumoselect list box
Thank you
Participant
1860 Points
707 Posts
Re: How To Check Listbox 1 in If Condition
Aug 05, 2019 08:25 AM|samwu|LINK
Hi Gopi.MCA,
According to your requirements, here is a demo for your reference.
You can check the select here in the if condition in OnSelectedIndexChanged event of ListBox.
The code:
The result:
Best regards,
Sam
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.