http://expert.csdn.net/Expert/topic/945/945320.xml?temp=.3617212
<script language="javascript">
<!--
function TrvModel_DblClick()
{
window.document.VindicateModel.Isdbclick.value="true";
---Form 的 ID
window.document.VindicateModel.submit();
}
-->
</script>
<input type="hidden" name="Isdbclick" value="false">
<iewc:treeview id="trvModel" ondblclick="javascript:TrvModel_DblClick()" style="Z-INDEX: 101; LEFT: 6px; POSITION: absolute; TOP: 14px" runat="server" Width="216px" Height="158px">
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if (Page.IsPostBack)
{
if (Request.Form["Isdbclick"]!=null)
{
{
if (Request.Form["Isdbclick"].ToString()=="true")
{
trvModel_DblClick();
}
}
}
}
public void trvModel_DblClick()
{
...写你要做的事情就OK了,哈哈
}