MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Problems with Random .NEt Controls.  (Mono Support )

Viewed 59751 time(s), 19 post(s) 6/30/2011 1:24:56 AMby shawndg
shawndg

shawndg

6/30/2011 1:24:56 AM
Hello,

Now im not sure but it seems that a lot of dotnet controls are causing me headaches when I try to use them inside Monox.

For example treeview control is not working inside monox..

I can populate it but if i try to click on it.. it starts screaming bunch of error msgs..
I think its because of how nested the controls are..

Any idea how to fix this or get around it ?
This content has not been rated yet. 
1871 Reputation 252 Total posts
khorvat

khorvat

6/30/2011 7:00:45 AM
Hi,

  can you send us some sample code that you are using so we can try to reproduce the issue ?

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
shawndg

shawndg

7/13/2011 12:44:36 PM
Sorry,

Been a while getting back to you but I wanted to make sure it was Monox causing me the problems and it looks to be.. well at least something inside Monox..

I find that when I add a Treeview into my webpart.. javascript scripts that ASP.net created start to error out.

Once I add a Treeview with a couple of notes to a a custom web control I run into this error when clicking on any items in the treeview..

Line: 1
Error: The value of the property '__doPostBack' is null or undefined, not a Function object

I did some reading and this may be related in some way..
http://stackoverflow.com/questions/6228384/postback-fails-on-asp-net-page-when-using-google-analytics

But I looked at my source and don't see this as the issue.. so im confused.
This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg

shawndg

7/13/2011 1:08:23 PM
Here is the source of the page.. it generates.

I see that the script part that handles this postback is on the bottom of the page..
Think that may cause a issue but not sure why its putting it there..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head><title>
 
