Article View: borland.public.csharpbuilder.language.csharp
Article #331Delphi\C#Syntax
From: Jeff
Date: Mon, 08 Aug 2005 15:00
Date: Mon, 08 Aug 2005 15:00
19 lines
1600 bytes
1600 bytes
I dynamically add the link and the link properties, to an HTML cell at
runtime. I have the code working in a Delphi asp.net site, but in C#
when I click on the link, nothing happens. Below is the code:
HyperLink aLink = new HyperLink();
aLink.CssClass = "directory";
aLink.ID = "HyperLink"+Convert.ToString(J);
aLink.Text = ds.Tables[0].Rows[J]["COMPANY"].ToString();
aLink.NavigateUrl = "javascript:;";
aLink.Attributes.Add("onclick",
"window.open('membercard.aspx?ID="+aID+", null, null, new, null, null" +
"'height=275, width=600, status= no,resizable= no, scrollbars=no,
toolbar=no, menubar=no');");
cell.Controls.Add(aLink);
What am I missing?
TIA
Technical Details
Message-ID:
<42f773a7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,1d294cd6020cf8e2,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 08 Aug 2005 10:00:50 -0500 From: Jeff <jbarr62307@worldnet.att.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Delphi\C#Syntax Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.242.241.231 Message-ID: <42f773a7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123513255 208.242.241.231 (8 Aug 2005 08:00:55 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail