c# - How can I pass Collection to modal dialog window? -


i want know, if possible pass collection between pages. mean have client-side javascript modal dialog on want use collection. earlier using session[] share value, becoming evil me, displays first value. change in value in not updated.

so whenever pop displayed want collection moved child dialog. there, extract collection, stuffs , again return parent page, preventing postbacks , session management.

i think clear guys. if not clear, please add comment.

you can try json or convert list comma-delimited string easy parse javascript's string split function.

registerarraydeclaration(arrayname, arrayvalue) option. check out link.

from link:

if need create client-side javascript array object set values, use method add value specific array.

to add values 1, 2, , 3 client-side array object named favoritenumbers, you'd use following server-side code:

registerarraydeclaration("favoritenumbers", "1") registerarraydeclaration("favoritenumbers", "2") registerarraydeclaration("favoritenumbers", "3") 

this code emit following client-side script:

<script language="javascript"> <!--    var favoritenumbers =  new array(1, 2, 3);       // --> </script> 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -