How to pass FormView textbox value from one page to another .aspx

In FormView have textbox with some value. How can I take that value (text) from one page (Default.aspx) and pass it to another (Default2.aspx). On Default2 I need to use this value to populate gridview with some other data. Example:
Default.aspx
textbox.text = "something"
I need to pass "something" to
Default2.aspx and use it for gridview as select * from sql_table where something="something".

Thanks for helping.
LVL 1
kahvedzicAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

masterpassCommented:
you can pass it through

1. Query String
       http://www.codeproject.com/KB/aspnet/QueryString.aspx
2. Session

If you are going for sessions, do it like this
-----------------
In Default.aspx
textbox.text = "something"
Session["value"] = textbox.text

In Default2.aspx
string value = Session["value"].ToString()
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nalla_btsCommented:
ASP.NET provides various options for state management in web applications.
Ex:
Query String
Context.Items
Hidden Fields ( Viewstate)
Cookies (Client side)
etc.

Based on your needs, you can choose either of the options. Check out below links:

http://msdn.microsoft.com/en-us/library/z1hkazw7.aspx

http://www.csharpcorner.com/UploadFile/freelance91/ASPNETstatemanagementtechniques01012007212655PM/ASPNETstatemanagementtechniques.aspx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.