Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:TextBox ID="Name" runat="server"></asp:TextBox>
- <asp:Button ID="UploadToSQLTable" runat="server" />
- <asp:CheckBoxList ID="CheckBoxList" runat="server" AutoPostBack="True" Height="102px">
- <asp:ListItem Text = "Test1" Value = "Test1"></asp:ListItem>
- <asp:ListItem Text = "Test2" Value = "Test2"></asp:ListItem>
- <asp:ListItem Text = "Test3" Value = "Test3"></asp:ListItem>
- <asp:ListItem Text = "Test4" Value = "Test4"></asp:ListItem>
- </asp:CheckBoxList>
- For Each li As ListItem In CheckBoxList.Items '(That i have checked what i want before)
- 'sql...
- sql....("SELECT name FROM [table] where name = ('" & CheckBoxList.SelectedItem.Text & "') ", Sql....)
- Sql....
- Sql....
- Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement