毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

ASP+SQL SERVER2000电子商城系统 第23页

更新时间:2007-10-19:  来源:毕业论文

    </TD>
                                            <TD width="40%">
                                                <TABLE id="Table4" style="WIDTH: 282px; HEIGHT: 48px" cellSpacing="0" cellPadding="0" width="282"
                                                    border="0">
                                                    <TR>
                                                        <TD align="left">
                                                            <a href ='../Product/showDetail.aspx?ProductID=<%#DataBinder.Eval(Container.DataItem,"PID") %>'>
                                                                <%#DataBinder.Eval(Container.DataItem,"productName")%>
                                                            </a>
                                                        </TD>
                                                    </TR>
                                                    <TR>
                                                        <TD align="left">卖家:
                                                            <asp:HyperLink id="Hyperlink3" runat="server">
                                                                <%#DataBinder.Eval(Container.DataItem,"CName")%>
                                                            </asp:HyperLink></TD>
                                                    </TR>
                                                    <TR>
                                                        <TD align="left">
                                                            <img src="../images_default/online_pic.gif"></TD>
                                                    </TR>
                                                </TABLE>
                                            </TD>
                                            <TD width="10%" align="left">
                                                <asp:Label id="Label2" runat="server">
                                                    <%#DataBinder.Eval(Container.DataItem,"unitPrice")%>
                                                </asp:Label></TD>
                                            <TD width="10%" align="left">
                                                <asp:Label id="Label3" runat="server">
                                                    <%#DataBinder.Eval(Container.DataItem,"province")%>
                                                    <%#DataBinder.Eval(Container.DataItem,"Pcity")%>
                                                </asp:Label></TD>
                                            <TD width="10%"></TD>
                                        </TR>
                                    </TABLE>
                                </ItemTemplate>
                                <SeparatorTemplate>
                                    <hr width="100%" color="#ff6633" size="1">
                                </SeparatorTemplate>
                            </asp:repeater>
 
 
后台相应代码:
 
private void AName_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            String AName=DropDownList1.SelectedValue;
            Session["AName"]=AName;
            Image1.ImageUrl="Images\\"+AName+".GIF";
           
            adminDB Category = new adminDB();
              //一级目录下,所有二级目录的绑定;
 
            BName.DataSource =Category.Category_BName_List(AName);
            BName.DataBind();
            
             //一级目录下,所有商品的绑定;
            ProductList.DataSource =Category.Products_AName_List(AName);
            ProductList.DataBind();
 
 
        }
 
第二级产品类别展现:
 
二级目录下的所有目录绑定和一级目录下情况一样,这里不做说明。
 
后台相应代码:
 
private void Page_Load(object sender, System.EventArgs e)
        {
            // 在此处放置用户代码以初始化页面
 
            if(!IsPostBack)
            {  
                String AName=Session["AName"].ToString();
                String BName = (String)(Request.QueryString["BName"]);
                Session["BName"]=BName;
                
                ANameT.Text =AName;
                BNameT.Text=BName;
                adminDB Category = new adminDB();
                DataList1.DataSource =Category.Category_Name_List(BName,AName);
                DataList1.DataBind();
 
 
                Repeater2.DataSource =Category.Products_BName_List(BName);
                Repeater2.DataBind();
 
 
            }
        }

 << 上一页  [21] [22] [23] [24] [25] [26] [27] [28] [29] [30]  ... 下一页  >> 

ASP+SQL SERVER2000电子商城系统 第23页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。