Manu, - javascript .
All you have to do is reset LinkButton to the page and set it as TargetControlID
<cc1:ModalPopupExtender ID="ModalPopupExtender1" BehaviorID ="Modal"
runat="server" TargetControlID="lbOpenModal"
BackgroundCssClass="modalBackground"
PopupControlID="Panel1"></cc1:ModalPopupExtender>
<asp:LinkButton id="lbOpenModal" runat="server" Text="Click me"></asp:LinkButton>
Then, when you click the link, the modal function will open.
source
share