Prev | Current Page 194 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

NET State Management




OnClick="buttonToggle3d_Click" />



118 CHAPTER 3 ?–  ASP.NET S TATE MANAGEMENT
Height="18px" Enable3D="False" EnableViewState="False">I
support control state





Width="159px" Height="16px"
Enable3D="False" EnableViewState="False">I don't!














Listing 3-12. The TextBox3DControlStateDemo Web Form .aspx File
using System;
namespace ControlsBook2Web.Ch03
{
public partial class TextBox3DControlStateDemo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
LabelViewState.Text = "ViewState Enabled = " +
Textbox3CtrlState.EnableViewState.ToString();
}
protected void buttonToggle3d_Click(object sender, EventArgs e)
{
Textbox3CtrlState.


Pages:
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206