|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
I have a page setup with a drop down list of users. When a user is selected and okay is pressed I call a sub FillTable()
This sub connects to SQL and fills a table with check boxes and data. The page the table is then displayed and you can click which items you want to transfer to another user by clicking the checkbox and then there is an assign button to assign the new items. It looks like this Private Sub btnAssign_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAssign.Click Dim i As Integer Dim chkbox As New CheckBox For i = 1 To tblAccts.Rows.Count - 1 chkbox = tblAccts.Rows(i).Cells(0).Controls.Item(0) If chkbox.Checked = True Then SQLCmds.Switch SQLCmds.Close() End If Next Server.Transfer("massreassign.aspx") End Sub When I debug the program it says that the tblaccts.rows.count = 0. The layout of the page contains an empty table named tblAccts. When i tried to add Filltable to the page_load event it creates duplicates. When I add it to if page.ispostback=true then I get duplicate tables. Any suggestions? ![]()
__________________
-CAGdorf |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Dynamic table help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|