建议使用cache技术,具体可参考帮助,搜索cache,不会再上来问。

解决方案 »

  1.   

    为何一定要用script,.net的后台代码一样的好用。script作为良好的辅助最好。建议转到.net的框架下来!你有现成的控件可以使用!
      

  2.   

    session和dataset都不是问题啊了!觉得应该使用简单的方法。而不是负责话的解决方案!
      

  3.   


    http://school.enet.com.cn/document/20001231/2000123110434701.shtml
    看看。
      

  4.   

    to yohomonkey(ht) 
    能不能说说javascript怎么获取dataset,Session的值??
    thanks;
      

  5.   

    protected DataSet dataset
    可以一样使用。
    <script language=javascript>alert("<%=Session["yoursession"].ToString()%>")</script>
      

  6.   

    script好想没有办法提取dataset,但是table还是可以的,但是session不行。
    我的意思,想必你理会错了!
    我是说,不用脚本会更加方便和简单。就用.net的aspx+vb.net。
      

  7.   

    to:yohomokey
    给贴点代码瞧瞧,谢谢了!
      

  8.   

    to yohomonkey(ht)
    hehe 我也曾经想过怎么把dataset传给javscript,但都是失败了
    只是用table来构造彩单有点烦啊(我说的是下拉的,我曾试过)
    to  popcorn(米花) 
    加入
    Session["yoursession"]=ds;好象就不行了。:-)
    传单值那时没问题了。
      

  9.   

    用脚本的方式的代码我没有现成的。
    还是建议您用.net的方式,用.net的脚本不能体现.net的优势,和asp没有区别了(个人感觉啊!)。
    .net的有,要吗!
      

  10.   

    几天都没有来了!sorry,刚刚看到短信,比较忙!
    楼主可以直接用datagrid来实现。
    如果一定要用table,下面是简单的例子:
    <%@ Page Language="VB" %>
    <html>
    <head>
       <script runat="server">
          Sub Page_Load(sender As Object, e As EventArgs)
             ' Generate rows and cells.           
             Dim numrows As Integer = 3
             Dim numcells As Integer = 2
             Dim j As Integer
             For j = 0 To numrows - 1
                Dim r As New TableRow()
                Dim i As Integer
                For i = 0 To numcells - 1
                   Dim c As New TableCell()
                   c.Controls.Add(New LiteralControl("row " & j.ToString() & _
                                  ", cell " & i.ToString()))
                   r.Cells.Add(c)
                Next i
                Table1.Rows.Add(r)
             Next j
          End Sub 'Page_Load
       </script>
    </head>
    <body>
       <form runat="server">
          <h3>Table Example</h3>      <asp:Table id="Table1" 
               Font-Name="Verdana" 
               Font-Size="8pt" 
               CellPadding="5" 
               CellSpacing="0"           
               BorderWidth="1" 
               Gridlines="Both" 
               runat="server"/>
       </form>
    </body>
    </html>
    请吧此例中的vb代码换成对应的vb.net的代码:提取数据源,使用循环,给你的table对象添加数据。