日期:2014-05-17  浏览次数:20480 次

问一个比较纠结的问题
页面前台:


<table  align="center">
                                                                <tr>
                                                                    <td>
                                                                    <% Ififrame(); %>
           </td>
                                                                </tr>
                                                            </table>



页面后台:


StringBuilder String7 = new StringBuilder();
String7.Append("<td><a href=''>查看</a></td>");

这里是页面后台动态生成一行表格td,显示的是 查看,

public void Ififrame()
        {
            if ((Request.QueryString["参数名1"] != null) && (Request.QueryString["参数名2"] != null))
            {
                Response.Write("<iframe class='frame' src=\"ABC.aspx?workno=" + Request.QueryString["参数名1"].ToString() + "&str7=" + Request.QueryString["参数名2"].ToString() + "\" frameBorder=\"0\" scrolling=\"no\" style=\"WIDTH: 800px; HEIGHT: 500px\"></iframe>");