PC Review


Reply
Thread Tools Rate Thread

ASP.NET 2.0 and data display

 
 
=?Utf-8?B?Sk1heA==?=
Guest
Posts: n/a
 
      23rd Jun 2006


Hello!

I am trying to list some data from a database. It is a row, from one table,
and then a set of rows beneath that from another table – and it keeps
repeating. First, is there a way to do this in ASP.NET 2.0? This app is a 1.1
upgrade, and I had to use code to set this up (two long foreach loops). I
tried to have a GridView and embed another GridView, but the embedded
GridView disappeared from the setup.

From what I was seeing, the code breaks down when it comes to postbacks and
view state. If the code-generated table was saved in view state, and
restored, then the code-generated buttons would then also be able to fire.
The sub-rows each have add/modify/delete buttons. The code works great in
responding to the first click, but once the page displays the “add/modify”
screen view state doesn’t “remember” that the row was a modify row, and it
resets, so ASP.NET doesn’t know that a button (that is, the “OK” button) was
pushed, and doesn’t fire the event. The strange thing is that this problem
started happening with the upgrade to 2.0.

I apologize, but I am quite new to 2.0, but am excited to see these great
new features.

JMax



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not plot a data series in a chart but still display in data table mebp Microsoft Excel Charting 1 19th Mar 2010 05:13 PM
Powerpoint display is cut off on data projector display. David-DEC Microsoft Powerpoint 1 16th Jan 2008 04:09 PM
Data Access Page: How do I display data from a filtered table? =?Utf-8?B?Sm9uYXRoYW4=?= Microsoft Access 0 9th Feb 2007 11:56 AM
Displaying Xml data in Treeview & AfterSelecting nodes display data in RichTextBox Guest Microsoft Dot NET 0 20th May 2005 08:13 AM
using Crystal Reports to display data in my dataset correctly (display the data I selected instead of all the data in table) JK Microsoft C# .NET 1 6th Sep 2003 10:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.