Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,412 members, 7,954,649 topics. Date: Saturday, 21 September 2024 at 04:48 AM |
Nairaland Forum / Science/Technology / Programming / Pls Help Vb: How Bind Data In Href Link (1990 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)
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"%>'>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"%>" 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"%>" 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"%>>View Profile</a> ] |
(1) (Reply)
How To Start A Mobile App Development Business With Little Investment / Web Design Training Classes: 100% Practical Training / I Want To Learn Programming On My Own, Where Do I Start?
(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. 11 |