Re-assign the Control ID after Postback / Error
BackGround
I have GridView with SqlDataSource to populate it. While I have Custom Search Control on my WebPage. When ever i click the srch btn to populate the grid its OK but when i put any srch data in any ctrl (e.g City = 'KHI' in city textbox) and then click the srch btn i suffered for the following msg
ERROR Message
================================================== ==================
An error has occurred because a control with id 'grdComplaints$ctl04$ctl00' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
================================================== ==================
If any one has been faced and resolved such error then plz help me.
Thanks for your time.
|