Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Dynamic Websites w/ Web Matrix
This is the forum to discuss the Wrox book Beginning Dynamic Websites: with ASP.NET Web Matrix by Dave Sussman, James Greenwood, Alex Homer, Colt Kwong, John M. West; ISBN: 9780764543746
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Dynamic Websites w/ Web Matrix section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2004, 12:53 PM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default MxDataGridControl

Chapter 9, Page 273- After dragging the CAM, Discs table onto the page, I go to the Fields property there are no entries as indicated in the instructions. I can run the page and the data displays as it should. I can add a field but that duplicates what is already on the page.

 
Old February 20th, 2004, 01:29 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What do you mean by "that duplicates what is already on the page"? Do you mean the same data (jn a control) is displayed twice?

If that's the case, take a look at your code in the Page_Load event. Maybe you're adding the data twice: once on the initial Load, and one on Postback.

Usually, you'll see something like this in the Page_Load event:

If Not Page.IsPostBack Then
  ' Bind Data
End If

Most controls maintain their state between postbacks, so there is no need to bind them again.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 23rd, 2004, 09:04 AM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are way ahead of me. I am just trying to get the example in the subject book to work. The MXDataGridControl properties does not appear for editing like the book says.

 
Old February 23rd, 2004, 10:05 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right. I don't have the book, so it may be useful if you post some code and describe the problem in some more detail. Otherwise it's just guessing about what is going on...

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.