Why is FilteredTextBoxExtender not working if placed in CS
-
In my code I added
TextBox txtOverschrijding = new TextBox(); txtOverschrijding.ID = "txtOverschrijding"; txtOverschrijding.CssClass = "DivWidth100px"; grdAlarmRegels.FooterRow.Cells[5].Controls.Add(txtOverschrijding); AjaxControlToolkit.FilteredTextBoxExtender ftbe = new AjaxControlToolkit.FilteredTextBoxExtender(); ftbe.FilterType = AjaxControlToolkit.FilterTypes.Custom; ftbe.FilterMode = AjaxControlToolkit.FilterModes.ValidChars; ftbe.ValidChars = "1234567890."; ftbe.TargetControlID = "txtOverschrijding";
If I look in the gridview in the footerrow. I see the TextBox but the filtering is not working. IS there a reason or have I forgot something?
In Word you can only store 2 bytes. That is why I use Writer.
-
In my code I added
TextBox txtOverschrijding = new TextBox(); txtOverschrijding.ID = "txtOverschrijding"; txtOverschrijding.CssClass = "DivWidth100px"; grdAlarmRegels.FooterRow.Cells[5].Controls.Add(txtOverschrijding); AjaxControlToolkit.FilteredTextBoxExtender ftbe = new AjaxControlToolkit.FilteredTextBoxExtender(); ftbe.FilterType = AjaxControlToolkit.FilterTypes.Custom; ftbe.FilterMode = AjaxControlToolkit.FilterModes.ValidChars; ftbe.ValidChars = "1234567890."; ftbe.TargetControlID = "txtOverschrijding";
If I look in the gridview in the footerrow. I see the TextBox but the filtering is not working. IS there a reason or have I forgot something?
In Word you can only store 2 bytes. That is why I use Writer.
-
You have added the textbox txtOverschrijding to the grdAlarmRegels.FooterRow.Cells[5].Controls collection. You also need to the FilteredTextBoxExtender 'ftbe' to the same Controls collection. Hope this will help you.
Oh yes...this helps thank you very much
In Word you can only store 2 bytes. That is why I use Writer.