Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Monday, 27 February 2012

Detect Click into Iframe using JavaScript


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Thursday, 20 October 2011

how to change textbox background color whenever validation fails using asp.net(custom validator)

I have a one requirement like changing the textboxes background whenever validation fails at that time I used the custom validator and JavaScript function to validate textboxes and change the textboxes background color for that write the following code in your aspx page

how to create watermark textbox using javascript

Introduction

Here I will explain how to create watermark textbox using JavaScript.

Description:

What is an application object and where we use application object in asp.net | application object sample using asp.net

What is an application object?

Application object is used to store the information and access variables from any page in application. Application object is same as session object only the difference is session object is used to maintain the session for particular user.

Monday, 17 October 2011

Simple AJAX Example


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

Set a single select, a multiple select, checkboxes and a radio button in jquery



<!DOCTYPE html>
<html>
<head>
  <style>

Use the function argument to modify the value of an input box. in jquery



<!DOCTYPE html>
<html>
<head>

Set the value of an input box. in jquery



<!DOCTYPE html>
<html>
<head>
  <style>

Get the current value of the first element in the set of matched elements in jquery


Hi in this article i explain about how to get the current value of the first element in the set of matched elements in jquery

Get the single value from a single select and an array of values from a multiple select and display their values using jquery



<!DOCTYPE html>
<html>
<head>
  <style>

Find the value of an input box using jquery keyup() function



<!DOCTYPE html>

<html>

<head>

<style>

Wednesday, 12 October 2011

how to bind data to DataGridView in windows form

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.DataSet
Public Class Form1

how to set connection string in vb.net

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.DataSet
Public Class Form1

Monday, 10 October 2011

Introduction to 3-Tier Architecture in .NET


Introduction

Here I will explain about uses of 3-Tier architecture and how to create 3-tier architecture for our project in asp.net 

Tuesday, 4 October 2011

page indexing and row databound in GridView

Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging

Monday, 3 October 2011

How to create custom paging in Repeater control?

The Repeater control in ASP.NET is used to show records from the database. The data display in the repeater control custom design. For example we cannot use custom design in grid view control, but it is possible to use

calling javascript function in vb net

Page.RegisterClientScriptBlock("SCRIPTNAME","<script language='javascript'>compute();</script>")

Timeout in javascript

Timeouts are like a timer. It can allow you to execute a section of code after a specified amount of time has passed. If you have viewed this page for 30 seconds, you have probably noticed a working example of this. Here is the code used : 

Using timeouts in JavaScript

Now and again it can happen that you want to time some task on your web page. For example you want to display the current time value on your site. In this case you need to update your page in every seconds. Don't worry! This task is quite simple using JavaScript. 

Friday, 30 September 2011

Javascript date objects

javascript date and time object

The Date object is useful when you want to display a date or use a timestamp in some sort of calculation. In Java, you can either make a Date object by supplying the date of your choice, or you can let JavaScript create a Date object based on your visitor's system clock. It is usually best to let JavaScript simply use the system clock.