Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <asp:TextBox ID="Name" runat="server"></asp:TextBox>
  2. <asp:Button ID="UploadToSQLTable" runat="server" />
  3. <asp:CheckBoxList ID="CheckBoxList" runat="server" AutoPostBack="True" Height="102px">
  4. <asp:ListItem Text = "Test1" Value = "Test1"></asp:ListItem>
  5. <asp:ListItem Text = "Test2" Value = "Test2"></asp:ListItem>
  6. <asp:ListItem Text = "Test3" Value = "Test3"></asp:ListItem>
  7. <asp:ListItem Text = "Test4" Value = "Test4"></asp:ListItem>
  8. </asp:CheckBoxList>
  9.  
  10. For Each li As ListItem In CheckBoxList.Items '(That i have checked what i want before)
  11. 'sql...
  12. sql....("SELECT name FROM [table] where name = ('" & CheckBoxList.SelectedItem.Text & "') ", Sql....)
  13. Sql....
  14. Sql....
  15.  
  16.  
  17. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement