Connecting Tech Pros Worldwide Forums | Help | Site Map

Genrate XML String and Pass to Another Screen.

Newbie
 
Join Date: Apr 2009
Posts: 3
#1: Apr 27 '09
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

Newbie
 
Join Date: Jul 2009
Posts: 2
#2: Jul 1 '09

re: Genrate XML String and Pass to Another Screen.


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.
Reply

Tags
javascript, session values, xml