Month: November 2011

Posted in Asp.Net Uncategorized

Resize image while uploading image

Namespace required: using System.IO; using System.Drawing; using System.Drawing.Drawing2D; — .cs page coding on Save button—————– // Create…

Posted in JavaScript Uncategorized

How to remove white space from TEXTAREA?

function removeTextAreaWhiteSpace() { var myTxtArea = document.getElementById(‘txtQuestion’); myTxtArea.value = myTxtArea.value.replace(/^\s*|\s*$/g, ”); } Call above function “removeTextAreaWhiteSpace()” onfocus…

Posted in JavaScript Uncategorized

Change body background on Page Reference

Call javascruot function on body load event… e.g. ” var totalCount = 5; function Test() { //…

Posted in JavaScript Uncategorized

JQuery Validations

http://www.position-relative.net/creation/formValidator/ Above link includes all validation. Its so pretty web site look like more pretty. Download: https://github.com/posabsolute/jQuery-Validation-Engine…

Posted in JavaScript Uncategorized

Get URL Parameters (QueryStrings) using Javascript

Get URL Parameters (QueryStrings) using Javascript Nearly all server-side programming languages have built-in functions to retrieve querystring…