Aboutrobert mamayev Expertise Main focus is classic ASP, Oracle 9i and 10g and MySQL databases
Experience I am an expert with classicASP. I can answer any questions you might have about the ASP language, HTML, website design and development. I am not an expert in ASP.NET yet, so please don't ask me any questions specific to ASP.NET. Also, be sure to visit my IdeaJets website.
In ASP if you have a grid on a page where the user will be adding data (rows). How can all the rows of data be kept in memory until the user saves them to the database?
Thanks in advance,
Richard
Answer Richard, the best way is to create an array of hidden variables and store the grid value in them. If you have a recordset, then create a variable, initialize it to 0 and in the recodset loop append index variable to hidden variable. You will end up with something like this:
<input type="hidden" id=test0 value="123">
<input type="hidden" id=test1 value="234">...
Then on submit use javascript to process these variabes.