Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
SelectCommand and LinkButton Click Event
posted

I have a WebGrid that I am binding to a SqlDataSource. After the initial load of the data I can click on a LinkButton that I have in a template column which will postback and go into my Click hanlder for that LinkButton just fine.  However if I intiate a change of the SelectCommand for some custom searching I have in the form, the Click event is no longer fired on the server.  It will postback the form, but never go into my Click event handler. 

Does the changing of the SelectCommand wipe out the event handlers of the template columns?  If so how do I set them back to my handler?

 

Thanks in advance.