Link to home
Start Free TrialLog in
Avatar of Seven price
Seven priceFlag for United States of America

asked on

c# store Array collection

is it possible to store array collection in memory and call it later in the code through another method or something.
SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Seven price

ASKER

Well. here is the scenario.
to make my life easier for now.
I have a webmethod. submits from the client side first. Then the server side fires off from a button
OnClick="btn_submit_Click"  OnClientClick="Validate();"
so I am trying to retrieve the data hold after the client side submits and reuse it on the server as the postback starts
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On the client side but need to hold it to pass it to the server side.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I try it. but I get
Object reference not set to an instance of an object.
  [WebMethod(EnableSession = true)]
        [ScriptMethod]
        public static string SubmitInfo(ies[] iesSe)
        {

Open in new window

here is my array that is submmited from the client side alreay. if I could hold iesSe when the serverside is running.
Remember everything is running altogether. There is no stop or pause the client side run then the server side right after.
thanks guys. these were great solutions. I decided to just convert it all to angularjs using a webmethod. thanks again.