<img alt="" src='<%# Convert.ToInt32(Eval("ConsGrade"))==0?"/MembCenter/Images/.gif":"/MembCenter/Images/ed.gif" %>' onclick='<%# Convert.ToInt32(Eval("ConsGrade"))!=0? return false:javascript:void(openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}',400, 150)); ,("ID"))%>' />后面这个
 onclick='<%# Convert.ToInt32(Eval("ConsGrade"))!=0? return false:javascript:void(openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}',400, 150)); ,("ID"))%>'
有错误,请大家帮帮忙,在线等啊

解决方案 »

  1.   


    onclick='<%# Convert.ToInt32(Eval("ConsGrade"))!=0? return false:javascript:void(openWin("/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}",400, 150)); %>'
      

  2.   

    你openWin 有两个参数是么?
      

  3.   

    <img align="absMiddle" alt="選擇" height="20" onclick="window.open('BrowseEmployee.aspx?currcontrolid=2' + '&facnum=' + document.all.hdCrsOrgFacNum.value,'win01','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=850,height=500,top='+(screen.height-500)/2+',left='+(screen.width-850)/2)"
                                                onmouseover="this.style.cursor='hand'" src="images/cmdBrowse.gif" width="21" />
      

  4.   

    <script language="javascript"> 
          function openWin(u, w, h) { 
                var l = (screen.width - w) / 2; 
                var t = (screen.height - h) / 2; 
                var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l; 
                s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no'; 
                open(u, 'oWin', s); 
          } 
         </script> 
      

  5.   


    <img alt="" src='<%# Convert.ToInt32(Eval("ConsGrade"))==0?"/MembCenter/Images/.gif":"/MembCenter/Images/ed.gif" %>' onclick="'<%# Convert.ToInt32(Eval("ConsGrade"))%>'!=0? return false:javascript:void(openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}',400, 150)); ,<%Eval("ID"))%>' "/>
      

  6.   

    onclick=' <%# Convert.ToInt32(Eval("ConsGrade"))!=0? return false:javascript:void(openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}',400, 150)); ,("ID"))%>' 
    后面的ID也是一个参数,大家不要把他给忘了啊
      

  7.   


    onclick='<%# Convert.ToInt32(Eval("ConsGrade"))!=0? return false:javascript:void(openWin
    ("/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}","400", "150")); %>'
      

  8.   


    <img alt="" src='<%# Convert.ToInt32(Eval("ConsGrade"))==0?"/MembCenter/Images/.gif":"/MembCenter/Images/ed.gif" %>' onclick="'<%# Convert.ToInt32(Eval("ConsGrade"))%>'!=0? return false:javascript:void(openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}',400, 150));  "/>
      

  9.   


    <img alt="" src='<%# Convert.ToInt32(Eval("ConsGrade"))==0?"/MembCenter/Images/.gif":"/MembCenter/Images/ed.gif" %>' onclick="
    javascript:void(
    if ('<%# Convert.ToInt32(Eval("ConsGrade"))%>'!=0) 
    {return false}else {openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}',400, 150)) }  ) />
      

  10.   


    <script language="javascript"> 
          function openWin(u, w, h) { 
                var l = (screen.width - w) / 2; 
                var t = (screen.height - h) / 2; 
                var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l; 
                s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no'; 
                open(u, 'oWin', s); 
          } function openurl()
    {if ('<%# Convert.ToInt32(Eval("ConsGrade"))%>'!=0) 
     {
      return false;
      }else
     {
      openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id={0}',400, 150)) 
      } }
        </script>
    <img alt="" src='<%# Convert.ToInt32(Eval("ConsGrade"))==0?"/MembCenter/Images/.gif":"/MembCenter/Images/ed.gif" %>' onclick="openurl()"
     />
      

  11.   

    解决了,下面的是正确的 <img alt="" src='<%# Convert.ToInt32(Eval("ConsGrade"))==0?"/MembCenter/Images/.gif":"/MembCenter/Images/ed.gif" %>' onclick="<%# Convert.ToInt32(Eval("ConsGrade"))!=0? "return false":"openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id="+Eval("ID")+"',400, 150);"%>"/>
             
      

  12.   

    好像Eval不能直接用在<script language="javascript"> 中的,汗
      

  13.   

     openWin(u, w, h) 传参数传错了
      

  14.   

    onclick="<%# Convert.ToInt32(Eval("ConsGrade"))!=0? "return false":"openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id="+Eval("ID")+"',400, 150)); \"%>"
      

  15.   

    onclick=" <%# Convert.ToInt32(Eval("ConsGrade"))!=0? "return false":"openWin('/MembCenter/BusinessNote/ReView.aspx?type=Praxis&event=grade&id="+Eval("ID")+"',400, 150)); "%>"