Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 6th, 2007, 03:57 AM
Registered User
 
Join Date: May 2007
Location: Mukall, hadramout, Yemen.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with pass parameter in hyperLinke server

Please, I need to know how can I pass parameter in hyperLinke server control with value from the database
I do like this
<asp:hyperLink id=HL nevigateURl='~/myPage.aspx?id=<%#DataBinder.Eval(Container.dataIt em,"id")%>' runat=server>more</asp:hyperLink >
but the error is that ( The server control is not in correct format)
  #2 (permalink)  
Old May 6th, 2007, 05:03 PM
Authorized User
 
Join Date: Sep 2006
Location: Belgrade, Serbia, Yugoslavia.
Posts: 37
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to VerbatimBOT Send a message via Yahoo to VerbatimBOT
Default

Try putting like this

Code:
<asp:HyperLink ID="HL" NavigateUrl='~/myPage.aspx?id=<%# Eval("id")%>' Runat="server">more</asp:HyperLink>
You had a few spaces e.g. </asp:hyperLink > etc., also ID needs to be in double quotes ID="HL" etc.

e-ducan Global Store
Programmer/Application developer
http://www.e-ducan.com
Belgrade, Serbia


Similar Threads
Thread Thread Starter Forum Replies Last Post
pass parameter naeem_ul_hussan Classic ASP Basics 2 August 30th, 2007 11:18 AM
SQL Server StoredProcedure Parameter pass erictamlam C# 2005 3 March 27th, 2007 01:31 AM
How to pass parameter to sub-report . azeerum Access 1 January 3rd, 2005 04:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.