or
| Message: Sys.InvalidOperationException: Two components with the same id 'dnn_ctr501_Schedule_RadWindow1_C_ScheduleControl1_dpStart_dateInput' can't be added to the application. |
| Line: 4044 |
| Char: 59 |
| Code: 0 |
| URI: http://local.com/ScriptResource.axd?d=qr-JWAPlSw_PG_fBRvJ-SiEuS4djBj_SaOoatAKMs3TZe3kUSpNeAqXh25Mjn4IhJlouOn480u1-9iYlbSTecUf0MB7rsMw0M1hN9CF4krQ1&t=ffffffffec2d9970 |
| HTML |
| <telerik:RadGrid ID="grid_utenti" runat="server" AllowAutomaticInserts="false" |
| AllowAutomaticUpdates="false" |
| OnNeedDataSource="grid_utenti_NeedDataSource" |
| OnItemCommand="grid_utenti_ItemCommand"> |
| CS |
| protected void grid_utenti_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| grid_utenti.DataSource = call to a method that returns a dataset; |
| } |
| protected void grid_utenti_ItemCommand(object sender, GridCommandEventArgs e) |
| { |
| if (e.CommandName == RadGrid.PerformInsertCommandName || e.CommandName == RadGrid.UpdateCommandName) |
| { |
| try |
| { |
| //call to method that insert/update |
| } |
| catch(Exception exc) |
| { |
| e.Canceled = true; |
| } } |
Thank you
Alessandra