“<a class=\""+ this.HyperlinkCss +"\"   "
+"href=\"javascript: var turnPage=document.getElementsByName('cuteTurnPage')[0].value;" + Page.GetPostBackEventReference(this,  "turnPage"  ) + ";\">转到</a>”
想在Page.GetPostBackEventReference函数的第二个参数中传入 turnPage 的值,怎么写也不对?
在线等,解决马上给分~!

解决方案 »

  1.   

    “<a class=\""+ this.HyperlinkCss +"\""+"href=\"javascript: var turnPage=document.getElementsByName('cuteTurnPage')[0].value;" + Page.GetPostBackEventReference(this,  "turnPage"  ) + ";\">转到</a>”在Page.GetPostBackEventReference(this,  "turnPage"  ) 触发加载完后
    var turnPage=document.getElementsByName('cuteTurnPage')[0].value;赋值语句都还没有执行了
    var turnPage=document.getElementsByName('cuteTurnPage')[0].value;是在 转到 被点击后才执行,肯定进不去值的