62,268
社区成员
发帖
与我相关
我的任务
分享
void CustomersGridView_RowUpdating(Object sender, GridViewUpdateEventArgs e)
{
// Iterate through the NewValues collection and HTML encode all
// user-provided values before updating the data source.
foreach (DictionaryEntry entry in e.NewValues)
{
e.NewValues[entry.Key] = Server.HtmlEncode(entry.Value.ToString());
}
}
// Find control on page.
Control myControl1 = FindControl("TextBox2");
if(myControl1!=null)