还有一个按钮,请问我在按钮事件中怎么写呀

feifeiyaqi2 2010-10-27 09:47:33
1.查询功能:
textbox 输入查询信息字符串
有二个dropdownlist ,第一个dropdownlist返回的记录为25
第二个dropdownlist返回的记录为全部,
还有一个按钮,请问我在按钮事件中怎么写呀

2.
code:


<td align="center" nowrap="nowrap" class="left_title">
中文主题关键字:</td><td nowrap="nowrap" class="left_title">
<asp:TextBox ID="TextBox_mc" runat="server"></asp:TextBox>(拉丁字母一律用小写)
</td>
</tr>
<tr><td align="center" nowrap="nowrap" class="left_title"> 返回记录数:</td><td nowrap="nowrap" class="left_title"> <asp:DropDownList id="DDL" runat="server" AutoPostBack="true" Width="80">
<asp:ListItem Text="25" Selected="True">25</asp:ListItem>
<asp:ListItem Text="75">75</asp:ListItem>
<asp:ListItem Text="100">100</asp:ListItem>
<asp:ListItem Text="150">150</asp:ListItem>
<asp:ListItem Text="200">200</asp:ListItem>
</asp:DropDownList>

  
<asp:DropDownList ID="DDL2" runat="server" AutoPostBack="true" Width="80">

<asp:ListItem Text="all" Selected="True">all</asp:ListItem>
<asp:ListItem Text="30">30</asp:ListItem>
</asp:DropDownList></td></tr>
<tr>
<td colspan="2" nowrap="nowrap" align="center">
<input id="Button1" type="button" onclick="t()" value="查 询" />
 
</td>
</tr>


...全文
118 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
feifeiyaqi2 2010-10-27
  • 打赏
  • 举报
回复
我的思维:
先绑定二个 dropdownlist的数据

然后再写这二个dropdownlist的SelectedIndexChanged(object sender, EventArgs e)

然后再写按钮的事件吧
现在这个按钮的事件我是不会处理


可能这就要这二个dropdownlist的级联运用了
feifeiyaqi2 2010-10-27
  • 打赏
  • 举报
回复
http://www2.stupress.com:8088/subject/hjt/output/search%20index.html

这是连接地址

第一个dropdownlist返回的记录为25

第二个dropdownlist返回的记录为全部

这个级联下拉列表怎么在按钮事件中写呀

porschev 2010-10-27
  • 打赏
  • 举报
回复
第二个是什么全部啊。。

前面那个不是返回了条数吗?那个25.。。

还有。。后面那个按钮是做什么的啊。。。你得说清楚啊
feifeiyaqi2 2010-10-27
  • 打赏
  • 举报
回复
能给我个例子吗

110,565

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