How to pass variables in the URL?

  • Thread starter Thread starter Miguel Dias Moura
  • Start date 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
 
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

Back
Top