Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,136 members, 7,814,976 topics. Date: Thursday, 02 May 2024 at 03:26 AM

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 (1976 Views)

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)

(1) (Reply) (Go Down)

Pls Help Vb: How Bind Data In Href Link by Dolemite(f): 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(f): 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)

Do Not Reinvent The Wheel Unless You Plan On Learning More About Wheels / ERROR finding a girlfriend! / Learn How To Program Without Going To School

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.