简易菜单问题 [英] problem with OBOUT-Easy Menu
问题描述
我想在我的网页中使用数据库(SqlDataBase)填充一个简易菜单(OBOUT-简易菜单).但是当我运行页面时遇到麻烦.当我运行页面时,将显示以下消息:
"Microsoft JScript运行时错误:无法获取属性"childNodes"的值:对象为null或未定义"
我的数据库名称是"sds5",我的表名为"emSample",具有以下列:
[ID,InnerHtml,Url,ParentID],这是我在default.aspx中使用的代码:
I would like to have an Easy Menu ( OBOUT - Easy Menu) populate with database(SqlDataBase)in my webpage. but when I run the page I encounter to a trouble. Below message will appear when I run my page:
"Microsoft JScript runtime error: Unable to get value of the property ''childNodes'': object is null or undefined"
my database name is "sds5" my table named "emSample" with these columns :
[ ID, InnerHtml, Url, ParentID ] and this is the code I use in my default.aspx :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="obout_EasyMenu_Pro" Namespace="OboutInc.EasyMenu_Pro" TagPrefix="oem" %>
<!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></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:SqlDataSource ID="sds5" SelectCommand="SELECT ID, InnerHtml, Url, ParentID FROM emSample"
runat="server" ConnectionString="Data Source=.;Initial Catalog=sds5;Integrated Security=True" />
<oem:EasyMenu ID="EasyMenu1" runat="server" SubMenuPlaceHolderID="SubMenuContainer"
DataSourceID="sds5" DataIdField="ID" DataTextField="InnerHtml" DataUrlField="Url"
DataParentIdField="ParentID">
<CommonSubMenuProperties Align="Under" ShowEvent="MouseOver" StyleFolder="styles/horizontal1"
RepeatColumns="1" Position="Vertical" Width="100" />
</oem:EasyMenu>
<asp:PlaceHolder ID="SubMenuContainer" runat="server"></asp:PlaceHolder>
</div>
</form>
</body>
</html>
我应该怎么办?我花了大约5天的时间,但我无法单独解决它.
有任何想法吗?
What Should I do? It takes my time about 5 days, but I couldn''t solve it individually.
Any Idea?
推荐答案
您看过这里- http://www.obout.com/em/KnowledgeBase.aspx [ ^ ]
[按DM的要求发布]
Have you looked here - http://www.obout.com/em/KnowledgeBase.aspx[^]
[posted at DM''s behest]
这篇关于简易菜单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!