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...
Thursday, February 4, 2016
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) ...