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.
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.
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:
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() {
I've installed Visual Web Developer 2010 Express on a Windows XP Pro PC. IIS is NOT installed yet. I am just evaluating this now, and the built in web server works fine for now.
I've followed these very basic steps and I'm stuck with this error:
Error WebForm_PostBackOptions is undefined
I am trying to add a RequiredFieldsValidator control to the page. Here are the steps I followed...
1- Menu options: File -> New Web Site
2- ASP.NET Empty Web Site
3- Website -> Add new item
4- Select Web Form with Place Code in separate file checked. Master page not checked.
5- No changes to the web.config file
6- I added a couple text boxes and labels to the page and a button.
7- If I click the button now, no problem. The page submits and is displayed with the information entered in the text box fields.
8- Add a RequiredFieldsValidator next to the first text box.
9- I set the ErrorMessage to some text
10- I set the ControlToValidate to the first text box's ID
11- I save then run with CTL + F5
12- The page is displayed in IE 7. I hit the Submit button and I get the popup error described above.
I used the Web Platform Installer for the installation. Everything went fine. All other aspects of my development and testing have been fine. This is the first major roadblock I hit. I think it has something to do with a configuration setting in the web.config file, but I do not know what setting to add/change.
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.
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:
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.
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")%>';
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.
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:
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.
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.