</title><link href="../../../App_Themes/Default/Default.css" type="text/css" rel="stylesheet" /><style type="text/css">
    .BandManager_TreeView1_0 { text-decoration:none; }
    .BandManager_TreeView1_1 { color:Black;font-family:Tahoma;font-size:8pt; }
    .BandManager_TreeView1_2 { padding:2px 2px 2px 2px; }
    .BandManager_TreeView1_3 { font-weight:normal; }
    .BandManager_TreeView1_4 {  }
    .BandManager_TreeView1_5 {  }
    .BandManager_TreeView1_6 { background-color:#B5B5B5;padding:0px 0px 0px 0px; }
    .BandManager_TreeView1_7 { color:#6666AA;text-decoration:underline; }
    .BandManager_TreeView1_8 { color:#6666AA;text-decoration:underline; }
 
</style></head>
<body>
    <form name="form1" method="post" action="/TheScene/TheScene/WebParts/BandManager/BandManagerDefault.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEyNDk5MjEyMTkPZBYCAgMQZGQWAgIBD2QWAgIGD2QWAgIBD2QWAgIBEDwrAAkCAA8WAh4NTmV2ZXJFeHBhbmRlZGRkCBQrAAcFFzA6MCwwOjEsMDoyLDA6MywwOjQsMDo1FCsAAhYGHgRUZXh0BQlOZXcgQWxidW0eBlRhcmdldAUGX2JsYW5rHghFeHBhbmRlZGcUKwAEBQswOjAsMDoxLDA6MhQrAAIWBh8BBQwtS2FsaW1iYSBCTEEfAgUGX2JsYW5rHwNnZBQrAAIWBh8BBRotTWFpZCB3aXRoIHRoZSBGbGF4ZW4gSGFpch8CBQZfYmxhbmsfA2dkFCsAAhYGHwEFFi1TbGVlcCBBd2F5IHNvbWUgc3R1ZmYfAgUGX2JsYW5rHwNnZBQrAAIWBh8BBQR0ZXN0HwIFBl9ibGFuax8DZxQrAAMFBzA6MCwwOjEUKwACFgYfAQUILUthbGltYmEfAgUGX2JsYW5rHwNnZBQrAAIWBh8BBRotTWFpZCB3aXRoIHRoZSBGbGF4ZW4gSGFpch8CBQZfYmxhbmsfA2dkFCsAAhYGHwEFA2JsYR8CBQZfYmxhbmsfA2cUKwADBQcwOjAsMDoxFCsAAhYGHwEFCC1LYWxpbWJhHwIFBl9ibGFuax8DZ2QUKwACFgYfAQUaLU1haWQgd2l0aCB0aGUgRmxheGVuIEhhaXIfAgUGX2JsYW5rHwNnZBQrAAIWBh8BBQZCTEFCTEEfAgUGX2JsYW5rHwNnFCsAAwUHMDowLDA6MRQrAAIWBh8BBRotTWFpZCB3aXRoIHRoZSBGbGF4ZW4gSGFpch8CBQZfYmxhbmsfA2dkFCsAAhYGHwEFCy1TbGVlcCBBd2F5HwIFBl9ibGFuax8DZ2QUKwACFgYfAQUGZGZhZmFzHwIFBl9ibGFuax8DZ2QUKwACFgYfAQUEVEVTdB8CBQZfYmxhbmsfA2cUKwACBQMwOjAUKwACFgYfAQUILUthbGltYmEfAgUGX2JsYW5rHwNnZAULY3RsMDR8ZWVlZWVkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBRVCYW5kTWFuYWdlciRUcmVlVmlldzHYKoU+zHzfWHftcE24ssQxasKZxA==" />
</div>
 
 
<script src="/TheScene/JavaScript/AdapterUtils.js" type="text/javascript"></script>
<script src="/TheScene/JavaScript/TreeViewAdapter.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
document.getElementById('ctl04').value = GetViewState__AspNetTreeView('BandManager_TreeView1_UL');
return true;
}
//]]>
</script>
 
<div>
 
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
</div>
    <div>
         
  
  
 
 <br />
 
<div id="BandManager_MusicPanel">
     
 
                    <h2>
                        Music Manager
                    </h2>
 
    <div id="BandManager_musiclist">
         
 
     
        <div class="AspNet-TreeView" id="BandManager_TreeView1">
                <ul id="BandManager_TreeView1_UL">
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sNew Album')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            New Album</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sNew Album\\-Kalimba BLA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba BLA</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sNew Album\\-Maid with the Flaxen Hair')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sNew Album\\-Sleep Away some stuff')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Sleep Away some stuff</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','stest')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            test</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','stest\\-Kalimba')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','stest\\-Maid with the Flaxen Hair')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sbla')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            bla</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sbla\\-Kalimba')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sbla\\-Maid with the Flaxen Hair')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sBLABLA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            BLABLA</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sBLABLA\\-Maid with the Flaxen Hair')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sBLABLA\\-Sleep Away')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Sleep Away</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root AspNet-TreeView-Leaf">
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sdfafas')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            dfafas</a>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sTESt')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            TESt</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sTESt\\-Kalimba')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba</a>
                            </li>
                        </ul>
                    </li>
                </ul>
 
        </div>
 
     
    </div>
 
 
</div>
 
    </div>
    <div>
    <input type="hidden" name="ctl04" id="ctl04" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
 
</form>
</body>
</html>
This content has not been rated yet. 
1871 Reputation 252 Total posts
khorvat

khorvat

7/13/2011 3:31:23 PM
Hi,

I can't see much from the source code because you need to send us a javascript references. After we have this we can take a look what may be causing the error.

I have take a look at the Google analytics issue, and I don't see this as a problem (I0m not 100% sure) because we have many projects with complex 3rd party controls and they all use Google analytics without a problem.

/TheScene/JavaScript/AdapterUtils.js
/TheScene/JavaScript/TreeViewAdapter.js


Attache the above mentioned files so we can proceed.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
shawndg

shawndg

7/14/2011 2:16:55 AM
None of those files exist ?

I slimed it way down to base code..

