各位编友,那asp的问题解决了
(2009-03-31 20:28:28)
下一个
http://geekswithblogs.net/sgreenberger/archive/2004/11/12/14871.aspx
看看这个link就行了。
C# code
protected void CheckBox_GoodReceived_Edit_CheckedChanged(object sender, EventArgs e)
{
CheckBox thisCheckBox = ((CheckBox)sender);
if (thisCheckBox.Checked)
{
((TextBox)(thisCheckBox.NamingContainer.FindControl(TextBox_GridView_GoodReceivedDate))).Text = DateTime.Now.ToString(dd-MMM-yyyy);
}
else
{
((TextBox)(thisCheckBox.NamingContainer.FindControl(TextBox_GridView_GoodReceivedDate))).Text = ;
}
}