javascript popup ?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngclient' list.


Nick
-- Moved from [aspngdatagridrepeaterdatalist] to [aspngclient] by mrpike <Click here to reveal e-mail address> --

can any body help me to add Javascript:window.open in this script ?
<a runat="server" href='(<%# "moreinfo.aspx?id=" + DataBinder.Eval(Container.DataItem,"cekidall") %>' ID="A1">TEST</a>

Reply to this message...
 
    
Yossi Dahan
You have two options to open a new window from an A tag -
1. use the target="_blank" property for the tag (i.e. <a
href="moreinfo.aspx" target=_Blank">
2. use javascript - <a href="javascript:void(0)"
onclick="window.open('moreinfo.aspx');">

-----Original Message-----
From: Nick [mailto:Click here to reveal e-mail address]
Sent: Monday, August 05, 2002 12:03 PM
To: aspngclient
Subject: [aspngclient] javascript popup ?

-- Moved from [aspngdatagridrepeaterdatalist] to [aspngclient] by mrpike
<Click here to reveal e-mail address> --

can any body help me to add Javascript:window.open in this script ?
<a runat="server" href='(<%# "moreinfo.aspx?id=" +
DataBinder.Eval(Container.DataItem,"cekidall") %>' ID="A1">TEST</a>
| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

Reply to this message...
 
    
Peter Brunone

There is a third option; you can add the javascript function directly to
the href property, i.e.

<a href="javascript:myWindowFunction('moreinfo.aspx')">

Then in myWindowFunction, you can specify the size of the window, whether or
not to include toolbars, etc. This is generally preferable to the onClick()
attribute since clicking the A tag is already natively supported by the href
attribute.

Regards,

Peter

----- Original Message -----
From: "Yossi Dahan" Click here to reveal e-mail address

| You have two options to open a new window from an A tag -
| 1. use the target="_blank" property for the tag (i.e. <a
| href="moreinfo.aspx" target=_Blank">
| 2. use javascript - <a href="javascript:void(0)"
| onclick="window.open('moreinfo.aspx');">
|
| -----Original Message-----
| From: Nick [mailto:Click here to reveal e-mail address]
|
| can any body help me to add Javascript:window.open in this script ?
| <a runat="server" href='(<%# "moreinfo.aspx?id=" +
| DataBinder.Eval(Container.DataItem,"cekidall") %>' ID="A1">TEST</a>
| | [aspngclient] member Click here to reveal e-mail address = YOUR ID
| | http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT
|
| | [aspngclient] member Click here to reveal e-mail address = YOUR ID
| | http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT
|

Reply to this message...
 
    
Nick
how about if i using <asp:linkbutton> ??
----- Original Message -----
From: "Yossi Dahan" <Click here to reveal e-mail address>
To: "aspngclient" <Click here to reveal e-mail address>
Sent: Monday, August 05, 2002 6:53 PM
Subject: [aspngclient] RE: javascript popup ?

[Original message clipped]

Reply to this message...
 
 
System.ComponentModel.Container
System.Web.UI.DataBinder




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com