Mar 7, 2007 #1 BlueBlade Technical User Joined Mar 2, 2007 Messages 15 Location US Hi, I am trying to change the contents of a label control using a hyperlink. The hyperlink and the label controls are on different UserControls. Please help, Thanks.
Hi, I am trying to change the contents of a label control using a hyperlink. The hyperlink and the label controls are on different UserControls. Please help, Thanks.
Mar 7, 2007 #2 ca8msm Programmer Joined May 9, 2002 Messages 11,327 Location GB Create a Public Property on the user control and set it that way. ____________________________________________________________ Mark, [URL unfurl="true"]http://aspnetlibrary.com[/url] Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results. Upvote 0 Downvote
Create a Public Property on the user control and set it that way. ____________________________________________________________ Mark, [URL unfurl="true"]http://aspnetlibrary.com[/url] Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
Mar 8, 2007 Thread starter #3 BlueBlade Technical User Joined Mar 2, 2007 Messages 15 Location US Thanks the public property does allow me to get to the control. Upvote 0 Downvote
Mar 12, 2007 #4 blar9 Programmer Joined Mar 12, 2007 Messages 39 Location US Is it just a regular html hyperlink? If so you set it to runat=server and onclick='<%# FunctionSetLabelText() %>'>CLICK HERE</a> could try a linkbutton control Upvote 0 Downvote
Is it just a regular html hyperlink? If so you set it to runat=server and onclick='<%# FunctionSetLabelText() %>'>CLICK HERE</a> could try a linkbutton control