打印本文 打印本文 关闭窗口 关闭窗口
开发asp.net自定义控件(asp.net学习笔记五)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2603  更新时间:2009/4/23 10:50:35  文章录入:mintao  责任编辑:mintao
bsp;           for(int i=0;i<node.ChildNodes.Item(current).FirstChild.ChildNodes.Count;i++)

                        {

                            string ItemLabelString = node.ChildNodes.Item(current).FirstChild.ChildNodes.Item(i).Attributes["Label"].Value;

                            string ItemURLString="";

                            if(node.ChildNodes.Item(current).FirstChild.ChildNodes.Item(i).Attributes["URL"] != null)

                            {

                                ItemURLString = node.ChildNodes.Item(current).FirstChild.ChildNodes.Item(i).Attributes["URL"].Value;

                            }

                            if(node.ChildNodes.Item(current).FirstChild.ChildNodes.Item(i).Attributes["RightCode"] != null)

                            {

                                rightCode = node.ChildNodes.Item(current).FirstChild.ChildNodes.Item(i).Attributes["RightCode"].Value;

                            }

                            else

                            {

                                rightCode = "";

                            }

                            foreach(string rule in Rule)

                            {

                                if(rule==rightCode || ruleString=="admin")

                                {

                                    s = s + "\n\t\t<a href=\"#;\" onMouseOver=\"expandMenu(''''menu"+current+"'''');\"  onclick=\"window.location=''''"+ItemURLString+"''''\">";

                                    s = s + "\n\t\t"+ItemLabelString+"</a><br>";

                                }

                            }

                        }

                        s = s + "</div>";

                    }

                }

                s = s + "</tr>";

            }

            s = s + "</tr></table>\n\n";

            s = s + "<p class=\"a\"></p>\n";

上一页  [1] [2] [3]  下一页

打印本文 打印本文 关闭窗口 关闭窗口