locked
Retrive and pass data to a asp.net Page RRS feed

  • Question

  • Hello All,

     

    I created a  asp.net login page ,on click of submit button i shown a SL page . So now I would like to know how i get a login name in Silverlight page form asp .net page ..? I also want to show a asp.net form on click of Silverlight Button so how i do this?

     

    If you have any code or sample which will interact with asp.net page  and SL page . Please share the link or code with me.

     

     

    Thanks

     

     

        

     

    Monday, September 17, 2007 9:29 AM

Answers

  • You can either use a hidden input field or query string to retrieve the information, to retrieve it from SL you can use the HtmlPage, example:

     //To retrieve the hidden element

    System.Windows.Browser.HtmlPage.Document.GetElementById(HiddenElementID);
     

    //To get the query string

     System.Windows.Browser.HtmlPage.QueryStrin[QueryStringParameter];

    Monday, September 17, 2007 9:45 AM