Help on control binding ??

G

Guest

Dear all,

I have a label control on a form for which the .Text property is update from
a dataset field.
Then on the same page I have place an Hyperlink control fore which when
click, it jump to an url with the lable.Text property as parameter

For that I have done it as follow :

</asp:label><asp:label id="lblReelId" runat="server" </asp:label>
</asp:hyperlink id=HyperLink1 runat="server"
NavigateUrl="Event.aspx?ReelId=" &<%# lblReelId.Text%>>Details</asp:hyperlink>

But this donot work...
How can I pass to my url parameter the content of the lable.Text property ?

thanks for your help
regards
serge
 
B

Bruce Barker

when you use a binding expression "<%# %>", it must the only text in the
value.

</asp:hyperlink
id=HyperLink1
runat="server"
NavigateUrl=' said:
Details</asp:hyperlink>

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top