初学者 用asp实现一个简单的搜索功能!

菜鸟求助 用asp实现一个简单的搜索功能!!! 在线等
初学者    用asp实现一个简单的搜索功能!
如图     根据输入框输入内容从数据库中搜索   然后在同一个页面中按编号从小到大顺序排列显示记录     
求解怎样实现。。    本人新手  刚学asp没多久    好多都不会    请不要用太复杂的代码初学者    用asp实现一个简单的搜索功能!
------解决方案--------------------
<form action="?action=search" method="post">
    <table>
        <tr>
            <td>产品名称</td>
            <td><input type="text" name="productname" /></td>
        </tr>
        <tr>
            <td>产品编号</td>
            <td><input type="text" name="productid" /></td>
        </tr>
        <tr>
            <td>产品分类</td>
            <td><input type="text" name="category" /></td>
        </tr>
        <tr>
            <td>材质</td>
            <td><input type="text" name="caizhi" /></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="查询" /></td>
        </tr>
    </table>
</form>


假设产品数据库表明为"product",产品名字段为"title",编号为:"code",类别"category",材质:"caizhi"

dim sql
sql = "select * from product where 1=1"
if request("action")="search" then
if request("productname") <>""  sql = sql & " and title like '%" & request("productname") & "%'"
if request("productid")<>"" sql = sql & " and code = " & request("productid")
if request("category")<>"" sql = sql & " and category = ' & request("category") & "'"
if request("caizhi")<>"" sql = sql & " and caizhi = ' & request("caizhi") & "'"
end if
sql = sql & " order by id desc"
rs.open sql,conn,1,3 

...................

后面自己来了
------解决方案--------------------
查询省、市、男、女信息示例功能
<table cellpadding="0" cellspacing="0" style="height: 23px; width: 260px;">
    <tr>
        <td width="70px;">
            <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged">
            </asp:DropDownList></td>
            <td width="70";>
            <asp:DropDownList ID="ddlCity" runat="server">
            </asp:DropDownList>
        </td>
        <td style="width: 90px;">
            <asp:RadioButtonList ID="radlistSex" runat="server" RepeatDirection="Horizontal"
                Width="90px" Font-Size="12px">
                <asp:ListItem Selected="True"> 男</asp:ListItem>
                <asp:ListItem>女</asp:ListItem>
            </asp:RadioButtonList>
        </td>
        <td style="width: 24px;">
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/a2.png" OnClick="ImageButton1_Click" />
        </td>
    </tr>
</table>
//处理查询功能ascx.cs页
  DBClass dbobj = new DBClass();