locked
how to open a new window(Pop Up Page) in sl2.0 RRS feed

  • Question

  • hi ,

     My requirement to open a pop up window( new page)  onclicking on textBlock . I am using

    HtmlPage.Window.Navigate(new Uri(http://shagdf.aspx)); this naviagate to the next page which i am calling, which is not correct.

     Can you help me how to open a pop up Window ( In which I want to show an aspx page.

     

    Can u plase go through my code and suggent me in opening a pop up window.

    <TextBlock Margin="0,0,219,358" VerticalAlignment="Bottom" FontWeight="Bold" FontFamily="Verdana" FontSize="11" Cursor="Hand" Foreground="#FF000000" Text="FEEDBACK" TextWrapping="Wrap" x:Name="related_Feedback" HorizontalAlignment="Right" Width="68" Height="15"

    />

     void related_Feedback_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)

    {

    if(SessionId != -1)

    HtmlPage.Window.Navigate(new Uri("http://UserFeedBack.aspx?sid=" + SessionId));

    }

    I am using  

     

    Tuesday, May 20, 2008 6:22 AM

Answers

All replies

  • Hello,

    You can use HtmlPage.Window.Navigate(new Uri(http://shagdf.aspx), "__blank")

    Tuesday, May 20, 2008 6:40 AM
  • thanks i got it.

    One more please, how to  disable scrollbars=no, toolbar=no,menubar=no,status= no, resizable= no  and change the height , width, left, top.  all these in new window.

     

     

     

    Tuesday, May 20, 2008 7:45 AM
  • Hi:

      You can do this via javascript. Please refer to:

    http://msdn.microsoft.com/en-us/library/cc221359(vs.95).aspx

    Regards

    Wednesday, May 21, 2008 9:27 PM
  •  Hi, you can use

    HtmlPage.Window.Navigate(new Uri("http://silverlight.net"), "_blank","menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width=500,height=500");

    Monday, March 8, 2010 2:51 AM