解决方案 »
- 客户端控件加了runat="sever"属性后,和服务器端控件的区别
- 求助Discuz论坛被恶意访问的解决方法~!感激不尽!!叩谢!!
- 急用!在线等!ASP.NET控件悬浮变色JS代码
- asp.net做了一个wap网页,用ucweb访问老是不停的自动刷新
- 文件夹与快捷方式。
- TreeView添加节点的问题
- HeaderStyle-Font-Underline="True"
- 怎么获得formview插入的主键值??
- datagrid里设置列的格式,要求设置为,数据为1500时,显示为1,500.00,数据为0时,显示为空.应该怎么设置格式?
- 页面刷新问题,怎么在一个页面中按了某个按钮后刷新另一个页面呢?
- 请教,code first多对多关系里的更新操作问题
- MVC 4 模板里的注册用户怎样改写成WEB API?
select a.s1,a.s2,b.s1,b.s3 from table where a.s1=b.s1
//输入要显示的文件内容
<asp:TextBox ID="txtkey" runat="server" Width="240px" Height="20px"></asp:TextBox>//载入文本框
<asp:DropDownList ID="ddltype" runat="server" Width="78px" CssClass="txt"
Height="20px">//下拉框选择内容
<asp:ListItem>时政要闻</asp:ListItem>
<asp:ListItem>经济动向</asp:ListItem>
<asp:ListItem>世界军事</asp:ListItem>
<asp:ListItem>科学教育</asp:ListItem>
<asp:ListItem>法治道德</asp:ListItem>
<asp:ListItem>社会现象</asp:ListItem>
<asp:ListItem>体育世界</asp:ListItem>
<asp:ListItem>时尚娱乐</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="cmdSearch" runat="server" Text="站内搜索" OnClick="cmdSearch_Click" Height="20px" />//处理事件按钮
//进行处理显示
protected void cmdSearch_Click(object sender, EventArgs e)
{
Session["tool"] = "都市新闻网络中心->站内查询("+ddltype.Text+")----输入关键字为"" + txtkey.Text + """;
Session["search"] = "select * from tbnews where style='" + ddltype.Text + "'and content like '%" + txtkey.Text + "%' ";
//and issueDate='" + DateTime.Today.ToString() + "'
Response.Redirect("search.aspx");
}
百度一下怎么用不知道你另外两张表是啥,也不知道3张表有啥关联