<httpRuntime maxRequestLength="209715200" enable="true" useFullyQualifiedRedirectUrl="true" executionTimeout="3600" /> ... <requestLimits maxAllowedContentLength="209715200"/><telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel2"> <telerik:RadComboBox ID="RadComboBox2" runat="server" Width="300" Height="300" Label="Select people:" EmptyMessage="Type a persons name" AllowCustomText="true" MarkFirstMatch="True" DataSourceID="SqlDataSource2" DataTextField="Name" DataValueField="Name" Filter="Contains" EnableAutomaticLoadOnDemand="True" EnableVirtualScrolling="true" ItemsPerRequest="15" /></telerik:RadAjaxPanel><ClientSettings AllowKeyboardNavigation="False"> <ClientEvents OnKeyPress="BlockEnterKey" /> <KeyboardNavigationSettings AllowSubmitOnEnter="false" /></ClientSettings><script type="text/javascript"> function BlockEnterKey(sender, e) { if (e.get_keyCode() == 13) { alert('Blocking Enter KeyPress'); e.set_cancel(true); e.cancelBubble = true; return false; } }</script><add key="Telerik.Skin" value="Office2010Blue" /><add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" /><add key="Telerik.StyleSheetManager.TelerikCdn.BaseUrl" value="http://www.abc.com/Skins" /><add key="Telerik.StyleSheetManager.TelerikCdn.BaseSecureUrl" value="https://www.abc.com/Skins" /><add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" /><add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="http://www.abc.com/Scripts" /><add key="Telerik.ScriptManager.TelerikCdn.BaseSecureUrl" value="https://www.abc.com/Scripts" /><%@ Master Language="VB" CodeFile="MasterABC.master.vb" Inherits="MasterABC" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> <title> ABC, Inc. </title> <link href="~/Styles/ABC/Site.css" rel="stylesheet" type="text/css"/> <script type="text/javascript"> window.history.forward(1); </script> <style type="text/css"> .RadMenu .rmLink .rmText { font-family: Arial; font-size: 12pt !important; } </style> </head> <body id="mainBody" runat="server"> <script type="text/javascript"> var flag = false;</script> <script type="text/javascript"> var AjaxIsActive = false; function RequestSent() { if (!AjaxIsActive) { AjaxIsActive = true; } else { alert('Wait for Page to Load'); return false; } } function ResponseEnd() { AjaxIsActive = false; } </script> <form id="form1" runat="server"> <center> <div> <telerik:RadScriptManager ID="ScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2010Blue" EnableRoundedCorners="true" /> <table id="header" runat="server"> <tr> <td align="left" style="width:300px"> <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> </td> <td valign="bottom" align="right"> <asp:Label ID="FN" runat="server" Font-Size="X-Large"></asp:Label> <br/> <asp:Label ID="MN" runat="server" Font-Size="X-Large"></asp:Label> <table> <tr> <td style="text-align:left"> <telerik:RadMenu ID="Menu1" Skin="Office2010Blue" Runat="server" EnableRoundedCorners="true"> </telerik:RadMenu> </td> </tr> </table> </td> </tr> </table> </div><script src="https://www.abc.com/Scripts/ajaxz/2012.2.912/Common/Core.js" type="text/javascript"></script><script src="https://www.abc.com/Scripts/ajaxz/2012.2.912/FormDecorator/RadFormDecorator.js" type="text/javascript"></script><script src="https://www.abc.com/Scripts/ajaxz/2012.2.912/Common/jQuery.js" type="text/javascript"></script>HTTP/1.1 200 OKCache-Control: privateContent-Length: 190405Content-Type: text/html; charset=utf-8Server: Microsoft-IIS/7.0X-AspNet-Version: 4.0.30319X-Powered-By: ASP.NETX-UA-Compatible: IE=7Date: Wed, 12 Jun 2013 02:27:44 GMT<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> .style2 { text-decoration: underline; font-size: x-large; font-family: "Century Gothic"; } .style3 { font-size: x-small; } </style> <style id="head_Style1" type="text/css"> .radupload { float: left; margin-bottom:20px; } .bigModule { clear: both; } .smallModule { margin-bottom:20px; } #controlContainer { vertical-align: top; padding: 20px 10px; } .ruProgressArea { position: absolute; top: 0; left: 10px; } input.RadUploadSubmit { margin-top: 20px; } </style><title> ABC, Inc. </title><link href="../Styles/ABC/Site.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> window.history.forward(1); </script> <style type="text/css"> .RadMenu .rmLink .rmText { font-family: Arial; font-size: 12pt !important; } </style> <link href="/WebResource.axd?d=7209tdxJpyfYvktO7sizLvEsOlAAECN6K3FRNE-PHZRYrWNeNFtBXQbsuC66ijzjVL0YeGYekDhirFbodcA8dpuxgxZPT8bwHQHFPZyOQ2iqctHlDW0PZsNDzijuaY-F9SFdS25jptZEXW79Bmhleg2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=oq7JFUamAGDDod2zl0bRxmoJJl3MRXXYu9kGCqiBtsYNl3E2SE-cNLPrh4Z52YMLXfCf6vb6jowUyroohPh9BcVgQsAAgkdFkphvW5mXNHdKHmzeS4ffBCFyHl1muhvxTjqqvj750FHAPhzOWP4p_8LUIeOfUEB2GwzsiGGEDo7yk5A1tAra8OZ37McbfvMZJqpBeNa1eY4zZkAT-bWnkw2&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=yy_i9ieMBzMnZQru3Pdp-zv5fihc_8qUAWmz-JfbtmatlOKdAdpVPAYNUt3O-d6QdSEuR2_ahVoERJg0K9jaDYRAnYSzqZWRV7fcIxOkJzDVE5Qsac_WdE5bw9-deq7jEYIR0qvVMitLCOowjXNTEg2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=VtOfGwNPga3C32XTXimW7I0iuwKw7q6nlUWQzFSZvIkA3nloS3c_wY6se-UcEMduObX2VkCty-gbAvvT_chGRo4JaWsE88soNMM-YUGkYzt1_afGccaeDqGdAmiBvWdDsOvvF33hxOE4iX-mwIeEreQKhCx99kTcpluI-o0ZOIZePR_wuFI7bPQfM_opYTHJ0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=VcxTCfx6wBSYwXw0sOU10ZoD0BU8xX4nQNF3GOxhH4nyqNQt7WniM-nOhpQoxW9vTYsynZPKzhcTCTZeUme-ha2rHAS-AkT_PjCd1jIWd-53Tq7ZNtOAaI6i_pj0GcVIUx2yBb6eF3k4Tqp4ovTYhA2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=ZMrtlghAh8mu8vLQWv-nO0H8hkPsZQwoKKob-VFVGUB10sHtNv6dGANGwRNh7UaoJdM_QL3rqhAT-P46VJ4SJFRhFScY0IzytWrUB3rGnCMT76L6sIPKFG_xlf_blMjge8cHLiWA7P6K9x24YUMoHL38fQuancEYYsebGUUf7Du_5fKPuUAKqZnrr4pOMTAL0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=ZJhKpdZwpS108KbGM0H2TZF_EWXJ4ECWG1Em-Y-GDt1JRcBLtb_n2Nkb13OOqzL9ixP_bbA93c6CEug8ADqXsal460faur731RPCxOe64pag9YDtLe1flnIHrE2s1TXU8GvrT6WljonOhkC9MBq11Q2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=6ON68SCi2xXHwqc4l3uDtRUR00KLUtKpyL_08eHIsXtKlSbYpsiMe_fi33NHzkpPSrlSlFoCSH4gM40PHWmJoE6_xmqvfILfF0NpAhPAIq2fKYoqSO6ffH0KkQGDHXuSE5onleMaL_95WcUX0XPAitYQREHLVOg7YCoVIgyaFGwazHIZuC-lCRdnVt6rcQq5vbs4Rl7UKFA7ULhmYqwJ_g2&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=GdWx2IEl9qeAVSBk_wNbtNNfEEr0RDfJhzZbTLHshjF4JMq2C4mKXlIz0U2SD09ysHUnonI6eVFFELGv-AolOh_uMtQoKflJ5dBVi-wNg1X66ES6cZLnUe_3rhQGsvuwtjwQcKNc2vWsf-cEPAVvQQ2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=QfqpEg8bjesXMy-Al9qTqzOqfrDgRid_4ywST7dqgWdhsfB5o1itTDWVLGQVdSmniXGMswew3hXDtq5VwkYPIn76ozSw62N0L6UY2qY3t-kvi3R92WRDVLIcKf_M-BOisSVuQdtZ93YgAwJRkAiwaFt_Jq6_ueopk3mjmGXaMGguF6mUi7gCKJSUkDXp4Cw-0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=sXVgqmZA3Vi0qJFOU8bZCafGsK-iAaxh4R2-tqOSGWTirEMClpnJj4__rOPTYn_P5iel6KpdYdI6B3cpXFv-XvpJgqbdC8RtGtOGnTY8KyhZCefwANsIULOxvwcmRjSgeOShII4cMgi0U27lUKjLHg2&t=635064967590027882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=s0JUHkkrBHaA8138SQ5FzmmohQq9va8KLWcjWENuWi2H2b0ojbgGxC-LT2OL9XlKiNR3kSFY7A95TAUSaXQcr0utOQJHhD4pLFF7CqwBTBp3opqxAGBXVSOygHtRu04DqteLyX34bwtUwQDYb16nvvw4CZgDKsmedNEnp3CmKCiLHJOqVVKdSzWH2-gUny9K0&t=635064967433091882" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /></head> <body id="mainBody" bgcolor="f2dd95" style="background-image: url(/Decoration/2/BG1.png)">JavaScript critical error in (unknown source location)
SCRIPT1009: Expected '}'
My javascript is the following
<script type="text/javascript"> function displaySelectedValues() { debugger; var combo = $find("<%# RadComboBox1.ClientID %>"); alert(combo.get_checkedItems().length); //for (var i = 0; i < dropdown.get_checkedItems().length; i++) { // var text = dropdown.get_items().get_text(); // label.value = label.value + text; //} }</script>I use <%# instead of <%= because I get an error from visual studio, but regardless of which one I use I still receive the javascript error mentioned above.
The visual studio error is the following:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I'm not sure if this is related to telerik or not, but if I have <%= visual studio wont even allow me to get on the page.
My markup code is as follows
<telerik:RadAjaxPanel runat="server" ID="rapConfiguration" LoadingPanelID="ralpConfiguration"> <telerik:RadWindow ID="modalPopup" runat="server" Width="650px" Height="325px" Modal="true" Behaviors="Close"> <ContentTemplate> <table style="padding:10px;"> <tr> bunch of td tags </tr <tr> <td style="vertical-align:top;"> </td> <td style="vertical-align:top;"> </td> <td style="vertical-align:top;"> <asp:CheckBox id="cbElementValue" runat="server" Visible="false" Text="Check = Yes/True"/> <telerik:RadCalendar ID="calElementValue" runat="server" Width="200px" RangeSelectionMode="None" EnableMultiSelect="false"></telerik:RadCalendar> <asp:TextBox ID="txtBoxElementValue" runat="server" Width="200px"></asp:TextBox> <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Visible="false" Label="Look up values:" OnClientDropDownClosed="displaySelectedValues();"> </telerik:RadComboBox> </td> <td style="vertical-align:top;"> <asp:CheckBox ID="chkExpression" runat="server" Visible="false" OnClick="checkExpression(this);"/> </td> </tr> </table> <div> <asp:Label runat="server" ID="lblSelectedValues" Text="testing, one, two, three">Selected Values: </asp:Label> </div> <div class="bottomRight"> <asp:Button runat="server" ID="btnSubmitValues" Text="Submit Values" OnClick="btnSubmitValues_Click" /> </div> </ContentTemplate> </telerik:RadWindow></telerik:RadAjaxPanel>I tried moving the RadComboBox outside the table and I still got the error, I tried not passing in a value to the javascript function and I still got an error, because originally I was passing in "this" to the javascript function from the RadComboBox event property. Such as
OnClientDropDownClosed="displaySelectedValues(this);"
Do you have any advice on how I can get past this error?
After I receive the error and choose to continue through it the control still loads on the page but is unclickable, I can't open the dropdown list or type in the combobox.
StringBuilder pagecfg = new StringBuilder();pagecfg.AppendLine("<pageconfig>");IList<RadTreeNode> nodeCollection = rtvSitemap.CheckedNodes;foreach (RadTreeNode node in nodeCollection){ pagecfg.AppendLine(string.Format("<page title='{0}' url='{1}' />",node.Text, node.Value)); }pagecfg.AppendLine("</pageconfig>");<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" enableLocalization="true"><siteMapNode title="$resources:SiteMapLocalizations,HomePageTitle" url="~/default.aspx" description="$resources:SiteMapLocalizations,HomePageDescription" Expanded="false" /><siteMapNode title="$resources:SiteMapLocalizations,PartSectionTitle" url="" description="$resources:SiteMapLocalizations,PartSectionDescription" Expanded="true" ><siteMapNode title="$resources:SiteMapLocalizations,PartPageTitle" url="~/Pages/Production/ProdPart.aspx" description="$resources:SiteMapLocalizations,PartPageDescription" SecAccess="Production" /></siteMapNode></siteMap><telerik:RadTreeView ID="rtvSitemap" runat="server" DataSourceID="dsSiteMap" CheckBoxes="true" MultipleSelect="true" CheckChildNodes="True" DataModelID="Title" DataNavigateUrlField="Url"> <DataBindings><telerik:RadTreeNodeBinding Expanded="true" TextField="title" ValueField="url" /></DataBindings> </telerik:RadTreeView><telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> </telerik:RadScriptManager> <telerik:RadListBox ID="RadListBox1" runat="server" SelectionMode="Multiple" AutoPostBack="true"> <Items> <telerik:RadListBoxItem Text="1" /> <telerik:RadListBoxItem Text="2" /> <telerik:RadListBoxItem Text="3" /> <telerik:RadListBoxItem Text="1" /> <telerik:RadListBoxItem Text="2" /> <telerik:RadListBoxItem Text="3" /> </Items> </telerik:RadListBox>