Add a linkbutton (hyperlink) to Text attribute of a Control in ASP.net -


i working on asp.net page , there way add linkbutton text attriubte of control, checkbox. this,

<asp:checkbox id="chkaccept" forecolor="red" text="check box if  can see <linkbutton onclick-"dosomething()> popup</linkbutton></asp:checkbox> 

here, user see text in checkbox but, "this popup" linkbutton open popup.

thanks in advance.

you can't have control inside attribute of control. take text out of control , have appear separate markup after control. can whatever want.

<asp:checkbox id="chkaccept" forecolor="red" /> <span>check box if  can see <asp:linkbutton onclientclick="dosomething()" text="this popup" />.</span> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -