1. get API key from google.com All Maps API applications* should load the Maps API using an API key. Using an API key enables you to monitor your application’s Maps API usage, and ensures that Google can contact you about your application if necessary. If your application’s Maps API usage exceeds the Usage Limits, you must … Continue reading
The Ajax Control Toolkit contains a rich set of controls that you can use to build highly responsive and interactive Ajax-enabled ASP.NET Web Forms applications. Follow the steps below to download and start using the Ajax Control Toolkit with Visual Studio: Download the Ajax Control Toolkit The first step is to download the Ajax Control … Continue reading
1. Create New Web Project > Using ASP.NET Ajax-Enable WebSite if did’t using this choice, asp.net will getting error ‘System.Web.UI.ScriptManager’ is not defined 2. Add Reference for AjaxControls.dll and AjaxControlToolkit.dll 3. HTML page : <%@ Page Language=”VB” AutoEventWireup=”false” CodeFile=”simplecb.aspx.vb” Inherits=”simplecb” %> <%@ Register Assembly=”AjaxControls” Namespace=”AjaxControls” TagPrefix=”cc2″ %> <%@ Register Assembly=”AjaxControlToolkit” Namespace=”AjaxControlToolkit” TagPrefix=”cc1″ %> <!DOCTYPE html PUBLIC … Continue reading
Title TestDetailsPattern Title Expression ^\$[0-9]+(\.[0-9][0-9])?$ Description Validates a dollar amount including a dollar sign and 2 decmals. The decimal and cents are optional. Matches $1.50 | $49 | $0.50 Non-Matches 1.5 | $1.333 | this $5.12 fails Title TestDetailsPattern Title Expression ^(\d{1,3}'(\d{3}’)*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{3})?)$ Description This regex match numeric data in the following format: thousands are separated by (‘) apostrophe, decimal places are separated by … Continue reading
Google Analytics is easy to set up and it won’t cost you a dime. More importantly, you can have lots of great data about your visitors tracking within the hour. Google Analytics and most other analytics applications are installed by pasting a few snippets of javascript code in the footer of the site. If you … Continue reading
Input text for money currency very important, but that need write and change on key press. This problem can be solve using javascript, let’s read this sample : <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /> <script language=javascript> function currencyFormat(fld, milSep, decSep, e) { var sep = 0; var key = ”; var i = … Continue reading
Calling object name using javacript like document.getElementById(“id”).value or document.Form1.value will have problem if that object not available. How do checking the object? This is sample checking : if(null !== x && ‘object’ == typeof(x)) { alert(“Hey, It’s an object or an array; good enough!”); } if available return of alert(obj); will be “[object]” … Continue reading