i'm developping a page in asp.net(c#) which contain a table when i click on the row i pass the data inside that row as variables to another page, using javascript in this way
- Code: Select all
valOne = theRow.getElementsByTagName("td")[0].innerHTML;
then i redirect it by windows.location('url?va="+valone');
but now i need to pass varibales without the querystring, i need to bypass them, so i tried the POST method and here where i need help
i already have a form with
<form id="Form1" method="post" action='anotherPage.aspx' runat="server">
i tried to when i click the row i add the :
Form1.innerHTML+="<input type='hidden' name='valone' value='"+ valone +"'>";
it's added but i'm not redirecting to the other page
Please i'm despert for help and i'm new in javascript, if somebody can help
thank you in advance
regards


