User-42918493 posted
Its working for me.... try this...
protected void btnSearch_Click(object sender, EventArgs e)
{
Response.Redirect("http://www.mysite.com/search.aspx?q=" + Server.UrlEncode(txtSearch.Text) + "&cx=partner-pub-7294485339189776%3Avlf7gg8zsh3&cof=FORID%3A9&ie=UTF-8&sa=Search&siteurl=www.mysite.com%2FgoogleSearch.htm#1024");
}