ezrarainesqej
New Member
I am stuck in a situation, web site is running in ASP.NET 1.1I am loading a page with some data. In the page there is a Html Table.In each row, I am loading status(active/inactive) in one and message in another .There is a save button when clicked it should save the status and message to database.Since the data is in Html Table I am loosing the data while button is clicked.I tried one option of keeping the status and message at page load in a global Javascript variable. But I will loose that also when button is clicked.JS Code to store the data :\[code\]// To store all active or inactive feature values.var arrType = [];var interiorValues = [arrType];var exteriorValues = [];var mechanicalValues = [];var standardValues = [];function StoreChromeVallue(){ var $jDecode = jQuery.noConflict(); var table = document.getElementById('dlInterior'); for (var i = 1, row; row = table.rows; i++) { for (var j = 0, col; col = row.cells[j]; j++) { var imagePath = $jDecode(row.cells[0]).find('img:first').attr('src'); if(imagePath == "../icon_active1.gif") { arrType.push("active"); } else if(imagePath == "../icon_deleted1.gif") { arrType.push("deleted"); } else { arrType.push("active"); } var featureValue = http://stackoverflow.com/questions/13814852/$jDecode(row.cells[1]).text(); arrType.push(featureValue); arrType.push("Interior"); interiorValues.push(arrType); } } alert(interiorValues[5][0]);}\[/code\]HTML TABLE WHERE DATA IS STORE\[code\]<TABLE id="dlInteriors" Width="300" Runat="server" CellSpacing="0" CellPadding="0"> <TR> <TD id="interiortd" vAlign="top" width="350" runat="server"></TD> </TR></TABLE>\[/code\]Rows are dynamically added on page load.Please guide me how I should go ahead on this.