Avatar of Seven price
Seven price
Flag 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.
C#

Avatar of undefined
Last Comment
Seven price

8/22/2022 - Mon
SOLUTION
Fernando Soto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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
Fernando Soto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Seven price

ASKER
On the client side but need to hold it to pass it to the server side.
ASKER CERTIFIED SOLUTION
Minh Võ Công

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Seven price

ASKER
I try it. but I get
Object reference not set to an instance of an object.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Seven price

ASKER
  [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.
Seven price

ASKER
thanks guys. these were great solutions. I decided to just convert it all to angularjs using a webmethod. thanks again.