here is the markup code..
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BandManager.ascx.cs" Inherits="TheScene.Web.WebParts.BandManager" %>
<%@ Register Namespace="MonoSoftware.Web.Pager" Assembly="MonoSoftware.Web.Pager" TagPrefix="mono" %>
 
 
<%--<%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="CuteWebUI" %>--%>
 
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
 
     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="False">
         </asp:ToolkitScriptManager>    --%>
 
 
 <asp:Label ID="GlobalCurrentFilePath" runat="server" Visible="False"></asp:Label>
 <asp:Label ID="GlobalCurrentFileRoot" runat="server" Visible="False"></asp:Label>
 <asp:Label ID="GlobalCurrentFileName" runat="server" Visible="False"></asp:Label>
 
 <br />
 
<asp:Panel ID="MusicPanel" runat="server">
 
                    <h2>
                        Music Manager
                    </h2>
 
    <asp:Panel ID="musiclist" runat="server">
 
    <asp:TreeView ID="TreeView1" runat="server" Height="149px" Width="339px"
    ImageSet="XPFileExplorer" NodeIndent="15" EnableClientScript="False"
            onselectednodechanged="TreeView1_SelectedNodeChanged">
    <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
    <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black"
        HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
    <ParentNodeStyle Font-Bold="False" />
    <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False"
        HorizontalPadding="0px" VerticalPadding="0px" />
</asp:TreeView>
 
    </asp:Panel>
 
</asp:Panel>


here is the code behind.
using System;
using MonoSoftware.MonoX.ModuleGallery;
using System.Web.UI.WebControls;
using System.ComponentModel;
using TheSceneDataBase;
using System.Web.Security;
using TheSceneDatabase.TheSceneDataBase;
using MonoSoftware.MonoX;
using MonoSoftware.Web;
using MonoSoftware.MonoX.Utilities;
using System.IO;
 
//using CuteWebUI;
//using TagLib;
 
 
namespace TheScene.Web.WebParts
{
    public partial class BandManager : BasePagedPart
    {
 
        #region Constructor
        /// <summary>
        /// Constructor.
        /// </summary>
        public BandManager()
        {
            Title = "Music Manager";
            IsTemplated = false;
           // ControlSpecificTemplateSubPath = "";
        }
        #endregion
 
        #region Page Events
        protected void Page_Init(object sender, EventArgs e)
        {
            //custom events handlers ?
        }
 
        protected void Page_PreRender(object sender, EventArgs e)
        {
            //prerender
            if (!Page.IsPostBack)
             {
                 // checks to see if the current user has the Isband role.
                 bool IsBand = SecurityUtility.IsUserInRole("IsBand");
 
                 //if ((GetMyGuid() != Guid.Empty) & (IsBand == false))
                 //{
                 //    Response.End();
                 //}
 
                 PopulateAlbums();
            }
 
        }
 
        #endregion
 
        #region Methods
        /// <summary>
        /// Apply web part property changes (Note: Overridden property still needs to be marked as <see cref="MonoSoftware.MonoX.WebPartApplyChangesAttribute"/>).
        /// <para>
        /// Note: Marked with <see cref="MonoSoftware.MonoX.WebPartApplyChangesAttribute"/> attribute so it is called from ApplyChanges event in the editor part to refresh the module appearance.
        /// </para>
        /// </summary>
        ///
        [WebPartApplyChanges]
        public override void ApplyChanges()
        {
            base.ApplyChanges();
        }
 
        #endregion
 
        protected override void OnInit(EventArgs e)
        {
       
            //base.AccountUpdated += new MembershipModuleEvent(ctlMembership_AccountUpdated);
 
            base.OnInit(e);
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
             
 
        }
 
 
 
        public Guid GetMyGuid()
        {
            Guid MyGuid = Guid.Empty;
            MyGuid = new Guid("A9BE2637-4723-42A8-A247-002F44CFC7B3"); 
            //MyGuid = SecurityUtility.GetUserId();
            return MyGuid;
        }
 
 
 
