Click here to Skip to main content
15,886,787 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 :


XML
<%@ 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>





What Should I do? It takes my time about 5 days, but I couldn't solve it individually.

Any Idea?
Posted
Comments
Nagy Vilmos 12-Oct-11 11:24am    
Have you looked here - http://www.obout.com/em/KnowledgeBase.aspx
R. Giskard Reventlov 12-Oct-11 11:57am    
You should post that as the solution: get the points.
Nagy Vilmos 12-Oct-11 12:00pm    
Done so.
pampam110 12-Oct-11 15:50pm    
by the way. thank you Nagy. I took a look at your link. I forgot to add Menu to my page. i did it. it works without any error. but nothing show!

any idea?

1 solution

Have you looked here - http://www.obout.com/em/KnowledgeBase.aspx[^]

[posted at DM's behest]
 
Share this answer
 
Comments
pampam110 13-Oct-11 6:37am    
my previous problem solved, but when i run my webpage, it doesn't show my menu. and when in internet explorer I use styles--->no style. it shows my menu, without any style. can u help me with this?

thanks in advance/.
Nagy Vilmos 13-Oct-11 6:41am    
If you feel the original is answered then mark it so.
As I don't know too much on this subject, enough to get you in the right direction but little more, I'd suggest raising another question so others can see your problem. Remember to add as much detail as you can to help those who may be able to help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900