Genrate XML String and Pass to Another Screen.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amitjain123
    New Member
    • Apr 2009
    • 3

    Genrate XML String and Pass to Another Screen.

    Hello Friends,

    I have list box and grid view on screen. on selection of list box item, value of selected item gets added into grid view through java script.

    Now I want to generate the XML string of values from grid view, and pass the xml string to another screen as Session value.

    How Can we do this?

    I had tried but I have faced following problem.

    1. I have added values into grid view by using java script, that’s why I didn’t get these values at server side.(I think whenever values are added into gird view through java script, view state is not updated.)

    Let me know if there is any solution to this problem.


    Thank you
    Amit Jain
  • Mike426
    New Member
    • Jul 2009
    • 2

    #2
    Can you make the "submit" button execute JavaScript where it does the following:
    1. Loop through the contents of the grid and build an XML string.
    2. Put the XML string into a hidden text field on the form.
    3. Submit the form.

    This assumes that all of the values you need for your XML are there on the form. If not, then this won't be an option.

    Comment

    Working...