WinTechPost
Thursday, September 14, 2006
How to access control in FormView
How to access control in FormView
: "TextBox DataTitle = (TextBox)DataSourceItemView.FindControl('DataTitle');"
=================
protected void FormView1_ItemCreated(object sender, EventArgs e)
{
if (FormView1.CurrentMode == FormViewMode.Insert)
{
TextBox txtName =
FormView1.Row.FindControl("CategoryNameTextBox") as TextBox;
txtName.Text = "New Name...";
}
}
==================
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Zakrak
View my complete profile
Blog Archive
►
2008
(3)
►
September
(2)
►
April
(1)
►
2007
(11)
►
October
(1)
►
September
(3)
►
June
(1)
►
April
(2)
►
March
(2)
►
January
(2)
▼
2006
(22)
▼
September
(1)
How to access control in FormView
►
August
(2)
►
July
(9)
►
June
(2)
►
May
(1)
►
April
(2)
►
March
(2)
►
January
(3)
►
2005
(71)
►
November
(2)
►
October
(6)
►
September
(3)
►
August
(3)
►
July
(1)
►
June
(1)
►
May
(5)
►
April
(3)
►
March
(10)
►
February
(10)
►
January
(27)
No comments:
Post a Comment