I inherited an asp.net web page that has a gridview control and an html button on each row in the gridview. I added "onserverclick" so that I could do some stuff at the server when this button is clicked. I can't use the asp button control because the manager wants it this way.
The end result is that I want to set the selected value of a dropdownlist control with a value from the gridview row. I got this working.
Now the problem. I am using an ajax ModalPopupExtender to display a panel as a popup window. But since I added the onservercontrol event, the popup now never displays. If I take off the onserverclick then the popup displays again but then I can't set my dropdownlist aelected value correctly.
I read something about having to do an ajax post. But not sure how to do that. I can post my html and C# code. Let me know what you need to see.