摘要:
获取session:TextBox1.Text = Convert.ToString(Session["value"]);设置session:Session["value"] =TextBox1.Text;获取cookie:Label1.Text = Request.Cookies["name"].Value;设置cookie:Response.SetCookie(new HttpCookie("name",TextBox1.Text)); 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using repeater练习.DataSet1TableAdapters;using System.Web.UI.HtmlControls;namespace repeater练习{ public partial class repeater练习 : System.Web.UI.Page... 阅读全文
摘要:
namespace repeater{ public partial class itemdatabound : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataRowView drv = (DataRowView)e... 阅读全文
摘要:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="动画效果.aspx.cs" Inherits="repeater.动画效果" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html 阅读全文
摘要:
namespace 友情链接练习{ public partial class link : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ListView1_ItemInserting(object sender, ListViewInsertEventArgs e) { DropDownList ddl = (DropDownList)e.Item.F... 阅读全文
摘要:
namespace dropdownlist{ public partial class dropdownlist : System.Web.UI.Page { protected void ListView1_ItemUpdating(object sender, ListViewUpdateEventArgs e) { DropDownList ddl=(DropDownList)ListView1.Items[e.ItemIndex].FindControl("DropDownList1"); ... 阅读全文
摘要:
namespace ListView{ public partial class listview练习 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ListView1_ItemDataBound(object sender, ListViewItemEventArgs e) { //if (e.Item.ItemType == ListViewIt... 阅读全文