-->

Thursday, February 4, 2016

How to use JavaScript in Master Page ContentPlace Holder in ASP.NET

In this article, I will explain you, How to use JavaScript code in ContentPlaceHolder of Master page. If your web page (Web Form=.aspx page)  is inherit from master page then you must to use ClientID of the control to get the val...

Friday, June 19, 2015

Print the asp.net webpage using button

Introduction Today i am talking about printing, and how to print the content or you can say selected content in asp.net. If you have a webpage and you want to print this then you have to choose command key (ctrl+p) for that. Also...

Monday, April 6, 2015

Collapse or Expand slide using Java Script

<!DOCTYPE html> <html> <head> <style type="text/css"> div#box1 {     background-color : Gray;     height:200px;     width : 200px;     overflow : hidden ; } </style> <script type ="text/javascript">     function slideopen(ele) ...

Element fadeout, FadeIn using Java Script

<!DOCTYPE html> <html> <head> <style type="text/css"> div#box1 {     background-color : Gray;     height:200px;     width : 200px; } </style> <script type ="text/javascript">     function fadeout(ele) {         var elem = docum...

Example of Navigator object in Java Script

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title>Navigator objects</title> </head> <body> <s...

Required validation in Java Script

<!DOCTYPE html> <html> <head>     <title>encode and decode</title>     <script type="text/javascript" >         function validation() {             var val = document.getElementById('in');             if (val.value.length == 0) ...

Compare validation using Java Script

<!DOCTYPE html> <html> <head>     <title>encode and decode</title>     <script type="text/javascript" >         function validation() {             var firstvalue = document.getElementById('first');              var secondvalue ...

How to add TextBox value in Java Script

<!DOCTYPE html> <html> <head>     <title>encode and decode</title>     <script type="text/javascript" >         function validation() {             var firstvalue = document.getElementById('first');             var secondvalue...

Example of Count Down timer in Java Script

<!DOCTYPE html> <html> <head>     <title>encode and decode</title>     <script type="text/javascript" >         function Timercount(second,outwin) {                       var stat = document.getElementById(outwin);             ...

How to change background-color of element using Java Script

<!DOCTYPE html> <html> <head> <style type="text/css"> div#box1 {     background-color : Gray;     height:200px;     width : 200px; } </style> <script type ="text/javascript">     function backcolo(ele, clr) {         var elem ...

Object properties and Methods in Java Script

These objects all have particular properties and methods that are associated with their respective objects and they can be accessed and manipulated. A property of an object is a predefined variable that you can assign a value to ...

Function in Java Script

A function is a process that incorporates a sequence of java script statement to accomplish a task. To integrate a function into document you have to first define it within a SCRIPT, which is contained in the in the head element...

Example of inline scripts in java script

When scripts are executed from top to bottom, means your script appear in both <head> as well as <body> section. No one scripts is executed inside the tag known as inline scripts. Let’s take a simple example. <!DOCTYPE html P...

How to print date in Java Script

Date object enables Java Script programmers to create an object that contains information about a particular date and provides a set of methods to work with that information. To create an instance of the date object, use the key...

Operators and Expressions in Java Script

An operator is used to transform one or more values into a single resultant value. The values to which the operator is applied is referred to as operands. A combination of an operator and its operands is referred to as an express...

Data Types and Literal in JavaScript

JavaScript support four primitive types of values and supports complex types such as objects and arrays. Primitive type are types that can be assigned a single literal value such as number, string or boolean value. Literal are f...

Java Script Advantages

Embedded within HTML  : Java Script does not require any separate editor for programs to be written, edited or compiled. It can be written in any text editor like Notepad, along with appropriate HTML tag and saved as filename.ht...

Sunday, April 5, 2015

Functions Provided by Java Script

Java Script can put dynamic text into an HTML page- using HTML, you can produce only static pages but javascript add dynamic functionality in HTML. A javascript statement like this: document.write("<h1>"+name+"</h1>") can write ...

Introduction to Java Script

Java Script is used in many of Web pages to improve the design, validate forms and create cookies. JavaScript is the popular scripting language on the internet, and works in all major browser, such as Internet Explorer, Opera a...

Writing Javascript into HTML

JavaScript syntax is embedded into HTML file. A Browser reads HTML files and interprets HTML tags. Since all JavaScripts need to be included as an integral part of an HTML document when required, the browser needs to be informed ...
© Copyright 2013 Computer Programming | All Right Reserved