473,779 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<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 1852
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><F ONT face='Times New Roman'>Name</th><th
align='center' width=6%><b><FO NT face='Times New Roman'>Size</th>
7 <th align='center' width=23%><b><F ONT face='Times New
Roman'>Last Modified</th>
8 <th align='center' width=23%><b><F ONT face='Times New
Roman'>Date Created</th>
9 </tr>
10 <tr bgcolor='#FFFFF F'>
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='#FFFFF F'>
14 <td><a
href='ShowFiles .aspx?Path=http ://intranet/Documents/HR/Employee Handbook'
Employee Handbook</a></td> 15 </tr>
16 <tr bgcolor='#FFFFF F'>
17 <td><a
href='ShowFiles .aspx?Path=http ://intranet/Documents/HR/Holiday Schedules'Holiday Schedules</a></td>

18 </tr>
19 <tr bgcolor='#FFFFF F'>
20 <td><a
href='ShowFiles .aspx?Path=http ://intranet/Documents/HR/HR Forms' >HR
Forms</a></td>
21 </tr>
22 <tr bgcolor='#FFFFF F'>
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.Htm lEncode 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
2602
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 ... What a horrible can of worms regex is!! (to the uninitiated at least). I realise that if I spend the next few weeks researching regex I'll probably find the answer but I was wondering if anyone here would kindly help speed up the process?
2
5769
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 javascript, but mostly CSS class & id elements. Mozilla & Netscape work fine handling the toolbar submenus & contents, but IE6 misbehaves on several areas. On loading the page, the target div (id='content') will not display. When a menu item is...
16
4453
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 href="lemurs.html">Lemurs</a></li> <li><a href="chameleons.html">Chameleons</a></li> </ul> <ul>
13
7449
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" runat="server"></asp:imagebutton></A> When the user sees these buttons, they will currently be on the savings.aspx?category=whatever page, and when they click another button to look at other categories, all the links I have around these buttons direct to their various categories.
1
1888
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> </body> ===
1
4759
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. But can I do so since the control would not be withing a <form> tag in the aspx page? Can I do like so?:
6
7866
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
3560
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 some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
17
30607
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 href attribute for <imgtag? Whether at any time this came up at W3C?
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9930
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
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
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...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
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.