PopUp giving blank page?

Discussion in 'ASP .Net' started by jm, Nov 5, 2003.

  1. jm

    jm Guest

    <asp:HyperLinkColumn runat="server" HeaderText="To"
    DataNavigateUrlField="calTo"
    DataNavigateUrlFormatString="JavaScript:varwin=window.open('/MoreInfo.aspx?ID={0}',null,'width=400,height=400,location=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.
    jm, Nov 5, 2003
    #1
    1. Advertising

  2. Hi

    >

    DataNavigateUrlFormatString="JavaScript:varwin=window.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
    Giorgio Parmeggiani, Nov 5, 2003
    #2
    1. Advertising

  3. jm

    jm Guest

    "Giorgio Parmeggiani" <> wrote in message news:<uQXbUt#>...
    > Hi
    >
    > >

    > DataNavigateUrlFormatString="JavaScript:varwin=window.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.
    jm, Nov 6, 2003
    #3
  4. Hi

    > > >

    > >

    DataNavigateUrlFormatString="JavaScript:varwin=window.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
    Giorgio Parmeggiani, Nov 6, 2003
    #4
  5. jm

    jm Guest

    "Giorgio Parmeggiani" <> wrote in message news:<>...
    > Hi
    >
    > > > >
    > > >

    > DataNavigateUrlFormatString="JavaScript:varwin=window.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?
    jm, Nov 6, 2003
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ibiza
    Replies:
    0
    Views:
    725
    ibiza
    Jan 16, 2006
  2. =?Utf-8?B?Q2hyaXN0aWFuIEphY29i?=

    Popup content randomly blank

    =?Utf-8?B?Q2hyaXN0aWFuIEphY29i?=, May 9, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    337
    Alexey Smirnov
    May 9, 2007
  3. sixteenmillion

    The giving that keeps on giving

    sixteenmillion, Nov 19, 2007, in forum: C Programming
    Replies:
    0
    Views:
    413
    sixteenmillion
    Nov 19, 2007
  4. Jens Peter Hansen
    Replies:
    7
    Views:
    498
    Randy Webb
    Jun 19, 2004
  5. Replies:
    2
    Views:
    446
Loading...

Share This Page