我把新闻生成html了 但是在新闻左测有个新闻搜索 我是反新闻搜索的内容 做成aspx的 然后再的html中调用 方法<iframe frameBorder="0" height="140" width="240" scrolling='no' src="../../inc/infoSearch.aspx"></iframe> 但是在打开的时候 新闻内容都出来了 那个iframe 还没有出来 这样还不如不生成html 有没有什么办法 在html中更快的调用aspx页面
调试欢乐多
<tr>
<td><img src="../images/info2.jpg" /></td>
</tr>
<tr>
<td align="center" height="25" >
文章分类:<asp:DropDownList ID="ddlType" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td align="center" height="25" >
搜索类别:<asp:DropDownList ID="ddlKind" runat="server">
<asp:ListItem Value="0">文章题目</asp:ListItem>
<asp:ListItem Value="1">文章内容</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="center" height="25" >
关 键 词:<asp:TextBox ID="txtKeyWord" CssClass="text_form" Width="80" MaxLength="20" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td align="center" height="25" >
<asp:ImageButton ID="imgSearch" ImageUrl="../images/searchs.gif" runat="server" OnClick="imgSearch_Click" />
</td>
</tr>
</table>
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" >");
stringBuilder.Append("<tr><td><img src=\"../../images/info2.jpg\" /></td></tr>");
stringBuilder.Append("<tr><td align=\"center\" height=\"25\" >文章分类:<select name=\"ddlType\" id=\"ddlType\">");
for (int i = 0; i < dt.Rows.Count; i++)
{
stringBuilder.Append("<option value=" + dt.Rows[i]["ID"].ToString() + ">" + dt.Rows[i]["name"].ToString() + "</option>");
}
stringBuilder.Append("</select></td></tr><tr>");
stringBuilder.Append("<td align=\"center\" height=\"25\" >搜索类别:<select name=\"ddlKind\" id=\"ddlKind\"><option value=\"0\">文章题目</option><option value=\"1\">文章内容</option></select></td>");
stringBuilder.Append("</tr><tr><td align=\"center\" height=\"25\" >关 键 词:<input name=\"txtKeyWord\" type=\"tex\" maxlength=\"20\" id=\"txtKeyWord\" class=\"text_form\" style=\"width:80px;\" /></td></tr><tr><td align=\"center\" height=\"25\" ><input type=\"image\" name=\"imgSearch\" id=\"imgSearch\" onclick=\"openSearch();\" src=\"../../images/searchs.gif\" style=\"border-width:0px;\" /></td></tr></table>");