Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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

Try putting like this

<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
Belgrade, Serbia

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:51 PM.

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