₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,347,103 members, 8,526,660 topics. Date: Sunday, 29 November 2026 at 04:50 AM

Toggle theme

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

Nairaland Forum › Science/Technology › Programming › Pls Help Vb: How Bind Data In Href Link (2059 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.net • Nigeria Stock Market Data In Any Format (wsdl, Rss Feed, Csv ) Etc • Post Ur Vb 6.0 Questions Here • 2 • 3 • 4

Angular 2 Tutorial • Who Will Teach Me C And C++ Programming Language From The Scratch ? • Why Does My Solution Keep Failing The Second Test? (C++)