![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET
AngstXing
这个作者很懒,什么都没留下…
展开
-
在后台调用FormView控件并赋值
(this.FormView1.FindControl("BeginDateTextBox") as TextBox).Text = DateTime.Now.ToString("yyyy-MM-dd"); (this.FormView1.FindControl("EndDateTextBox") as TextBox).Text = DateTime.Now.AddDays(7).ToStr原创 2012-05-27 23:41:54 · 631 阅读 · 0 评论 -
获取web 用户控件里的treeview 值
public event EventHandler CategorySelected = null; protected void TreeViewCategory_SelectedNodeChanged(object sender, EventArgs e) { if (this.TreeViewCategory.SelectedNode != null)/转载 2012-05-27 01:12:00 · 379 阅读 · 0 评论 -
保存图片到数据库
protected void ButtonAdd_Click(object sender, EventArgs e) { if (this.UCCategoryTree1.SelectedCategoryID == -1) { this.Literal1.Text = "请选择商品类别"; retur转载 2012-05-27 01:15:04 · 401 阅读 · 0 评论 -
调用用户控件
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class Admin_UserControls_UCBulletinCat转载 2012-05-27 23:45:25 · 265 阅读 · 0 评论 -
时间字符的在控件里的使用格式
' /> --TextBox控件--GridView控件生效日期:--Repeater控件原创 2012-05-31 00:56:15 · 371 阅读 · 0 评论 -
Repeater数据控件的嵌套
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCCategories.ascx.cs" Inherits="UserControls_UCCategories" %><%@ Register Src="~/UserControls/HelperUCCategoriesByParrent.ascx" TagNam原创 2012-06-08 00:09:18 · 407 阅读 · 0 评论 -
绑定控件treeview
public class TreeBuilder{ public static StoreDataSetTableAdapters.CategoriesTableAdapter DA;//调用一个数据集 static TreeBuilder() { DA = new StoreDataSetTableAdapters.CategoriesTabl原创 2012-05-21 00:43:02 · 327 阅读 · 0 评论