none
how to open asp.net page in silverlight application

回答

  • Hi sayedEltokhy,

    but i dont know where i will be put name it in serverUri

    The code posted by syed is not displayed completely.

    Below is the complete one and the bold part is page's name.

    Uri serverUri = Application.Current.Host.Source;
    Uri uri = new Uri(string.Concat(serverUri.Scheme, "://", serverUri.Host.ToString(), ":", serverUri.Port.ToString(), "/ReportPage.aspx?"));     
    HtmlPage.Window.Navigate(uri, "_blank");

     

    Best Regards,

    2012年3月18日 21:58
  • i want open page asp.net in silverlight app

    Add an aspx page in web applcation of a silverlight project and call/ open that page from silvelright. is it was you were looking for ?

    let me know if anything else needed.

    Uri serverUri = Application.Current.Host.Source;

    Uri uri = new Uri(string.Concat(serverUri.Scheme, "://", serverUri.Host.ToString(), ":", serverUri.Port.ToString(), "/ReportPage.aspx?"));

    HtmlPage.Window.Navigate(uri, "_blank");
    2012年3月17日 7:20

すべての返信

  • Hello sayed. Please follow the below approach: Suppose you have to open a page on a button's clicked event. using System.Windows.Browser;  public void BtnClicked(object sender, EventArgs e)  {             HtmlPage.Navigate("http://www.google.com");  }  You can enter your desired path in Navigate method like I mentioned www.google.com
    2012年3月17日 6:27
  • He dear,

    You can use divElement tool, see below link

    http://www.divelements.co.uk/silverlight/tools.aspx

    2012年3月17日 7:11
  • i want open page asp.net in silverlight app

    Add an aspx page in web applcation of a silverlight project and call/ open that page from silvelright. is it was you were looking for ?

    let me know if anything else needed.

    Uri serverUri = Application.Current.Host.Source;

    Uri uri = new Uri(string.Concat(serverUri.Scheme, "://", serverUri.Host.ToString(), ":", serverUri.Port.ToString(), "/ReportPage.aspx?"));

    HtmlPage.Window.Navigate(uri, "_blank");
    2012年3月17日 7:20
  • thank you kapesh for yor replay

    2012年3月18日 4:02
  • hi syed amjad thank  you for your replay

    now i create an aspx page

    but i dont know where i will be put name it in serverUri

    greeting

    sayed eltokhy

    2012年3月18日 4:05
  • Hi sayedEltokhy,

    but i dont know where i will be put name it in serverUri

    The code posted by syed is not displayed completely.

    Below is the complete one and the bold part is page's name.

    Uri serverUri = Application.Current.Host.Source;
    Uri uri = new Uri(string.Concat(serverUri.Scheme, "://", serverUri.Host.ToString(), ":", serverUri.Port.ToString(), "/ReportPage.aspx?"));     
    HtmlPage.Window.Navigate(uri, "_blank");

     

    Best Regards,

    2012年3月18日 21:58