473,664 Members | 3,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:HyperLin k id="Print" runat="server" NavigateURL='<% #
"PrintResumeDet ail.aspx?Resume ID=" + Request.Params. Get("ResumeID") %>'
CssClass="btn"> Print</asp:HyperLink>

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

Thank you in advance.
Michael

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

"AtlasApoll o" <At*********@di scussions.micro soft.com> wrote in message
news:28******** *************** ***********@mic rosoft.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:HyperLin k id="Print" runat="server" NavigateURL='<% #
"PrintResumeDet ail.aspx?Resume ID=" + Request.Params. Get("ResumeID") %>'
CssClass="btn"> Print</asp:HyperLink>

Browser generated source:
<a id="Print" class="btn">Pri nt</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?p roductID=" & DataBinder.Eval (Container,
"DataItem.Produ ctID") & "" %>'
replace the DataBinder.Eva with your Request.Params.
Patrick

"AtlasApoll o" <At*********@di scussions.micro soft.com> wrote in message
news:28******** *************** ***********@mic rosoft.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:HyperLin k id="Print" runat="server" NavigateURL='<% #
"PrintResumeDet ail.aspx?Resume ID=" + Request.Params. Get("ResumeID") %>'
CssClass="btn"> Print</asp:HyperLink>

Browser generated source:
<a id="Print" class="btn">Pri nt</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
3036
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 change the setting in web.config everything seems to work fine as long as I'm using relative paths. The problem is I've got a menuing system that's generated from a site-wide template - so I use a fixed path from the application root - (ie:...
0
550
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 images as the ImageURL of the Hyperlink. When a load the page with the controls on it works fine, but sometimes the images are broken, but if i hit refresh i get random selections of the gifs appearing and not appearing. if i hit Back button to a page...
4
1676
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 child controls no problems 2. default.aspx - i dont find any controls that are placed directly on the
2
1840
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 with a Control HyperLink. I would like to fix many properties of this Control Hyperlink in the Code
8
3789
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 System.Web.UI.WebControls.Image Control or a HyperLink and Image Controls, but the onMouseOver and onMouseOut attributes must be in the <img> tag. If I were to use the HyperLink's ImageUrl property and add the attributes using the...
3
2848
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 example, if the user control is located in an include folder, here is what I will get: <a href="include/home.aspx"> instead of <a href="home.aspx">
1
1359
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 hyperlinks. The second datagrid is for inserting data, and when a user inserts data I used 'Windows Authentication' for names in one column called Name. Now this is how it's supposed to work: When any user want to see data about a particular...
4
1583
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. Below is the CSS: #topMenu { position: relative; right: 2px; top: 47px;
4
307
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"> <ItemTemplate> <li> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Url") %>'><%# Eval("Title") %></ asp:HyperLink>
0
8437
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8861
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7375
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2764
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1759
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.