Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old August 24th, 2004, 12:45 PM
cagdorf cagdorf is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 63 cagdorf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 7 m 37 sec
Reputation Power: 5
Exclamation Dynamic table help

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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Dynamic table help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway