or



<asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager><rad:RadInputManager ID="ram" runat="server"> <rad:MaskedTextBoxSetting BehaviorID="phone" Mask="(###) ###-####"> <TargetControls> <rad:TargetInput ControlID="txtPhone" /> </TargetControls> </rad:MaskedTextBoxSetting></rad:RadInputManager><asp:TextBox ID="txtPhone" runat="server" Text="1234567890" /><asp:Button ID="btn" runat="server" Text="Submit" />Protected Sub btn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn.Click Dim phone As String = txtPhone.Text End Sub
We have discovered a problem in RadGrid design-time support in the Q1 2013 SP1 release. When you customize RadGrid using designer, the control will generate ColumnSettings="(Collection)" in the markup which will cause an exception.
The solution is to simply remove the markup shown above which will allow you to use the designer again.
Please excuse us for any inconvenience caused.
UseStaticHeaders="false"
and AllowColumnResize="true".

var WorkSp = (from a in db.dsworkdefinitions where a.Status != "DEl" select new { a.Workcode, a.Workname }).ToList(); Workdesc1.DataSource = WorkSp; Workdesc1.DataValueField = "Workcode"; Workdesc1.DataTextField = "Workname"; Workdesc1.DataBind(); string md = Projtext[0].workspecific.ToString(); string[] Projid = md.Split(','); for (int i = 0; i < Projid.Length; i++) { string val = Projid[i].ToString(); int m = 0; foreach (RadListBoxItem item1 in Workdesc1.Items) { string Md1 = Workdesc1.Items[m].Value; if (Md1 == val) { item1.Checked = true; } m++; } }