Home > database > Screen Radiobutton dynamic, the first option is selected by default
Screen Radiobutton dynamic, the first option is selected by default
Time:11-01
Dim selectListItem=...
@ For Each item In selectListItem @ Html. RadioButtonFor (Function (m) m.C ode, item. Value) @ item. The Text Next
Want to default the first project selected attributes what to pay
CodePudding user response:
Vb.net don't understand
CodePudding user response:
/* * * * just using VB to write a recently, you consider, Dim item As String="" Dim strSql As String="" StrSql="select email notification department from Mis_T_ products detained by the where state=1 and RecID='" & amp; Txt_RecID. Text. Trim & amp; "' "Dim strEmail () As String Dim Email As String=__dllData. _GetSingleValue (_strSql) For Each item In cklb_Email. CheckedIndices Cklb_Email. SetItemChecked (item, False) Next StrEmail=Split (Email. Trim, ", ") For I As Integer=0 To strEmail. Length - 1 For j As Integer=0 To cklb_Email Items. The Count - 1 Item=CType (cklb_Email. Items (j), DataRowView) (0). The ToString If the item=strEmail (I) Then Cklb_Email. SetItemChecked (j, True) End the If Next Next