Hi
On Add Modal popup opens. In Modal Popup Student dropdown comes after selection of Mentor. It AutoPostBack as a result it goes back to previous page. It should remain on Modal Popup
Code
Add
******************
Select Mentor
Select StudentThanks

Jignesh KumarRank #91 · 22.9K reputationPosted Apr 6, 2023, 12:13 AM EDT
Hello Ramco,
try this one,
https://social.msdn.microsoft.com/Forums/en-US/adbd868c-66e1-4df3-b7fb-8c3ba6034bc4/bootstrap-modal-getting-close-when-select-option-in-aspnet-webform-dropdown?forum=aspwebforms
Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 5, 2023, 1:59 PM EDT
It seems like the issue is that the AutoPostBack property is set to true for the ddlMentor DropDownList. This causes a postback to occur when the selection is changed, which results in the modal popup being closed and the page being redirected to the previous page.
To resolve this issue, you can set the AutoPostBack property of the ddlMentor DropDownList to false. This will prevent the postback from occurring and allow the user to select a student from the ddlStudent DropDownList without the modal popup being closed.
Here's the updated code:
I hope this helps!
Ramco RamcoRank #462 · 5.4K reputationPosted Apr 5, 2023, 10:40 PM EDT
Hi Rajkiran
On Basis of selection of Mentor , Student List gets generated. Student List is dependent on Mentor selection
Thanks