I have a wizard..in one pane i select an item...in second pane i enter the information..in the third pane i am display the item selected and the information like a summary..but what is happening is for the first time i get everything properly but if i go
back and change the selected item or info...in the third pane...i am also getting the previous results..i want those labels to be replaced with the new selection and info..any ideas?
brief outline
3rd pane(say pane1) has 2 div elements(label1 and label2)...i am populating the innerHTML of the div with respective objects
var label1 = dojo.create("div", { innerHTML: ob.selecteditem},"pane1");
var label2 = dojo.create("div", { innerHTML: ob.information},"pane1");
how do i refresh the label text everytime...a user changes the selected item or the info?
Could you use the strong type view? Then you can store the data to the model, and in the third pane, you just need use @Model.property to show the data.
13gowthami
Member
30 Points
32 Posts
refresh text of a label which is in a node (dojo)
Mar 29, 2012 07:06 PM|LINK
I have a wizard..in one pane i select an item...in second pane i enter the information..in the third pane i am display the item selected and the information like a summary..but what is happening is for the first time i get everything properly but if i go back and change the selected item or info...in the third pane...i am also getting the previous results..i want those labels to be replaced with the new selection and info..any ideas?
brief outline
3rd pane(say pane1) has 2 div elements(label1 and label2)...i am populating the innerHTML of the div with respective objects
var label1 = dojo.create("div", { innerHTML: ob.selecteditem},"pane1"); var label2 = dojo.create("div", { innerHTML: ob.information},"pane1");how do i refresh the label text everytime...a user changes the selected item or the info?
Regards.
</div>javascript dojo
Young Yang -...
All-Star
21111 Points
1817 Posts
Microsoft
Re: refresh text of a label which is in a node (dojo)
Apr 05, 2012 06:59 AM|LINK
Hi
Could you use the strong type view? Then you can store the data to the model, and in the third pane, you just need use @Model.property to show the data.
Please refer to: http://afana.me/post/create-wizard-in-aspnet-mvc-3.aspx
Hope this helpful
Regards
Young Yang
Feedback to us
Develop and promote your apps in Windows Store