我使用这个:http://www.asp.net/ajaxlibrary/Ajax ControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx
In a column I have multiple textboxes binded to some columns from database. My goal is to get the value from those textboxes that are maskedit. Since there are 4 controls in the column I m trying to get the values like this:
String firstTXT = ((TextBox)(row.Cells[5].Controls[1])).Text;
String SecondTXT = ((TextBox)(row.Cells[5].Controls[2])).Text;
I can get the value from the firsttexbox without any error ( but it s also masked ) .
and when I Try to get from the second I get :
Unable to cast object of type AjaxControlToolkit.MaskedEditExtender to type System.Web.UI.WebControls.TextBox
.
有解决的机会吗? 谢谢。