Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

How to close the aspx page on HyperLink click event in... RSS

2 replies

Last post Apr 30, 2009 06:29 AM by kondamca

(0)
  • kondamca

    kondamca

    Member

    27 Points

    99 Posts

    How to close the aspx page on HyperLink click event in silver light xaml control?

    Apr 29, 2009 05:02 PM | LINK

    Hi All,

    I have created a silverlight page.xaml file. I have two hyperlinkbutton accept and decline in page.xaml file. I have used this control in default.aspx page.

    when user clicks on Accept hyperlink it is going to another aspx page. When I click on Decline I have to close default.aspx page. Can some body please help me out how can I do this?

    On Hyperlink click event I have to close the page.

    Thanks in advance.

    Regards,

    Konda.

     

    c# silverlight fullscreen c# silverlight deployment ASP.NET SilverlightrLight silverlighterlight Silverlight.js Silverlightlight SilverlightControl Silverlight C# event Silverlight ASP.NET AJAX ASP.NET Futures Asp.NET Futures Silverlight 2.0 "Silverlight 2" compability test tool silverlight 2 silverlight server Silverlighlight 2.0 asp.NETsilverlight 2.0 Silverlight control silverlight xaml silverlight 2.0 aspx in silverlight Client check for silverlight runtime many times silverightverlight Silverlight2 silveright 2 effect silvelight 2 Silvelight 2.0 silvelight c# Silverightlight 2 Siverlight silvelight 2 Silverlight Links "Silvelight 2"

  • jeetumaker

    jeetumaker

    Member

    525 Points

    92 Posts

    Re: How to close the aspx page on HyperLink click event in silver light xaml control?

    Apr 29, 2009 05:49 PM | LINK

    On the HyperLink click event handler in Silverlight, write the below code 

    HtmlPage.Window.Eval("window.close()");

     

     

    I hope this helps. Please click on the "Mark as Answer" if it has answered your question.

    Thanks
    Jeetu Maker
    http://jeetumaker.blogspot.com
    (Light_up_your_apps) using Silverlight.2.0;
  • kondamca

    kondamca

    Member

    27 Points

    99 Posts

    Re: Re: How to close the aspx page on HyperLink click event in silver light xaml control?

    Apr 30, 2009 06:29 AM | LINK

    Hi Jeetu.

    Thanks for your reply. 

    Regards,

    konda.