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
******************
Select Mentor
Select Student
Thanks
Jignesh KumarPosted Apr 6, 2023, 4:13 AM
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
Ramco RamcoPosted Apr 6, 2023, 2:40 AM
Hi Rajkiran
On Basis of selection of Mentor , Student List gets generated. Student List is dependent on Mentor selection
Thanks
Rajkiran SwainPosted Apr 5, 2023, 5:59 PM
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!