        protected void PopulateAlbums()
        {
 
            DatabaseClass MyDatabaseClass = new DatabaseClass();
 
 
            //Populate Album List
            foreach (TheSceneDatabase.TheSceneDataBase.Ext_CusMusicAlbum x in MyDatabaseClass.GetMusicAlbums(GetMyGuid()))
            {
 
                // Add children module to the root node
                TreeNode AlbumNode = new TreeNode();
 
                AlbumNode.Text = x.AlbumName.ToString();
                AlbumNode.Target = "_blank";
                AlbumNode.Value = "A";
 
                foreach (TheSceneDatabase.TheSceneDataBase.Ext_CusMusicMp3 y in MyDatabaseClass.GetAlbumSongList(x.AlbumId, GetMyGuid()))
                {
                    // Add children module to the root node
                    TreeNode child = new TreeNode();
 
                    child.Text = "-" + y.SongTitle.ToString();
                    child.Target = "_blank";
                    child.Value = "A";
                    AlbumNode.ChildNodes.Add(child);
 
                }
 
                TreeView1.Nodes.Add(AlbumNode);
 
            }
 
 
        }
 
        protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
        {
 
        }
 
    }
 
}

When I click on any item in the teeview I get the JavaScript Error.

Error: The value of the property '__doPostBack' is null or undefined, not a Function object

This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg

shawndg

7/14/2011 2:20:06 AM
Ohh and here is the updated view source..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head><title>
 
