日期:2014-05-17 浏览次数:20988 次
<tr>
<td><asp:TextBox ID="txt1" runat="server" Width="200px" ></asp:TextBox>
<input id="Button1" type="button" value="请选择" onclick="javascript:window.open('zi.aspx');" />
</td>
<td>
<asp:textbox id="txt2" runat="server" Width="200px"></asp:textbox>
</td>
</tr>
protected void GVInfo_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Response.Write("if(confirm('你确认要选择吗?')){opener.location.href='fu.aspx?id1=" + e.Row.Cells[2].Text.ToString() + "&id2=" + e.Row.Cells[3].Text.ToString() + "';self.close();}");
}
}