TreeView Ultimate Solution in ASP.NET! !

xiaoxiao2021-03-06  15

Recently, the permission module, very headache. Does not include the service part of the permission, but also the interface of the permission portion. Since Microsoft's TreeView control is used to assign permissions, it is better to solve the problem of TreeView with the help of TreeView operations and colleagues. 1. The front desk control is expanded, contracted, check / uncheck, and selected IndexChanged. Solution: The autopostback set to false; body was added then written in PageLoad: string strTreeName = "TreeView1"; string strRef = Page.GetPostBackEventReference (TreeView1); string strScript = "