Why onfocusout event is not firing in firefox I was using onfcousout event of text box to fire some javascript those were firing in IE but were not firing in Firefox. Then I found that onblur is firing on both Internet Explorer. So do not use onfocusout event instead use onblur. Tested on I.E 7.0 [...]
Json, Jquery, $.ajax(), asp.net and c# to get ajaxed data table rows passing multiple parameters I got a request from my client that before creating user they want to see the list of existing users with the like first name and last name. I didn’t want to use asp.net ajax update panel and full post [...]
How to Use JQuery $.ajax()Â (AJAX) with Asp.net Drop down list’s “onchange” event and pass selected value as parameter. To perform above you need Jquery library, click on downloads to see where you can get Jquery. Following is the working example in which I am selecting a role from asp.net dropdown list and for that [...]
Every one knows the power of .net clr (Dot Net Common Language Runtime). Following are are two functions which are being used by me in sql server 2005. RegexMatch function returns the true false (0/1); it takes two parameters input as characters or string and Regular expression to match. RegexRpelace function replaces the carachters passed [...]
I came accross a problem while I was trying to Get ASP.NET Radiobutton list Text using JQuery. I used the JQuery method $(‘#<%=RadioButtonList1.ClientID%>’).val(); but it was not returning selected value though same works for asp.net Dropdown list then I started searching over the internet but didn’t find any solution. After searching for an hour I [...]
Removes extra space from the string using Regular expression. public static readonly RegexOptions Options =         RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline; public string RemoveExtaSpaces(string text) { Regex regex = new Regex(@”\s{2,}”, Options); text = regex.Replace(text.Trim(), ” “); //This line removes extra spaces and make space exactly one. //To remove the space between the end of a word [...]
We are using asp.net check box server side control in ajax update panel. These are bind to SQS server. We were facing a big problem. There were some busineess rule which were implementing on Post back i.e. on selection of check box from list other check box were getting disabled. We wrote some server side script [...]
I am using Modal popup Extender in my project which after click save button appears and takes Reason for doing that action as an input. I am using a text box labelling Reason for change; if that box is empty I am telling my transaction to roll back. So to make changes appear in database [...]
I was using following code to show Popup window //opens a pop up window function PopupWindow(url) { mywindow =window.open( url, “Popupwindow”, “location=1,status=0,scrollbars=1,width=800, height=600,resizable=1,toolbar=0″ ) Above code was showing Popwindow then Requirement changed and we needed a Modal popup Window. Then I found followin code which provides required functionality. //opens a pop up window function PopupWindow(url) { var [...]
Regular expression: Regular Expression is a great way to manipulate strings for example matching, finding, validating Data, Specailly string manipulaion becames handy while we use reqular expression. We can use Regular expression on both Serer and client side. We do use it with asp.net validation controls. Charcther matching: . ^ $ * + ? { [...]