Width=\ AutoPostBack=\ OnSelectedIndexChanged=\
2、后台关键代码
评价部分的后台代码:
{
if (RadioButtonList1.Text == \好评\) {
Label2.Text = goodstring; }
else if (RadioButtonList1.Text == \中评\) {
Label2.Text = zstring; }
else if (RadioButtonList1.Text == \差评\)
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
Label2.Text = badstring; }
else if (RadioButtonList1.Text == \全部评价\) {
Label2.Text = oldallstring; } }
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { }
protected void Button1_Click(object sender, EventArgs e) {
if (DropDownList1.Text == \好评\) {
//DateTime.Now.ToString; gg++;
goodstring = (goodstring) + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \; oldstring = Label2.Text;
Label2.Text = oldstring + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \; oldallstring = oldallstring + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \;
}
else if (DropDownList1.Text == \中评\) {
zz++;
zstring = zstring + \src= 'img/dog 3.jpg'/>\ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \; oldstring = Label2.Text;
Label2.Text = oldstring + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \; oldallstring = oldallstring + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \; }
else if (DropDownList1.Text == \差评\) {
bb++;
badstring = badstring + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \;
oldstring = Label2.Text;
Label2.Text = oldstring + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \; oldallstring = oldallstring + \ + \ + (TextBox1.Text) + \ + \ + DateTime.Now.ToString() + \; }
TextBox1.Text = \;
}
3.测试结果
四、网店页面 1、前台关键代码
Form、table、img、a href、
2、后台关键代码
无
3.测试结果
五、商品详情及购物车页面 1、前台关键代码