I like using CHR(34) because it makes it more obvious to me. Also, get used to calling Response.Write with the parentheses (), as this will be the ASP.NET way.
Instead of using hidden input boxes, you could also pass parameters in the session object or the url string.
-Dave
>Hi All, > >I am sorry as my requirement might sound stupid but please help me. > >I have a search form in one html file. This form uses post method to pass on 6 variables to another ASP/VBScript file. At the start of the ASP file I have something like > >myVar1 = Request.Form("param1") >myVar2 = Request.Form("param2") and so on. > >The ASP file then opens a ADO connection and displays the search results. After that it has some buttons. When user clicks on a button that page should post to itself with different results. My requirement is I need to get the same values of 6 variables on top of this ASP file. I tried the following inside this second form: > >Response.Write "" >Response.Write "" > >and so on. But the problem is sometimes the value of the param2 could have a value "abcd efgh ijklmn" and when the ASP form posts to itself the value for param2 becomes only "abcd" and the rest " efgh ijklmn" get ignored. I time being found a workaround to this problem by replacing all the space characters with '+' and on top of form replace it back with space. > >I am sure there is a better method than using the second form at all. Can I not use the values of first html file directly all the time instead of creating a second form at the end with hidden statements? > >Thanks in advance for your time and effort. > >Regards >Vijay