473,326 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Problem with Hyperlink control

Hi Folks,

Can someone please share insight into why this problem is occuring? I've
placed a Hyperlink control onto a webform, and when it compiles and runs,
there is no HREF generated, and the link is in effect unusable.

ASP.Net source:
<asp:HyperLink id="Print" runat="server" NavigateURL='<%#
"PrintResumeDetail.aspx?ResumeID=" + Request.Params.Get("ResumeID") %>'
CssClass="btn">Print</asp:HyperLink>

Browser generated source:
<a id="Print" class="btn">Print</a>

Thank you in advance.
Michael

Nov 19 '05 #1
2 1480
Pat
Try
NavigateUrl='<%#"sample.aspx?productID=" & DataBinder.Eval(Container,
"DataItem.ProductID") & "" %>'
replace the DataBinder.Eva with your Request.Params.
Patrick

"AtlasApollo" <At*********@discussions.microsoft.com> wrote in message
news:28**********************************@microsof t.com...
Hi Folks,

Can someone please share insight into why this problem is occuring? I've
placed a Hyperlink control onto a webform, and when it compiles and runs,
there is no HREF generated, and the link is in effect unusable.

ASP.Net source:
<asp:HyperLink id="Print" runat="server" NavigateURL='<%#
"PrintResumeDetail.aspx?ResumeID=" + Request.Params.Get("ResumeID") %>'
CssClass="btn">Print</asp:HyperLink>

Browser generated source:
<a id="Print" class="btn">Print</a>

Thank you in advance.
Michael

Nov 19 '05 #2
Hi Pat,

Thank you for responding. I tried the suggestion, and it is also not working.

What is especially strange is that the format of the Hyperlink control is
also being used in other pages, and they are working well.

Any other suggestions are much appreciated.

Thanks
Michael
"Pat" wrote:
Try
NavigateUrl='<%#"sample.aspx?productID=" & DataBinder.Eval(Container,
"DataItem.ProductID") & "" %>'
replace the DataBinder.Eva with your Request.Params.
Patrick

"AtlasApollo" <At*********@discussions.microsoft.com> wrote in message
news:28**********************************@microsof t.com...
Hi Folks,

Can someone please share insight into why this problem is occuring? I've
placed a Hyperlink control onto a webform, and when it compiles and runs,
there is no HREF generated, and the link is in effect unusable.

ASP.Net source:
<asp:HyperLink id="Print" runat="server" NavigateURL='<%#
"PrintResumeDetail.aspx?ResumeID=" + Request.Params.Get("ResumeID") %>'
CssClass="btn">Print</asp:HyperLink>

Browser generated source:
<a id="Print" class="btn">Print</a>

Thank you in advance.
Michael


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: | last post by:
Hi, I'm trying to use the cookie munging session handling behaviour of asp.net instead of cookies themselves as I'm finding quite a few people are barring cookies (especially AOL users). If I...
0
by: Ryan Harvey | last post by:
Hi all, I have written a web user control that contains a repeater control. the ItemTemplate for this control is basically 6 Hyperlinks in a row, that are dynamically allocated one of 7 gif...
4
by: Milsnips | last post by:
hi there, i have a strange problem. I want to programatically loop through each control on a page, but am having issues. my test example: 1. header.ascx - the ascx control finds all the...
2
by: Fabrice | last post by:
Hello, First, thanks to felix for his answer. But :-( , I'm feeling newbie :! I' don't understand all the situation. The trouble : Always in the road whith my Datagrid and my ItemTemplate...
8
by: Nathan Sokalski | last post by:
I have several System.Web.UI.WebControls.HyperLink Controls which I want to display as rollover images. I know how to make these manually using the <a> and <img> tags or the <a> tag and a...
3
by: remy.bur | last post by:
Hi, When adding an anchor (which is runat="server") in a user control, the link generated will be based on the user control location and not on the page which is using the control location. For...
1
by: rcoco | last post by:
Hi all, I have this big problem with hyperlinks I would appriciate any help please. My web site has two datagrids on the same page. And one has a list of names of the users which are in form of...
4
by: malmus | last post by:
I have a menu problem. This menu is a llayer where it contain 5 hyperlink controls and between each hyperlink there is an image control. Unfortunately it works perfect in IE but not in Firefox. ...
4
by: Ahmd | last post by:
I have a Repeater to which a sitemap is bound, i want to remove or hide any node while form load <asp:Repeater runat="server" ID="menu" DataSourceID="SiteMapDataSource1" EnableViewState="False">...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.