tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 78

Professional in C# and Visual Basic Part 78. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 15 Personalization html xmlns http 1999 xhtml head runat server title Storing Personalization title head body form id form1 runat server p First Name asp TextBox ID TextBox1 Runat server asp TextBox p p Last Name asp TextBox ID TextBox2 Runat server asp TextBox p p Age asp TextBox ID TextBox3 Runat server Width 50px MaxLength 3 asp TextBox p p Are you a member asp RadioButtonList ID Radiobuttonlist1 Runat server asp ListItem Value 1 Yes asp ListItem asp ListItem Value 0 Selected True No asp ListItem asp RadioButtonList p p asp Button ID Button1 Runat server Text Submit OnClick Button1_Click p hr p asp Label ID Label1 Runat server asp Label p form body html C @ Page Language C script runat server protected void Button1_Click object sender EventArgs e if Stored information includes p First name br Last name br Age br Member br Last visited else You must be authenticated script 727 Chapter 15 Personalization This is similar to the way you worked with the Session object in the past but note that the personalization properties you are storing and retrieving are not key based. Therefore when working with them you do not need to remember key names. All items stored by the personalization system are type cast to a particular .NET data type. By default these items are stored as type String and you have early-bound access to the items stored. To store an item you simply populate the personalization property directly using the Profile object To retrieve the same information you simply grab the appropriate property of the Profile class as shown here The great thing about using the

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.