Tag: asp.net

Error with JQuery Mobile

Below, I am receiving this error: I have narrowed the problem code to JQuery Mobile 1.0 or greater and Asp.NET ScriptManager. I added a new Web Forms Project to Visual Studio 2012 and included the code below: <%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”Default.aspx.cs” Inherits=”WebApplication1.Default” %> <!DOCTYPE html> <html xmlns=”http://www.w3.org/1999/xhtml”> <head runat=”server”> <title></title> <link rel=”stylesheet” href=”http://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.min.css” /> […]

how to parse a “dd/mm/yyyy” or “dd-mm-yyyy” or “dd-mmm-yyyy” formatted date string using JavaScript or jQuery

Possible Duplicate: Extending JavaScript's Date.parse to allow for DD/MM/YYYY (non-US formatted dates)? Convert dd-mm-yyyy string to date Entered a date in textbox, for example: 05/09/1985, and I wanted to convert it to 05-Sep-1985 (dd-MMM-yyyy) format. How would I achieve this? Note that the source format may be dd-mm-yyyy or dd/mm/yyyy or dd-mmm-yyyy format. Code Snippet: […]

IE10 sending image button click coordinates with decimals (floating point values) causing a ParseInt32 FormatException

It seems like ASP.NET 4.0 is not prepared to handle ImageButton events triggered by Internet Explorer 10. The problem is that IE10 sends the image click coordinates as double values (with decimals), and ASP.NET tries to parse them as integers, presenting the following type of error: System.Web.HttpUnhandledException (0x80004005): Exception of type ‘System.Web.HttpUnhandledException’ was thrown. —> […]

Why does the javascript onchange event not fire if autocomplete is on?

I have a textbox with an onchange event. Why does this event not fire when the user uses the autocomplete feature to populate the textbox? I am working with Internet Explorer. Is there a standard and relatively simple solution to workaround this problem, without me having to disable the autocomplete feature?

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.”

I have couple of update panels and jquery tabs on page. And also I am loading couple user controls on update panels. After user waited for couple of minutes (not checked the time approx 40 mins). when user send request from submit button it is giving below error? ‘Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while […]

Disable ASP.NET validators with JavaScript

Does anyone know how to disable an ASP.NET validator using JavaScript? I’m using javascript style.display = ‘none’ to disable parts of a web page. However these disabled parts have asp.net validators that are still firing and I need to disable then without doing a round trip to the server. Thanks.

How to check Page.Validate() on client side (JavaScript) in ASP.Net?

I want to check page validation on client side, like Page.Validate() but it’s a server side method. Is there any client side function which can work like Page.Validate() with JavaScript?

Document.Ready() is not working after PostBack

I have a page that contains a user control within an update panel. $(document).ready(function() ) { is called and executes the code correctly when the page firsts loads but if the user clicks a button (within the user control), the document.ready() doesn’t get called (document.load, onload also don’t work) I have researched this on the […]

Unobtrusive Javascript rich text editor?

We’ve used the no-longer-supported RichTextBox control as part of our (ASP.NET-based) CMS for a long time, and we’d like to replace it with something lighter-weight and with better cross-browser support. We were originally looking at various ASP.NET components, but I’m wondering if we’d be better off just using an open-source, all-Javascript solution instead. I’m a […]

Change visibility of ASP.NET label with JavaScript

I have a ASP.NET page with an asp:button that is not visible. I can’t turn it visible with JavaScript because it is not rendered to the page. What can I do to resolve this?