如题。
想判断给的分是否大于10分,如何解决呢..?!!
评分:<asp:TextBox ID="txtCent" runat="server" Width="51px"></asp:TextBox>
简述题<asp:Label ID="labSubject" runat="server" Width="1px"></asp:Label>分/题 
●●●●●●●

解决方案 »

  1.   

    foreach (GridViewRow row in GridViewID.Rows)
    {
        Textbox tx= ((TextBox)row.Cells[1].FindControl("txt"));
    }http://www.cnblogs.com/xy6521/articles/680822.html
    http://www.cnblogs.com/aito/archive/2008/08/25/1275723.html
      

  2.   

    利用焦点失去(onblur)的事件,用JS作判断
      

  3.   

    http://blog.csdn.net/djf_1985/archive/2008/12/22/3584286.aspx
    看看这个
      

  4.   

    给你个我做的GridView里取值显示进度,参考            window.onload=function longer()
                {
                    var gvInfo = document.getElementById("GridView1");
                    for(var i=1;i<gvInfo.rows.length;i++)
                    {
                          var lbl = gvInfo.rows[i].cells[2].firstChild;
                          var n=lbl.innerText;
                          if(n>100)
                          {
                            n=100;
                          }
                          var div2 = gvInfo.rows[i].cells[1].firstChild;
                          var h=div2.style.width;
                          div2.style.width=n*1*0.01*140;
                    }
                }