[color=green]//当点击搜索按钮时在新窗口中打开 [/color] btnSearch.Attributes.Add("onclick", "[color=blue]this.form.target='_newName'[/color]");