How to pass variables in the URL?

  • Thread starter Miguel Dias Moura
  • Start date
M

Miguel Dias Moura

Hello,

I am working on an Asp.Net/VB web site.
I have a search form with an input text and the search button.
How can I send the Words written in the input box to the results page?

I need to send the words in order to be used as filter in the results
page.
I don't know how many words the user will write...
Maybe I can assume that the user will not write more than 10?

Can you tell me the best way to do this in ASP.NET?

Thanks,
Miguel
 
K

Kevin Spencer

Response.Redirect("somepage.aspx?paramName=" +
Server.UrlEncode(TextBox1.Text));

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top