string   keywords   =   TextBox1.Text;  
keywords = keywords.Insert(1," ");
string   carstyle = "";
if (DropDownList1.SelectedItem.Text == "小型汽车(蓝牌)")
carstyle = "02";
else if (DropDownList1.SelectedItem.Text == "大型汽车(黄牌)")
carstyle = "01";
Encoding   encoding   =   Encoding.GetEncoding("gb2312");  
string   postData   =   "keywords= "   +   keywords;
string   strUrl   =   "http://weizhang.jmjgj.gov.cn/searchnumber.asp";  
postData = postData + ( "&carstyle= "   +   carstyle);  
byte[]   data   =   encoding.GetBytes(postData);
//Response.Write(postData);
HttpWebRequest   myRequest   =   (HttpWebRequest)WebRequest.Create(strUrl); 
myRequest.Method   =   "POST";
myRequest.ContentType= "application/x-www-form-urlencoded ";
myRequest.ContentLength   =   data.Length;
Stream   newStream=myRequest.GetRequestStream();
newStream.Write(data,0,data.Length);
newStream.Close();
try
{
HttpWebResponse myResponse=(HttpWebResponse)myRequest.GetResponse();
StreamReader reader = new StreamReader(myResponse.GetResponseStream(),Encoding.Default);   
string content = reader.ReadToEnd();
int beginNum = content.IndexOf("<table");
int endNum = content.IndexOf("</table>",beginNum);
int strNum = endNum - beginNum + 1;
string tableString = content.Substring(beginNum,strNum + 7);
Session["HTML"] = tableString;
Response.Redirect("WebForm2.aspx");
}这样提交我们的两个参数是作为URL参数传过去的吗?
我其中一个参数的值中需要有一个空格。  “粤 B12345”这种格式。我用insert方法加入空格以后为什么那边认出来的是
“粤B12345”  要怎么做?
我在ASP直接做表单提交的时候用JAVASCRIPT这样做 document.form1.textbox.value=textbox_value.substring(0,textbox_value.length).replace('\/'," ");
是可以实现的。
如果用HTTPWEBREQUEST传过去是作为URL参数的话我是不是应该把那个空格写成%20??