Hello
I need to get a label’s text value to use in an <a> tag’s link.
I tried to use it like <a href="Page.aspx?l=<%=Label.Text%>" runat="server"> and similar usages I know and it didn’t help.
Any ways to make that work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your issue is you’re making the anchor control a server side control, which is making it not allow the markup inside it.
Should work, but please rethink your design.