473,378 Members | 1,146 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,378 software developers and data experts.

<A href= links dont always render properly on my .aspx pages

Hello All,

I have a a file display page that contains two frames. In the left
frame is a tree view that lists a directory and all its subfolders. Each
node in the left frames tree is a link that when clicked displays links to
all the files in the right frame for the folder clicked. The problem I
have is that some of the links don't work and some do. It seems like the <A
href only renders when it wants to. Has anyone seen this before? Thanks
in advance!
Nov 18 '05 #1
4 1832
In article <O8**************@TK2MSFTNGP09.phx.gbl>, ra********@aol.com
says...
Hello All,

I have a a file display page that contains two frames. In the left
frame is a tree view that lists a directory and all its subfolders. Each
node in the left frames tree is a link that when clicked displays links to
all the files in the right frame for the folder clicked. The problem I
have is that some of the links don't work and some do. It seems like the <A
href only renders when it wants to. Has anyone seen this before? Thanks
in advance!


Perhaps the <A> tags are being constructed properly. Can you show us a
sample of the rendered HTML?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 18 '05 #2
Patrick,

Thanks for your response!
Here is the HTML output:

1 <Table bgColor=000066 width=100%>
2 <tr>
3 <td>
4 <table bgColor=FFFFFF align=left width=100% cellpadding=1
cellspacing=1>
5 <tr>
6 <th width=50%><b><FONT face='Times New Roman'>Name</th><th
align='center' width=6%><b><FONT face='Times New Roman'>Size</th>
7 <th align='center' width=23%><b><FONT face='Times New
Roman'>Last Modified</th>
8 <th align='center' width=23%><b><FONT face='Times New
Roman'>Date Created</th>
9 </tr>
10 <tr bgcolor='#FFFFFF'>
11 <td><a
href='ShowFiles.aspx?Path=http://intranet/Documents/HR/Benefit SPDs and
Documents' >Benefit SPDs and Documents</a></td>
12 </tr>
13 <tr bgcolor='#FFFFFF'>
14 <td><a
href='ShowFiles.aspx?Path=http://intranet/Documents/HR/Employee Handbook'
Employee Handbook</a></td> 15 </tr>
16 <tr bgcolor='#FFFFFF'>
17 <td><a
href='ShowFiles.aspx?Path=http://intranet/Documents/HR/Holiday Schedules'Holiday Schedules</a></td>

18 </tr>
19 <tr bgcolor='#FFFFFF'>
20 <td><a
href='ShowFiles.aspx?Path=http://intranet/Documents/HR/HR Forms' >HR
Forms</a></td>
21 </tr>
22 <tr bgcolor='#FFFFFF'>
23 <td><a
href='ShowFiles.aspx?Path=http://intranet/Documents/HR/Mgrs Policy and
Procedure</a></td>
24 </tr>
25 </table>
26 </td>
27 </tr>
28 </table>
The links on lines 11, 14, and 17 didn't work( in this case), but the links
on lines 20 and 23 work fine. I am using the response.write method within
a function called by the page_load subroutine.

The links that dont work look like links (ie undelined) but can't be clicked
on.
Nov 18 '05 #3
In article <eh**************@TK2MSFTNGP09.phx.gbl>, ra********@aol.com
says...
11 <td><a
href='ShowFiles.aspx?Path=http://intranet/Documents/HR/Benefit SPDs and
Documents' >Benefit SPDs and Documents</a></td>


The 'Path' parameter is not properly HTML encoded (it contains spaces
and slashes). You need to use HttpUtility.HtmlEncode to make sure the
parameter data is properly formatted to HTML.

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 18 '05 #4
Patrick,

Well if I don't know how to properly format a <A> by now I'm in trouble.
Its funny because all the links are response.write to the page. This
behaviour only occurs if I try to fill both frames with links at the same
time. The exact code works if I fill the left frame links and fill the
right frame based on a left frame click. But if I attempt to run both pages
at the same time it doesn't work. Only some of the <A> tags render
properly. Its almost as if the pages dont finish loading.
Nov 18 '05 #5

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

Similar topics

5
by: Sorby | last post by:
Hi I've been coding in PHP for a little while now and was starting to feel pretty confident but then realise I need to understand regular expressions to solve a particular problem I've got ......
2
by: Brian Idzik | last post by:
I've successfully setup a xhtml 1.0 strict page with Mozilla & Netscape to display links in a toolbar into an internal <div id='content'> within the same document. The toolbar uses some...
16
by: michael | last post by:
Is it possible to get all href URLs contained in a unordered list and place them in an array? Or in fact two different arrays, differently named one for each <ul> group? <ul> <li><a...
13
by: tperri | last post by:
I have an HTML table with several fields like this: <A href="Savings.aspx?category=Food"><asp:imagebutton id="imgFood" ImageUrl="images\buttons\btn-food-i.gif"...
1
by: Hongbo | last post by:
Hi, I have a mobile form: === <body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm"> <mobile:Form id=Form1 runat="server"> <mobile:label runat="server" id="lblT" /> </mobile:Form>...
1
by: Frank | last post by:
I would like to create a custom control that generates everything that will be in the <head> </head> section. This would allow me to make changes on all pages withing a site in one location. ...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
17
by: biju | last post by:
It is very common to see an image as a link on many web pages. Authors create them by putting an <imgtag inside a <atag. This is very much extra use of another tag. But why browsers dont support...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.