我想点击按钮进入下一个页面,代码如下:
protected void Button1_Click(object sender, EventArgs e)
    {
        string UserName = name.Text.Trim();
        string PassWord = pwd.Text.Trim();
        OleDbDataAdapter da = new OleDbDataAdapter("select * from Admin  where admin='" + UserName + "' and password='" + PassWord + "'", my_conn);
        DataTable ds = new DataTable(); 
        da.Fill(ds); 
        if(ds.Rows.Count>0) 
        {
        Response.Write ("<script>location.href=('main.aspx');</script>");
        }
   }
但点击按钮后没反应,怎么进入不了main.aspx页面?