Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > PopUp giving blank page?

Reply
Thread Tools

PopUp giving blank page?

 
 
jm
Guest
Posts: n/a
 
      11-05-2003
<asp:HyperLinkColumn runat="server" HeaderText="To"
DataNavigateUrlField="calTo"
DataNavigateUrlFormatString="JavaScript:varwin=win dow.open('/MoreInfo.aspx?ID={0}',null,'width=400,height=400,l ocation=no');"
DataTextField="calTo" DataTextFormatString="{0}" />

gives the popup desired, but it also gives a blank page; taking the
target out(like above) navigates to a blank window; taking out the
varwin above gives a blank page with [object].

All the variations give the page desired, it just gives an extra page.

Any ideas?

I added a function:

function testlink(temp)
{

window.open("MoreInfo.aspx?ID=" + temp) //+
",null,'width=400,height=400,location=no");
}


But had to comment the last half off because it kept putting the
width, etc., in the address line; The first part works, it just
doesn't allow me to size the windows.

Thanks again.
 
Reply With Quote
 
 
 
 
Giorgio Parmeggiani
Guest
Posts: n/a
 
      11-05-2003
Hi

>

DataNavigateUrlFormatString="JavaScript:varwin=win dow.open('/MoreInfo.aspx?I
D={0}',null,'width=400,height=400,location=no');"

... cut...

> gives the popup desired, but it also gives a blank page; taking the
> target out(like above) navigates to a blank window; taking out the
> varwin above gives a blank page with [object].


Try this:

DataNavigateUrlFormatString="JavaScript:varwin=if( window.open('/MoreInfo.asp
x?ID={0}',null,'width=400,height=400,location=no') );"

Ciao
Giorgio



 
Reply With Quote
 
 
 
 
jm
Guest
Posts: n/a
 
      11-06-2003
"Giorgio Parmeggiani" <(E-Mail Removed)> wrote in message news:<uQXbUt#(E-Mail Removed)>...
> Hi
>
> >

> DataNavigateUrlFormatString="JavaScript:varwin=win dow.open('/MoreInfo.aspx?I
> D={0}',null,'width=400,height=400,location=no');"
>
> .. cut...
>
> > gives the popup desired, but it also gives a blank page; taking the
> > target out(like above) navigates to a blank window; taking out the
> > varwin above gives a blank page with [object].

>
> Try this:
>
> DataNavigateUrlFormatString="JavaScript:varwin=if( window.open('/MoreInfo.asp
> x?ID={0}',null,'width=400,height=400,location=no') );"
>
> Ciao
> Giorgio


Thanks for the help, but it gave a syntax error.
 
Reply With Quote
 
Giorgio Parmeggiani
Guest
Posts: n/a
 
      11-06-2003
Hi

> > >

> >

DataNavigateUrlFormatString="JavaScript:varwin=win dow.open('/MoreInfo.aspx?I
> > D={0}',null,'width=400,height=400,location=no');"
> >
> > Try this:
> >
> >

DataNavigateUrlFormatString="JavaScript:varwin=if( window.open('/MoreInfo.asp
> > x?ID={0}',null,'width=400,height=400,location=no') );"
> >


Excuse me I have post you a wrong code, but what is "varwin"?:

This one should work
DataNavigateUrlFormatString="JavaScript: if(window.open('/MoreInfo.asp
x?ID={0}',null,'width=400,height=400,location=no') );"

Ciao
Giorgio


 
Reply With Quote
 
jm
Guest
Posts: n/a
 
      11-06-2003
"Giorgio Parmeggiani" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Hi
>
> > > >
> > >

> DataNavigateUrlFormatString="JavaScript:varwin=win dow.open('/MoreInfo.aspx?I
> > > D={0}',null,'width=400,height=400,location=no');"
> > >
> > > Try this:
> > >
> > >

> DataNavigateUrlFormatString="JavaScript:varwin=if( window.open('/MoreInfo.asp
> > > x?ID={0}',null,'width=400,height=400,location=no') );"
> > >

>
> Excuse me I have post you a wrong code, but what is "varwin"?:
>
> This one should work
> DataNavigateUrlFormatString="JavaScript: if(window.open('/MoreInfo.asp
> x?ID={0}',null,'width=400,height=400,location=no') );"
>
> Ciao
> Giorgio


That did it! Thank you. Why is the "if" necessary?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The giving that keeps on giving sixteenmillion C Programming 0 11-19-2007 10:59 PM
blank CD-R and blank DVD-R not recognized by Vista 64 Ultimate =?Utf-8?B?R3JlZyBLaXJrcGF0cmljaw==?= Windows 64bit 13 11-07-2007 12:23 PM
Popup content randomly blank =?Utf-8?B?Q2hyaXN0aWFuIEphY29i?= ASP .Net 1 05-09-2007 12:49 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM



Advertisments