· Web form pages are HTTP-Based, they are stateless, which means they don’t know whether the requests are all from the same client, and pages are destroyed and recreated with each round trip to the server, therefore information will be lost, therefore state management is reall...
· 在这里重要的不是要说明droplist再datagrid中的使用,而是主要看其中语句的几个特殊的用法,我会有注明的
Using DropDownList control in DataGrid
By Eric ZhengWhen I was developing a web application couple days ago, I found some interesting things about the datagrid, I want to share ...
· using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;namespace ImageZoomer
{
/// <summary>
///
/// </summary>
//枚举类型定义,定义图象的四种翻转方式
publi...
· Set the InitialFocus for an ASP.NET WebForm
The PageUtil class has a static method SetInitialFocus(control) which can be used to generate a JavaScript for an ASP.NET page (WebForm), which sets the focus on a (given) control. private void Page_Load(object sender, Syst...
· 以前在asp很难实现代码重用,asp.net很好的解决了这个问题,以下是我写的DataGrid,继承DataGrid,加进了升降序/全并单元格/自动求和功能,原理很简单,但很好的实现的代码重用.
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Data;
...
· 以前的的发送消息按钮事件改写如下:
'/////////////////////转到发送即时消息页面
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim i, j As Integer
j = 0
Dim tostu_id As String = ""...