RSClientController Is Undefined?
May 6, 2010What is the cause of this error: "RSClientController is undefined"? It is associated with a ReportViewerWebControl displayed on a ASP.NET page.
View 1 RepliesWhat is the cause of this error: "RSClientController is undefined"? It is associated with a ReportViewerWebControl displayed on a ASP.NET page.
View 1 RepliesWe've got a VS 2008 ASP.NET app, which is running internally. I've had some older versions of the pages on my system, and a colleague of mine has been updating them. Recently she started to this error:
Microsoft JScript runtime error: RSClientController is undefined. And after that several other errors start popping up, as the page is rendered. (While debugging the page, it stops at several lines to complain about this and other items that were being rendered.)
Anyway, once I got the latest versions of everything checked into source control, I too started to get the same error message. What causes it? How do you fix it?
first of all: this probelm was already an issue in [URL] but it does not resolve my problem: I have VS2008 and SQL Server 2008 Express with Adv. Option istalled. When compiling a page with the reportviewer control I get the error Type 'Microsoft.Reporting.RdlBuildProvider' cannot be instantiated under a partially trusted security policy (AllowPartiallyTrustedCallersAttribute is not present on the target assembly). C:websitesadAgencyweb.config
From the obove mentioned post I learned to use <trust level="Full" /> in the web.config file (which I never used on other Implementations that work). Now the compilation works, but when I start the web application and call that page I get a lot of JScrip Errors like: Runtime error in Microsoft JScript: 'RSClientController' is undefined, which comes from a line in the dynamic page.aspx file: document.getElementById('ctl00_maincontent_ReportViewer1').ClientController = new RSClientController "ctl00_maincontent_ReportViewer1_ctl03", "ReportFramectl00_maincontent_ReportViewer1", ...
I should mention, that I had SQL Server 2005 Express uninstalled before the 2008 version.
I have a GridView with the following event:
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
foreach (TableCell c in e.Row.Cells)
{
c.Attributes.Add("full","false");
}
}
And in my javascript I have an onClick event for every cell:
if(source.full="false")
{
...
source.full="true";
}
else
{
...
source.full="false";
}
Why is it that source.full is always undefined on the first click?
We have a site running FW 2.0 on IIS 6. Actually two sites (on the same server), one works and one has that little Done with errors note in the lower left. The errors are 'Sys' is undefined & WebForm_SaveScrollPositionSubmit' is undefined. I have cleaned the bad site, copied the code from the good site, including web.config, and still see the problem. This was working for a number of months, then I guess we didsomething, and now the errors.
View 2 RepliesWe have developer project in Visual studio 2008, Using Ajax and telerik Rad Controls.
In IE 8 And Firefox, Chrome, Opera Everything is Working fine...
but In IE7 and IE6 It is throwing 'Sys' is undefined Error... And Everything looks Collapsed.. Css, Images Are not displaying on the page..
my previous quesion was answered, but now the same thing that works in IE doesn't work like it should in Firefox.
my C# looks like this:
[code]....
The problem is that this works fine in IE but when I try it in Firefox, after alert D displays "D" the next alert just displays "undefined". I googled around and found some things relating to events but I could not understand nor correctly implement them.
I have a simple page, created in VS2005 . It has a LINK button.
problem, when I click the linkbutton I get the javascript error 'WebForm_PostBackOptions' is undefined, i go through many web site but not found any solution.
var debtProtectionId = 0
// get the selected id of debt protection dropdown
if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != '') {
debtProtectionId = mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue();
}
// get the store record with this id
var storeRecord = planCombinationsStore.getAt(debtProtectionId)
When I run the code it says 'storeRecord is undefined'.
We just upgraded from 2.0 to 3.5 and the latest AJAX Toolkit. AjaxControlToolkit.dll is version 3.5.40412.0
Project references are up to date. The old Toolkit files were deleted and the new ones copied from the distribution ZIP. ScriptManagers were replaced with ToolkitScriptManagers. The project builds with zero errors. The built-in AJAX controls (UpdatePanels, etc.,) work but the Toolkit controls don't. This is happening on local developer boxes and on our development server.
The javascript error we're seeing is "Sys.Extended is undefined." It's occurring in server-generated script blocks like this:
<script type="text/javascript">
//<![CDATA[
(function() {var fn = function() {$get('ctl00_ToolkitScriptManager_HiddenField').value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.TextBoxWatermarkBehavior, {"ClientStateFieldID":"ctl00_PageTop_Search_TextBox_TextBoxWatermarkExtender_ClientState","WatermarkCssClass":"Watermark","WatermarkText":"keyword","id":"ctl00_PageTop_Search_TextBox_TextBoxWatermarkExtender"}, null, null, $get("ctl00_PageTop_Search_TextBox"));
});
//]]>
</script>
I found a similar post on CodePlex: http://ajaxcontroltoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=26717&FocusElement=CommentTextBox
Value of window.XMLHttpRequest is Undefined when i run my application even in IE7 or IE8, Is there anything i have to enable in IE7 to make it work.
View 3 Repliesmy project contain two config files. first config file in root directory, second config file in child directory
part of .config in root directory:
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
</httpHandlers>
part of .config in child directory:
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> [code]....
When 'ScriptResource' in root config file, all's well. But when 'ScriptResource' in child .config file. I have error "Error: 'Sys' is undefined".
Also the machine doesn't recognize the ScriptManager tag in VS.net 2010.
The site has had it's web.config file updated for .net 4 but every page throws this error. The scriptmanager is in the master page, and right after the form tag.
What's wrong?
I am returning a simple string from a webmethod to a Javascript function.I am using an AJAX enabled website in ASP.NET 2.0. I get the date in firefox but inside IE 8 it returns undefined.Do I have to parse the string in the JSON format using some serialize class? In my webmethod, I am just using:
return DateTime.Now.ToString();
$(document).ready(function(){
var pageUrl = '<%=ResolveUrl("~/test/test.aspx")%>';
[code]...
i am trying to save value in database with ajax but code not getting value from textfield and put undefined value in database.
AJAX CODE :
$(document).ready(function () {
$('#btnSave').click(function () {
$.ajax({ type: "POST",
url: "WebForm2.aspx/SaveData",
[code]...
I'm developing using the new ASP.NET 4 and I ran into the following issue. When I put a Menu control into the web form, the menu causes the following code to generate just before the closing </form> tag:
[Code]....
i got this error "PageMethods is undefined" on my AjaxEnabledWebsite. Any one had the same problem?
Client Side Code:
[code]....
I have seen posts discussing this error however, no post has identified a solution to address the issue I am having, so here it goes.
I am using Micosoft Visual Studio 2008
.NET Framework 3.5 SP1
AjaxControlTookkit 3.5.40412.0
Step 1: I create a new, ASP.NET Web Application.
Step 2: Add a 'New Item' from the templates called 'AJAX Web Form'.
Step 3: In Source view go to the Toolbox and drug a 'TabContainer' directly below the ScriptManager tag.
Step 4: Switch to Design view and click 'Add New Tab' on the TabContainer control.
Step 5: Switch back to Source view and add a ContentTemplate open and close tag within the TabPanel tags.
Step 6: Between the open and close ContenTemplate tages add something. I added the following 2 letters, Hi.
Step 7: Set the page we have been working on to your startup page and run it.
Step 8: You will get the following exception every time. Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type
I have tried about 15 different ways to create the most simple use of this control and it fails every time in IE7 and FireFox.
The code.
[Code]....
Iam using asp.net 4.0 treeviw control After selecting one of the node in treeview , i need treeview selectedNode value from client side.
if i use the below code
var name = TreeView1_Data.selectedNodeID.value
replace Treeview1 with my treeview controlID ,and also tried with controlbyelement ID then also giving me the same error
usually I read and find answers but this one is driving me nutzo.I use the authenticationService in many an application with no probelm.I recently added it to a project using .NET 3.5 and the AjaxControlToolkit. Everything was going well until I tried to authenticate using the above method.I set a breakpoint in the JavaScript and inspect the elements to see that:
1. Sys is defined.
2. authenticationService is defined.
3. authenticationService has members like _path.
4. authenticationService.login is undefined.
if I change the <AjaxControlToolKit:ToolKitScriptManager> to a <asp:ScriptManager> everything works fine except that the roundedCornersExtender wants the ToolKitScriptManager.
Before using toolkitscriptmanager control of ajaxcontroltoolkit 3.5 i was using scriptmanager and i have set the enablepagemethod = true then i can call the pagemethod asynchronously using javascript
[URL] For More Information see this link for pagemethods in ajax
But yesterday we updated our ajax dll to latest version which is 3.5.40412.0 and there they have said that use toolkitscriptmanager instead of scriptmanager so i used that. But now i am not able to use my page methods.
Its Saying AJaxControlToolKit is undefined :
[Code]....
I'm using a ScriptManager and including a webservice in the script generation. Upon calling the web service method via the javascript, I get the expected response except in IE 7/8. I get the error 'undefined' is null or not an object. I do not get this error in FireFox, Chrome and even Safari. The catch is, this is Microsoft's own generated code coming from the generated code from the script manager! This is the code that the error is thrown on:
[Code]....
I'm using Uploadify to upload some images with ASP.NET. I use Response.WriteFile() in ASP.NET to return the result of the upload back to JavaScript. As specified in the documentation I'm using onAllComplete event to check for response string from ASP.NET.
The problem is it that the alert(response); is always undefined in JavaScript.
JavaScript code as below:
$(document).ready(function() {
var auth = "<% = Request.Cookies[FormsAuthentication.FormsCookieName]==null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value %>";
$('#btnUpdateProfileImg').uploadify({
[Code]....
Reason for the FormsAuthenticationTicket object is to pass the authentication cookie though when using the Uploadify with Firefox.
I have seen many examples where Response.Write returns a value back to the onAllComplete event. But all I get is undefined. I have also tried to use Context.Response.Write, this.Response.Write, HttpContext.Current.Response.Write. They all return undefined.
PageMethods Is 'Undefined'' errorI am trying to call a c# function from javascript when the user navigates away from this page. I am using a master.page. I have this script on the page:
<script>
window.onbeforeunload = CallMe;
function CallMe() {
[code]...
I am trying to use page methods to call a function and I am getting a "PageMethods is undefinded" error. I have used them before whilst using C# but not VB so I'm wondering if my syntax is wrong as all examples I can find are C#.I am also wondering if it's because my scriptmanager is on the master page?I've read about this error everywhere but everything I have appears to be correct!
My code:
Part of Master Page
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnablePageMethods="true" >
</asp:ScriptManager>[code]....