javascriptʵÏÖTreeViewÑ¡ÖÐ×Ó½áµã£¬¸¸½áµãҲѡÖÐ
ÕâÀïÓÃjavascript ·½·¨ÊµÏÖÁËTreeViewµÄcheckboxÑ¡ÖеÄЧ¹û£º
1£ºÑ¡Öи¸½ÚµãµÄʱºò£¬Æä×ӽڵ㽫×Ô¶¯Ñ¡ÖУ»
2£ºÈô¸¸½Úµã²»Ñ¡ÖУ¬Æä×Ó½ÚµãҲȫ²¿Ñ¡ÖУ»
2£ºÈôÆäÖÐÒ»¸ö×Ó½ÚµãuncheckµÄʱºò£¬Æä¸¸½ÚµãµÄ״̬¾Í²»Ñ¡ÖС£
¸Ã·½·¨ÔÚIE7 ºÍfirefoxϾù¿ÉÖ´ÐУº
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page </title>
<script type="text/javascript" language="javascript">
function client_OnTreeNodeChecked(evt){
var obj = getCurrentNode(evt);
var treeNodeFound = false;
var checkedState;
if (obj.tagName == "INPUT" && obj.type == "checkbox" ){
checkedState = obj.checked;
<
Ïà¹ØÎÊ´ð£º
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(),this.ClientID, " <script language=\"javascript\" type=\"text/javascript\"> if(confirm('ÐèÒªÖ±½Ó ......
ÎÒ¶ÔÊ÷½øÐа󶨵Äʱºò£¬Óиø Ê÷µÄtitle ÊýÖµ£¡
ÎÒÔËÐÐÆðÀ´£¬£¬£¬Êó±ê·Åµ½½ÚµãÉÏ£¬Ò²Õý³£ÏÔʾ title Öµ
ÔËÐкóÉú²úµÄHTNL ´úÂ룺
ÆäÖеÄÒ»¸ö½ÚµãHTML
<tr>
<td> <a id="Data ......
ÈçÌ⣬ÇóÒ»¸ö¿ª·ÅÔ´´úÂ룬×îºÃÓÐÎĵµµÄtreeview£¬¹¦ÄÜ×îºÃÍêÕûµã£¬ÎÒÉÏÍøÕÒÁËһϣ¬²»ÈÝÒ×ÕÒ£¬ÌصØÔÚÕâÀïÇóÁË¡£
·¢µ½ÎÒÓÊÏäÈ¥£¬Èç¹û²»ÊǺܴóµÄ»°£¬fulongchi@163.com£¬Ð»Ð»¡£
ÒýÓÃ
·¢µ½ÎÒÓÊÏäÈ¥£¬Èç¹û²»ÊǺ ......
JScript code:
<form id="myform" name="myform">
<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(e ......