Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get html textbox value from one page and to display it into another page in asp.net?
Posted
Comments
Per Söderlund 19-Mar-13 8:21am    
Lets see.

You can use client side cookies, or the Storage or sessionStorage.
You can also use Session variable on server side.
Or you can just use a querystring in the url on the new page?

Try something and let us know if you get stuck.There are many different ways and I cant recommend any until i see some code, but maybe thats just me.

Quote:
You can use a
HTML
<form method="post">
tag to post data to the other page, and a
HTML
<input type="submit">
. That's the easiest way, but you can use .NET controls instead of HTML Tags.
 
Share this answer
 
Comments
deepak Singh m 19-Mar-13 8:58am    
yaa but for some control i need not use of asp control its simply just to send data from one page to another page. infidelity it will improve the performance of website. asp controls are very heavy controls.
Hi,

You can pass textbox value in URI parameter and get it from the another page.
JavaScript
var text = document.getElementsByName("textbox1").value;
window.open("yousite?value=" + text,"popup"," menubar =0,toolbar =0,location=0, height=900, width=1000");

hope this will help you,

Thanks
-Amit
 
Share this answer
 
You can use cross page posting or you can use Property to expose and Consume values of TextBox.

Follow below link for code:

Cross Page Posting PostBack In ASP.NET
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900