</title><link href="../../../App_Themes/Default/Default.css" type="text/css" rel="stylesheet" /><style type="text/css">
    .BandManager_TreeView1_0 { text-decoration:none; }
    .BandManager_TreeView1_1 { color:Black;font-family:Tahoma;font-size:8pt; }
    .BandManager_TreeView1_2 { padding:2px 2px 2px 2px; }
    .BandManager_TreeView1_3 { font-weight:normal; }
    .BandManager_TreeView1_4 {  }
    .BandManager_TreeView1_5 {  }
    .BandManager_TreeView1_6 { background-color:#B5B5B5;padding:0px 0px 0px 0px; }
    .BandManager_TreeView1_7 { color:#6666AA;text-decoration:underline; }
    .BandManager_TreeView1_8 { color:#6666AA;text-decoration:underline; }
 
</style></head>
<body>
    <form name="form1" method="post" action="/TheScene/TheScene/WebParts/BandManager/BandManagerDefault.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEyNDk5MjEyMTkPZBYCAgMQZGQWAgIBD2QWAgIGD2QWAgIBD2QWAgIBEDwrAAkCAA8WAh4NTmV2ZXJFeHBhbmRlZGRkCBQrAAcFFzA6MCwwOjEsMDoyLDA6MywwOjQsMDo1FCsAAhYIHgRUZXh0BQlOZXcgQWxidW0eBlRhcmdldAUGX2JsYW5rHgVWYWx1ZQUBQR4IRXhwYW5kZWRnFCsABAULMDowLDA6MSwwOjIUKwACFggfAQUMLUthbGltYmEgQkxBHwIFBl9ibGFuax8DBQFBHwRnZBQrAAIWCB8BBRotTWFpZCB3aXRoIHRoZSBGbGF4ZW4gSGFpch8CBQZfYmxhbmsfAwUBQR8EZ2QUKwACFggfAQUWLVNsZWVwIEF3YXkgc29tZSBzdHVmZh8CBQZfYmxhbmsfAwUBQR8EZ2QUKwACFggfAQUEdGVzdB8CBQZfYmxhbmsfAwUBQR8EZxQrAAMFBzA6MCwwOjEUKwACFggfAQUILUthbGltYmEfAgUGX2JsYW5rHwMFAUEfBGdkFCsAAhYIHwEFGi1NYWlkIHdpdGggdGhlIEZsYXhlbiBIYWlyHwIFBl9ibGFuax8DBQFBHwRnZBQrAAIWCB8BBQNibGEfAgUGX2JsYW5rHwMFAUEfBGcUKwADBQcwOjAsMDoxFCsAAhYIHwEFCC1LYWxpbWJhHwIFBl9ibGFuax8DBQFBHwRnZBQrAAIWCB8BBRotTWFpZCB3aXRoIHRoZSBGbGF4ZW4gSGFpch8CBQZfYmxhbmsfAwUBQR8EZ2QUKwACFggfAQUGQkxBQkxBHwIFBl9ibGFuax8DBQFBHwRnFCsAAwUHMDowLDA6MRQrAAIWCB8BBRotTWFpZCB3aXRoIHRoZSBGbGF4ZW4gSGFpch8CBQZfYmxhbmsfAwUBQR8EZ2QUKwACFggfAQULLVNsZWVwIEF3YXkfAgUGX2JsYW5rHwMFAUEfBGdkFCsAAhYIHwEFBmRmYWZhcx8CBQZfYmxhbmsfAwUBQR8EZ2QUKwACFggfAQUEVEVTdB8CBQZfYmxhbmsfAwUBQR8EZxQrAAIFAzA6MBQrAAIWCB8BBQgtS2FsaW1iYR8CBQZfYmxhbmsfAwUBQR8EZ2QFC2N0bDA0fGVlZWVlZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUVQmFuZE1hbmFnZXIkVHJlZVZpZXcxaqP70odqtoBPWwhQEDK4GTlT5tQ=" />
</div>
 
 
<script src="/TheScene/JavaScript/AdapterUtils.js" type="text/javascript"></script>
<script src="/TheScene/JavaScript/TreeViewAdapter.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
document.getElementById('ctl04').value = GetViewState__AspNetTreeView('BandManager_TreeView1_UL');
return true;
}
//]]>
</script>
 
<div>
 
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
</div>
    <div>
         
  
  
 
 <br />
 
<div id="BandManager_MusicPanel">
     
 
                    <h2>
                        Music Manager
                    </h2>
 
    <div id="BandManager_musiclist">
         
 
     
        <div class="AspNet-TreeView" id="BandManager_TreeView1">
                <ul id="BandManager_TreeView1_UL">
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            New Album</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba BLA</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Sleep Away some stuff</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            test</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            bla</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            BLABLA</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Maid with the Flaxen Hair</a>
                            </li>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Sleep Away</a>
                            </li>
                        </ul>
                    </li>
                    <li class="AspNet-TreeView-Root AspNet-TreeView-Leaf">
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            dfafas</a>
                    </li>
                    <li class="AspNet-TreeView-Root">
                        <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
                        <a href="javascript:__doPostBack('BandManager$TreeView1','sA')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                            TESt</a>
                        <ul>
                            <li class="AspNet-TreeView-Leaf">
                                <a href="javascript:__doPostBack('BandManager$TreeView1','sA\\A')" onclick="window.open(this.href, '_blank', ''); return false;" onkeypress="window.open(this.href, '_blank', ''); return false;">
                                    -Kalimba</a>
                            </li>
                        </ul>
                    </li>
                </ul>
 
        </div>
 
     
    </div>
 
 
</div>
 
    </div>
    <div>
    <input type="hidden" name="ctl04" id="ctl04" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
 
</form>
</body>
</html>
This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg

shawndg

7/14/2011 11:37:02 AM
Ok I found that there are no files in those paths..

Now.. I found the files in the following path already.
\MonoX\Scripts\Adapters

I even tried creating my own path and making copies of the two files in question but it did not change my result.

Still getting the same error..
This content has not been rated yet. 
1871 Reputation 252 Total posts
khorvat

khorvat

7/14/2011 11:46:41 AM
Hi,

I think that I have found what may be causing the issue, can you please check "~\App_Browsers\CSSFriendlyAdapters.browser" file and comment or delete the following line:

<adapter controlType="System.Web.UI.WebControls.TreeView"
               adapterType="CSSFriendly.TreeViewAdapter" />

Please get back to us with the results.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
shawndg

shawndg

7/14/2011 12:39:51 PM
Ok..

The javascript error went away when i did that..
I also removed the target from my add node code.

Now.. I enabled client script on the treeview..
But it is not acting like a treeview..
its not expanding or collapsing at all

Not sure if this is still part of this issue or not...
This content has not been rated yet. 
1871 Reputation 252 Total posts
1 2