This line of code works in IE but not in Firefox or Netscape for some
reason.
Any ideas as to why would be appreciated,
It is the NavigateURL part. IE brings up the page, the other two
browsers it just does nothing.
Tom Olthoff
Line of code:
<asp:TemplateColumn HeaderText="Bus Stop #">
<HeaderStyle CssClass="gAlt2SubHeader"
VerticalAlign="Top"></HeaderStyle>
<ItemTemplate>
<asp:HyperLink runat="server" Text='<%#
DataBinder.Eval(Container.DataItem,"Stop_ID")%>' NavigateUrl='<%#
"javascript:document.PCC.PutSessionState(""urn:sch emas.coe.com:transit"",""BusStopNumber"","""
& cstr(DataBinder.Eval(Container,"DataItem.Stop_ID") ) &
""");window.location.href(""http://acc.edmonton.ca/portal/server.pt?space=CommunityPage&control=SetCommunity &CommunityID=225"");"%>'
Target="_self" ID="Hyperlink2">
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn> 2 1873
Have you tried using
window.open('NewPage.aspx');
or
location.replace('NewPage.aspx');
instead of window.location.href()?
-------------------- From: OT*********@shaw.ca Newsgroups: microsoft.public.dotnet.framework.aspnet Subject: hyperlink with Javascript and databinder Date: 16 May 2006 11:42:59 -0700 Organization: http://groups.google.com Lines: 26 Message-ID: <11*********************@j33g2000cwa.googlegroups. com> NNTP-Posting-Host: 162.106.6.3 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1147804984 1350 127.0.0.1 (16 May 2006
18:43:04 GMT)X-Complaints-To: gr**********@google.com NNTP-Posting-Date: Tue, 16 May 2006 18:43:04 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET
CLR 1.0.3705; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)X-HTTP-Via: 1.0 CEPAPRX23, 1.0 CEPAPRX22 Complaints-To: gr**********@google.com Injection-Info: j33g2000cwa.googlegroups.com; posting-host=162.106.6.3; posting-account=0Wiv9QwAAADDeuw6FR7X-A3eO2QgrBmp Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFT FEEDS01.phx.gbl!newsfeed.c
w.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!news.r
h-tec.net!tiscali!newsfeed1.ip.tiscali.net!proxad.ne t!216.239.36.134.MISMATC
H!postnews.google.com!j33g2000cwa.googlegroups.com !not-for-mailXref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.aspnet:397560 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
This line of code works in IE but not in Firefox or Netscape for some reason.
Any ideas as to why would be appreciated,
It is the NavigateURL part. IE brings up the page, the other two browsers it just does nothing.
Tom Olthoff
Line of code:
<asp:TemplateColumn HeaderText="Bus Stop #"> <HeaderStyle CssClass="gAlt2SubHeader" VerticalAlign="Top"></HeaderStyle> <ItemTemplate> <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Stop_ID")%> ' NavigateUrl='<%# "javascript:document.PCC.PutSessionState(""urn:sc hemas.coe.com:transit"",""
BusStopNumber"","""& cstr(DataBinder.Eval(Container,"DataItem.Stop_ID") ) & """);window.location.href(""http://acc.edmonton.ca/portal/server.pt?space=C
ommunityPage&control=SetCommunity&CommunityID=225" ");"%>'Target="_self" ID="Hyperlink2"> </asp:HyperLink> </ItemTemplate> </asp:TemplateColumn>
--
Thank You,
Nanda Lella,
This Posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kumar |
last post by:
Hi Folks,
I have a question regarding conditional hyperlink in datagrid.
I want to display Hyperlink if my QID values in (1,4,5,6) other wise i
want to display just Qdescription with out...
|
by: Arjen |
last post by:
Hello,
Here is my datalist.
<asp:DataList id="myDataList" CellPadding="4" Width="100%" runat="server">
<ItemTemplate>
<span class="Normal">
<asp:HyperLink id="link" Text='<%#...
|
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...
|
by: Martin Dew |
last post by:
Having some problems getting a hyperlink object to work in my repeater
control, It displays the text I have asked it to for the hyperlink, but it
does not act as a link. My repeater code is below...
|
by: Greg Reynolds |
last post by:
Hi,
I need to create datagrid hyperlink columns with multiple parameters in the
URL.
In my research on how to do this, it is recommended to create a template
column which I have done. The code...
|
by: BobRoyAce |
last post by:
I am brand new to ASP.NET and am now required to take over maintenance of a
..NET/C# web application. On one of the pages I'm working on there is a
DataGrid which has multiple columns. One of the...
|
by: Satya |
last post by:
Hi all,
The following code is throwing a run time error "The server tag is not well
formed.
"
<ItemTemplate>
<asp:HyperLink Runat="server" ID="lnkFile"...
|
by: ashtek |
last post by:
Hi,
I am using a hyperlink on a datagrid (templatecolumn) to display a
link. Onclick of this link I want to open a new window without tool bar
& with certain width & height.
I am using this code...
|
by: ashtek |
last post by:
I have an <ASP:HYPERLINKon a datagrid (templatecolumn) and I need to
open a new window with no toolbar and specific height & width onclick
of the link. I also want to pass the PK to this new...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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...
|
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,...
|
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...
|
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...
| |