ram kumar

ram kumar

  • NA
  • 48
  • 81k

showing space in query string

Aug 11 2010 3:06 AM
i am passing a query string on button click with 2 parmetrs in which value of 1st one is from a drop downlist and end value from a textbox the code is

 Response.Redirect("Default2.aspx?name="+Server .UrlEncode (this.DropDownList1.Text)+"&location="+Server .UrlEncode (this.TextBox1.Text));


but on the navigated page its is showing space b/w the two values this is like

http://localhost:1871/searching_test/Default2.aspx?name=Cardiologist++++++++++++++++++++++++++++++++++++++&location=delhi

why it is showing so many spaces b/w two values. i have tried it without url encode too but no solution.

someone pls help me.

Thanks in advance




Answers (5)