c# - Can I pass a .net Object via querystring? -


i stucked @ condition , need share values between pages. want share value codebehind via little or no javascript. have question here on , using js. still did'nt got result approach asking.

so want know can pass .net object in query string. can unbox on other end conveniently.

update

or there javascript approach, passing windows modal dialog. or that.

what doing

what doing on parent page load. extracting properties class has values fetched db. , put in session["mysession"]. thing this.

session["mysession"] = myclass.mystatus list<int>; 

now on 1 event checkbox click event client side, opening popup. , on page load, extracting list , filling checkbox list on child page.

now here user can modify selection , close page. close done via button called save , on iterating through checked items , again sending in session["mysession"].

but problem here , when ever again click on radio button view updated values , displays previous one. , if total count of list 3 db, , after modification 1. after reopening still displays 3 instead of 1.

i this.

var stringnumbers = intnumbers.select(i => i.tostring()).toarray(); var qsvalue = string.join(",", stringnumbers);  request.redirect("page.aspx?numbers=" + sqvalue); 

keep in mind if there many numbers query string not best option. remember can see query string if data needs secure not use query string. keep in mind suggestions of other posters.

note

if using .net 4 can simplify above code:

var qsvalue = string.join(",", intnumbers); 

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#? -