₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,172 members, 8,439,178 topics. Date: Saturday, 04 July 2026 at 05:34 PM

Toggle theme

Pls Help Vb: How Bind Data In Href Link - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingPls Help Vb: How Bind Data In Href Link (2048 Views)

1 Reply (Go Down)

Pls Help Vb: How Bind Data In Href Link by Dolemite(op): 9:55pm On Jan 08, 2012
This piece of code doesn't work I can't seem to figure it out. Im trying to make it join the artist name from the database into the link.

[ <a href='Profile.aspx?Artistname=<%#Eval("Artistname"wink%>'>View Profile</a> ]
Re: Pls Help Vb: How Bind Data In Href Link by Kobojunkie: 8:56am On Jan 09, 2012
Is your anchor within some parent control that itself is Bound to date?  Also set the runat property of the anchor to "server". i.e

<a href="Profile.aspx?Artistname=<%#Eval("Artistname"wink%>"  runat="server" >View Profile</a>

This is needed since databinding takes place on the server and not on the client. Try this and check if any errors.
Re: Pls Help Vb: How Bind Data In Href Link by Dolemite(op): 3:06pm On Jan 09, 2012
Thanks but im getting the following error
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:

Line 34: Whazzap <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
Line 35: [ <a href="editProfile.aspx" ID="A1" runat="server">Edit Profile</a> ]
Line 36: [ <a href="Profile.aspx?Artistname=<%#Eval("Artistname"wink%>" runat="server">View Profile</a> ]
Line 37: [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ]
Line 38:
Re: Pls Help Vb: How Bind Data In Href Link by csharpjava(m): 7:16pm On Jan 09, 2012
Try this:
[ <a href=Profile.aspx?Artistname=<%=Eval("Artistname"wink%>>View Profile</a> ]
1 Reply

How To Send SMS Using Asp.net/vb.netNigeria Stock Market Data In Any Format (wsdl, Rss Feed, Csv ) EtcPost Ur Vb 6.0 Questions Here234

Python Masters, Kindly Help Me Rectify This Python Problem.Best Free Video EditorPlease, Help This Phone Number Keeps Calling My Line