zoukankan      html  css  js  c++  java
  • 2007.08.24 C#工作随笔

    ShoppingCart.aspx
       <script language="c#" runat="server">
          static int i;
          static int d=1;
          static int n;
          
          void typeid()
           {
             String type=Request.Params["type"];       
             Response.Write(type);
             while((i<n)||(i==0))
               {i++;} 
             Response.Write(i);
             Response.Write("&nbsp;");
             Session["id"+i]=Request.Params["type"];
             Response.Write("&nbsp;");
             Response.Write(Session["id"+i]);
             n=i; 
           }
          void type()
          {
            String type=Request.Params["type"];       
            Response.Write(type);
          }
     
          void list()
           { Response.Write(Session["id"+d]);
             d++;
           }
     
          void clear()
           {
            while(n>=0)
             {Session.Remove("id"+n);
              n--;}
            i=0;
            n=0;
           }
    </script>
     
    在中间列表中加了一列:
    <TD width="60px"><b>Type</b></TD>
    <TD width="60px"><%//#Container.ItemIndex+1%>&nbsp;<%list();%></TD>

  • 相关阅读:
    关于《哈利波特》书的购买方案
    你的灯亮着吗读后感三
    jmeter做接口测试
    jmeter的分布式部署
    JMeter的定时器
    我的功能测试用例是怎么写
    常见的功能测试检查点
    测试用例概论
    敏捷开发与迭代开发
    软件测试模型
  • 原文地址:https://www.cnblogs.com/limshirley/p/1498527.html
Copyright © 2011-2022 走看看