Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Change data in a table


Message #1 by "Anupama Nallari" <anallari@p...> on Fri, 14 Sep 2001 17:53:30
I am trying to change the contents of a table based on the results of a 

recordset dynamically.

I have a table created already with the results of a recordset. 

When the user chooses a sort order the recordset will have the sorted 

results. I need to update the table with the new results how do I do this 

in ASP 3.0? Is there a datagrid that I can associate with the recordset.

If so how?

If I try to write a table by using response.write it is creating a new 

table instead of rewriting the contents of the old one.





Message #2 by "Ken Schaefer" <ken@a...> on Mon, 17 Sep 2001 19:13:47 +1000
When the user decides how they want to resort the recordset, you reload the

page, and write the HTML table out again. When you create the recordset, you

use the ORDER BY clause to get the recordset into the correct order.



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: "Anupama Nallari" <anallari@p...>

Subject: [asp_web_howto] Change data in a table





: I am trying to change the contents of a table based on the results of a

: recordset dynamically.

: I have a table created already with the results of a recordset.

: When the user chooses a sort order the recordset will have the sorted

: results. I need to update the table with the new results how do I do this

: in ASP 3.0? Is there a datagrid that I can associate with the recordset.

: If so how?

: If I try to write a table by using response.write it is creating a new

: table instead of rewriting the contents of the old one.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




  Return to Index