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
Showing posts with label OOPS. Show all posts
Showing posts with label OOPS. Show all posts
Thursday, 20 October 2011
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>
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
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
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
Friday, 30 September 2011
Get Hour, Second and Minute from Current time (VB.net)
<script language="vb" runat="server">
Sub Page_Load()
Sub Page_Load()
Get Hour from DateTime
Imports System
Public Class Greeting
Shared Sub Main()
Dim dtCurrent As System.DateTime
Dim iHour As Integer
dtCurrent = dtCurrent.Now()
iHour = dtCurrent.Hour
If (iHour < 12) Then
Console.Writeline("Good Morning!")
End If
If (iHour >= 12) And (iHour < 18) Then
Console.WriteLine("Good Afternoon!")
End If
If (iHour >= 18) Then
Console.WriteLine("Good Evening!")
End If
End Sub
End Class
Public Class Greeting
Shared Sub Main()
Dim dtCurrent As System.DateTime
Dim iHour As Integer
dtCurrent = dtCurrent.Now()
iHour = dtCurrent.Hour
If (iHour < 12) Then
Console.Writeline("Good Morning!")
End If
If (iHour >= 12) And (iHour < 18) Then
Console.WriteLine("Good Afternoon!")
End If
If (iHour >= 18) Then
Console.WriteLine("Good Evening!")
End If
End Sub
End Class
Mid Function
The Mid function returns a specified number of characters from a string. The Mid function returns the portion of the designated string for a designated length starting from any position in the string. The Function will return the requested number of characters from a string. The Length of Characters To Pull parameter is optional.
Friday, 23 September 2011
OOPs Interview Questions
Q: How will you define a CLASS ?
A: All classes in Visual Basic. NET are defined in a .VB file (as oppose to .CLS file in vb6), Also .VB file may contain one or more classes. The basic syntax of a class is as follows:
A: All classes in Visual Basic. NET are defined in a .VB file (as oppose to .CLS file in vb6), Also .VB file may contain one or more classes. The basic syntax of a class is as follows:
Subscribe to:
Posts (Atom)