asp.netѧϰʱ·¢ÏÖÈ¡²»µ½Îı¾¿òµÄÖµ£¿
ÎÒн¨µÄÒ»¸ö .ascxÎļþ£¬ÔÚÀïÃæ¼ÓÁ˼¸¸öÎı¾¿ò£¬µ«ÎÒÈ¡²»µ½Öµ£¬ÊÇÔõô»ØÊ£¬Ó¦¸ÃÔõôȡֵ?ÒÔÏÂÊÇÎҵĴúÂë:
C# code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Web.test.Model;
public partial class editPage : System.Web.UI.UserControl
{
public string id
{
set { this.txtId.Text = value; }
get { return this.txtId.Text; }
}
public string title
{
set { this.txtTitle.Text = value; }
get { return this.txtTitle.Text; }
}
public string keyWord
{
set { this.txtKeyword.Text = value; }
get { return this.txtKeyword.Text; }
}
public string descript
{
set { this.txtContent.Text = value; }
get { return this.txtContent.Text; }
}
Article a = new Article();
protected void Page_Load(object sender, EventArgs e)
{
string id=Request.QueryString["ID"];
this.a = MoreTableDAO.findDetailByID(Convert.ToInt32(id));
txtId.Text = Convert.ToString(a.articleId);
txtTitle.Text = this.a.title;
txtKeyword.Text = this.a.keyWord;
txtContent.Text = this
Ïà¹ØÎÊ´ð£º
ÎÒÔÚ Page_Load ÀïдÁË
if(!IsPostBack){
GridView1.DataSource=GroupManager.GetGroups();//GetGroups ·µ»ØµÄÊÇ IList<Group>
GridView1.DataBind();
}
¿ÉÎÒÔÚ Submit_Click Àïд´ú ......
ÎÒÏëÿÌì°ëÒ¹×Ô¶¯Éú³É¾²Ì¬Ò³Ãæ¡£
ÔõôʵÏÖÕâ¸ö·½·¨¡£
ÄÇλ¸ßÊÖÖªµÀ£¬Çë´Í½ÌÏ¡£
д·þÎñ!
Ôõôд
д·þÎñ ¿ªÏß³Ì Ð´Îļþ ÈëÊý¾Ý¿â
д·þÎñ»òÕßÓÿªÔ´µÄµ÷¶È¿ò¼ÜQuartz.net
½¨ÒéÓúóÕߣ¬ºóÕßÌṩ±È½ÏÁé»îµ ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
ÎÒÔÚ×Ô¼ºµÄ»úÆ÷ÉÏдµÄAsp.net³ÌÐò£¬ÔÚ±ðÈ˵ĻúÆ÷ÉÏÔõôÈñð·ÃÎÊ¡£
°Ñ´úÂë·Åµ½Ò»¸öÖ§³Ö.NETµÄ¿Õ¼äÉÏ ¸øÈËÓòÃû¾Í¿ÉÒÔ·ÃÎÊÁË
btµÄ×ö·¨.µãµ÷ÊÔºó²»¶¯..
±ðÈËÓà http://ÄãµÄIP:¿´Ò»Ïµ÷ÊÔÓõĶ˿Ú/
¼´¿É·ÃÎÊ
ip+ ......