Showing posts with label State Management. Show all posts
Showing posts with label State Management. Show all posts

Friday, 11 November 2011

State Management

What is ViewState?

ViewState allows the state of objects (serializable) to be stored in a hidden field on the page.  ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.  ViewState is used the retain the state of server-side objects between postabacks.

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>

Thursday, 13 October 2011

What is view state?.where it stored?.can we disable it?

The web is state-less protocol, so the page gets instantiated,

executed, rendered and then disposed on every round trip to the server.

The developers code to add "statefulness" to the page by using

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

Friday, 30 September 2011

Get Hour, Second and Minute from Current time (VB.net)

<script language="vb" runat="server">

    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 < 12Then
            Console.Writeline("Good Morning!")
        End If
        If (iHour >= 12And (iHour < 18Then
            Console.WriteLine("Good Afternoon!")
        End If
        If (iHour >= 18Then
            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.