dynamic table not refreshing data

Thread Solved

Join Date: Dec 2008
Posts: 3
Reputation: kazoo is an unknown quantity at this point 
Solved Threads: 0
kazoo kazoo is offline Offline
Newbie Poster

dynamic table not refreshing data

 
0
  #1
Dec 19th, 2008
Hi, i am using vb to create a table, i then add that table as a control do a <div>. The data within the table comes from a select statement. When i change my select statement the data that appears in the webpage is always the first data that was acquired originally even though when I debug i see the table being set with the new values

below is a sample of the controls used
  1.  
  2. Dim table1 As New HtmlTable
  3. Dim r As New HtmlTableRow
  4. Dim c As New HtmlTableCell
  5. Dim txtBox As New HtmlInputText
  6. Dim commentaires As New HtmlTextArea
  7.  
  8. table1.Border = 0
  9. c.Controls.Add(New LiteralControl("BT :"))
  10. r.Cells.Add(c)
  11. c = New HtmlTableCell
  12. txtBox.ID = "bt" & i
  13. txtBox.Value = equipe(i).getBT
  14. c.Controls.Add(txtBox)
  15. r.Cells.Add(c)
  16. table1.Rows.Add(r)
  17. ba.Controls.Add(table1)
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 123
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: dynamic table not refreshing data

 
0
  #2
Dec 19th, 2008
why do you create your own table instead of using a datalist control?
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 3
Reputation: kazoo is an unknown quantity at this point 
Solved Threads: 0
kazoo kazoo is offline Offline
Newbie Poster

Re: dynamic table not refreshing data

 
0
  #3
Dec 19th, 2008
for each row that the select returns I need to show that table with the details which is often more than 1
Last edited by kazoo; Dec 19th, 2008 at 10:59 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 123
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: dynamic table not refreshing data

 
0
  #4
Dec 20th, 2008
then use nested repeater or put your datalist in a repeater or just the opposite
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 3
Reputation: kazoo is an unknown quantity at this point 
Solved Threads: 0
kazoo kazoo is offline Offline
Newbie Poster

Re: dynamic table not refreshing data

 
0
  #5
Jan 5th, 2009
thank you that worked, wasn't familiar all that much with asp.net
i have another issue now
when i go do the update statement i get the data by doing the following
  1. tbox = CType(e.Item.FindControl("heures"), TextBox
however that data always seems to be the original one, not the one i have modified and am trying to update

EDIT: Its ok found the problem was reinitalizing the data in my page load
Last edited by kazoo; Jan 5th, 2009 at 12:32 pm. Reason: found the issue
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum


Views: 926 | Replies: 4
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC