Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 559
  • Last Modified:

How i can pass a big Xml string from silverlight to aspx to aspx

In silverlight i build a Xml and i put the result in a string. I pass the string to the parent aspx.
I need to pass the result to another aspx page.

I was able to pass my xml to the parent page aspx, but my problem is i dont know how to pass pass a 10000 long caracters string to another aspx from my parent aspx.

On the new aspx i have a crystal report and the source is my xml string.

Thx for your help !!!


silverlight Code :
HtmlPage.Window.Invoke("GetXml", myXml);
 
Aspx code:
  <script type ="text/javascript">
    function GetXml(xmlValue)
  {
        //alert(xmlValue);
        window.open("\\Report.aspx", "Report");
        return xmlValue;
    }
</script>

Open in new window

0
raymmich1981
Asked:
raymmich1981
1 Solution
 
TSmoothCommented:
I would use the HttpContext bucket if possible or the session bucket. In your one aspx page, you could have:

HttpContext.Current.Items("MyXMLString") = xmlValue

Then in the second page, retrieve it:

xmlValue = HttpContext.Current.Items("MyXMLString")
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now