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
‹
›
Home
View web version
No comments:
Post a Comment