趋势
点击量
View State
最近
 
Read More
2018年1月25日

ViewState management for dynamically loaded UserControls

Download source code – 13 KB Introduction

In many of our business ASPX applications, there is a need for special UserControls that perform specific functionalities so that they can be easily re-used in the entire application. There are two ways we can use a UserControl: either we drag it onto the form, or we load it dynamically through the use of [...]

6
 
Read More
2018年1月25日

Save ViewState on the File System

Download source code – 207 KB Introduction

One disadvantage of the ViewSate is it adds extra kilobytes of data to the payload. To overcome this disadvantage, it can be saved on the server.

Strategy

There are three options to save the ViewState on the server.

MS SQL Server File System Memory

Using MS SQL Server is expensive. If you do not have MS SQL Server, you [...]

9
 
Read More
2018年1月25日

GridView within GridView

Introduction

Hello, readers.

While building a web project, we may often come across the situation of displaying records or other types of data. We can do it in the best way by using DataGrid/GridView. It’s very simple and requires only a knowledge of C#, of web application building and of SQL 2005.

“A picture is worth 1000 words!!” so I have explained a [...]

8
 
Read More
2018年1月25日

Retaining State for Dynamically Created Controls in ASP.NET applications

Introduction

When dynamically adding controls to an ASP.NET page in runtime the object references are lost at postback because they have no handle in the codebehind. The values entered by the user is not availible when accessing these objects after postback, and they seem empty. This article describes how to use ViewState to recreate and [...]

5
 
Read More
2018年1月25日

ViewState management using AOP – PostSharp4ViewState

Introduction

PostSharp4ViewState is a plug-in for the PostSharp[^] AOP framework by Gael Fraiteur. Its goal is to simplify state management in ASP.NET pages and controls using a declarative programming concept.

How do I use it?

Whenever you want to store some value between postbacks, you decorate it with an attribute – namely PersistAttribute. You can store both property and [...]

7
分类热度
Dev
C#
Intermediate
Windows
.NET
Visual-Studio
Web开发
桌面开发
ASP.NET
Beginner
WinXP
Win2K
Javascript
.NET2.0
VC6
HTML
MFC
C#2.0
Architect
Advanced
第三方产品
VS2005
.NET1.1
VB
移动开发
VS.NET2003
产品展示
Win2003
Design
C#3.0
Wiki.ASP.NET articles
Mobile
企业系统
.NET3.5
平台,框架&库
开发生命周期
Ajax
.NET1.0
VC7
.NET Framework
VS2013
XML
WebForms
ASP.NET 控件
Android
Vista
.NET3.0
云计算
常规阅读
Ajax
最新评分
无内容,请浏览其它分类
十佳
点击量
无内容,请浏览其它分类
周最高分
无内容,请浏览其它分类
十佳
点击量
 
1
XP Style Navigation Bar Server Control with collection property and embedded resources
 
2
Bootstrap Persian DateTimePicker
 
3
QUIZ Application With ASP.NET MVC 5
 
4
Using the FlowLayoutPanel and Reordering with Drag and Drop
 
5
Android Recycler View with Spinner Item Change Selection and Update UI