PASSING DATA FROM ONE PAGE TO ANOTHER

Posted by Harsh_rc under ASP.NET on 5/29/2010 | Views : 2897 | Status : [Member] | Replies : 6
I WANT TO PASS DATA FROM ONE FORM TO ANOTHER USING JAVA SCRIPT BUT I DONT WANT TO USE QUERY STRING.....SO IS THERE ANY WAY TO PASS DATA WITHOUT USING QUERY STRING...




Responses

Posted by: Raja on: 5/30/2010 [Member] Starter

Up
0
Down
Use action attribute of the HTML Form tag to another page

<form id="form1" runat="server" action="Page2.aspx" method="Post">

/*your code here*/
</form>


This way you do not need even the JavaScript.

Regards,
Raja, USA

Harsh_rc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: HARSH_RC on: 5/30/2010 [Member] Starter

Up
0
Down
but how can i retrive it using javascript in another form

Harsh_rc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: HARSH_RC on: 5/30/2010 [Member] Starter

Up
0
Down
but how can i retrive it using javascript in another form

Harsh_rc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 5/30/2010 [Member] Starter

Up
0
Down
You will need to write those values into another page using Request.Form["fieldName"] and retrieve it as JavaScript variables.

Regards,
Raja, USA

Harsh_rc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Er.deepakdalal on: 5/30/2010 [Member] Starter

Up
0
Down
Read This Article its really helpful:-


http://www.irt.org/articles/js063/index.htm

Harsh_rc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Syedshakeer on: 5/31/2010 [Member] Starter

Up
0
Down
Hi,
Check this article.you will your solution
http://www.htmlgoodies.com/beyond/javascript/article.php/3471111/A-Quick-Tutorial-on-JavaScript-Variable-Passing.htm

Syed Shakeer Hussain

Harsh_rc, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response