Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: javascript popup ?


Message #1 by "Nick" <nick@g...> on Mon, 5 Aug 2002 17:03:10 +0700
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>

Message #2 by "Robert Sindall" <rsindall@z...> on Mon, 5 Aug 2002 11:57:11 +0100
Nick

Is the control you want to add a Javascript popup to an <ASP: control ?

-----Original Message-----
From: Nick [mailto:nick@g...]
Sent: 05 August 2002 11:03
To: aspx_beginners
Subject: [aspx_beginners] javascript popup ?


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>




Message #3 by Philo <philo@r...> on Mon, 05 Aug 2002 07:48:45 -0400
At 05:03 PM 8/5/2002 +0700, Nick wrote:
>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>

You want something more like

<a runat="server" 
href='javascript:window.open("moreinfo.aspx?id=<%#Databinder.Eval(Container.DataItem, 
"cekidall") %>")' ID="A1">TEST</a>

Is this in a datagrid or repeater? Because a better way to handle those is 
with the ItemDatabound event...

Philo


Message #4 by "Nick" <nick@g...> on Mon, 5 Aug 2002 18:17:47 +0700
No i use <ASP:Linkbutton
----- Original Message -----
From: "Robert Sindall" <rsindall@z...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Monday, August 05, 2002 5:57 PM
Subject: [aspx_beginners] RE: javascript popup ?


> Nick
>
> Is the control you want to add a Javascript popup to an <ASP: control ?
>
> -----Original Message-----
> From: Nick [mailto:nick@g...]
> Sent: 05 August 2002 11:03
> To: aspx_beginners
> Subject: [aspx_beginners] javascript popup ?
>
>
> 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>
>
>
>
>
>
>

Message #5 by "Robert Sindall" <rsindall@z...> on Tue, 6 Aug 2002 15:03:33 +0100
Nick

you can do a:

DeleteUser.Attributes.Add("onclick", "return confirm('Are you Sure you want
to delete?');")

-----Original Message-----
From: Nick [mailto:nick@g...]
Sent: 05 August 2002 12:18
To: aspx_beginners
Subject: [aspx_beginners] RE: javascript popup ?


No i use <ASP:Linkbutton
----- Original Message -----
From: "Robert Sindall" <rsindall@z...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Monday, August 05, 2002 5:57 PM
Subject: [aspx_beginners] RE: javascript popup ?


> Nick
>
> Is the control you want to add a Javascript popup to an <ASP: control ?
>
> -----Original Message-----
> From: Nick [mailto:nick@g...]
> Sent: 05 August 2002 11:03
> To: aspx_beginners
> Subject: [aspx_beginners] javascript popup ?
>
>
> 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>
>
>
>
>
>
>




Message #6 by "Nick" <nick@g...> on Wed, 7 Aug 2002 10:11:32 +0700
but what i want not a confirm condition, i just want to popup new window and
i retrive my value to the new window .....

----- Original Message -----
From: "Robert Sindall" <rsindall@z...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Tuesday, August 06, 2002 9:03 PM
Subject: [aspx_beginners] RE: javascript popup ?


> Nick
>
> you can do a:
>
> DeleteUser.Attributes.Add("onclick", "return confirm('Are you Sure you
want
> to delete?');")
>
> -----Original Message-----
> From: Nick [mailto:nick@g...]
> Sent: 05 August 2002 12:18
> To: aspx_beginners
> Subject: [aspx_beginners] RE: javascript popup ?
>
>
> No i use <ASP:Linkbutton
> ----- Original Message -----
> From: "Robert Sindall" <rsindall@z...>
> To: "aspx_beginners" <aspx_beginners@p...>
> Sent: Monday, August 05, 2002 5:57 PM
> Subject: [aspx_beginners] RE: javascript popup ?
>
>
> > Nick
> >
> > Is the control you want to add a Javascript popup to an <ASP: control ?
> >
> > -----Original Message-----
> > From: Nick [mailto:nick@g...]
> > Sent: 05 August 2002 11:03
> > To: aspx_beginners
> > Subject: [aspx_beginners] javascript popup ?
> >
> >
> > 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>
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> to unsubscribe send a blank email to leave-aspx_beginners-1132896A@p...
x.com.
>

Message #7 by "Nick" <nick@g...> on Wed, 7 Aug 2002 11:34:31 +0700
Hai.. ALL i want to ask more question ....
I use  Hyperlink colum to creat my popup window, but why my parent link had
error and my parent window shown [object] and blank .........  but the popup
is show true
<ASP:hyperlinkcolumn
DataNavigateUrlFormatString="javascript:window.open('test.htm?ProductID={0}'
any one can help me what wrong [object] ??


----- Original Message -----
From: "Nick" <nick@g...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Wednesday, August 07, 2002 10:11 AM
Subject: [aspx_beginners] RE: javascript popup ?


> but what i want not a confirm condition, i just want to popup new window
and
> i retrive my value to the new window .....
>
> ----- Original Message -----
> From: "Robert Sindall" <rsindall@z...>
> To: "aspx_beginners" <aspx_beginners@p...>
> Sent: Tuesday, August 06, 2002 9:03 PM
> Subject: [aspx_beginners] RE: javascript popup ?
>
>
> > Nick
> >
> > you can do a:
> >
> > DeleteUser.Attributes.Add("onclick", "return confirm('Are you Sure you
> want
> > to delete?');")
> >
> > -----Original Message-----
> > From: Nick [mailto:nick@g...]
> > Sent: 05 August 2002 12:18
> > To: aspx_beginners
> > Subject: [aspx_beginners] RE: javascript popup ?
> >
> >
> > No i use <ASP:Linkbutton
> > ----- Original Message -----
> > From: "Robert Sindall" <rsindall@z...>
> > To: "aspx_beginners" <aspx_beginners@p...>
> > Sent: Monday, August 05, 2002 5:57 PM
> > Subject: [aspx_beginners] RE: javascript popup ?
> >
> >
> > > Nick
> > >
> > > Is the control you want to add a Javascript popup to an <ASP: control
?
> > >
> > > -----Original Message-----
> > > From: Nick [mailto:nick@g...]
> > > Sent: 05 August 2002 11:03
> > > To: aspx_beginners
> > > Subject: [aspx_beginners] javascript popup ?
> > >
> > >
> > > 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>
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
leave-aspx_beginners-1132896A@p...
> x.com.
> >
>
>
>


  Return to Index