Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Lee Dumond
Forum: ASP.NET 3.5 Basics June 15th, 2009, 01:45 PM
Replies: 10
Views: 27,435
Posted By Lee Dumond
Sorry Phil, I'm not following you. DataItem...

Sorry Phil, I'm not following you.

DataItem is not going to be null as long as the item type is ListViewItemType.DataItem, and we are checking for that.

And if the item type is...
Forum: ASP.NET 3.5 Basics June 15th, 2009, 12:26 PM
Replies: 10
Views: 27,435
Posted By Lee Dumond
Phil, You sure about that? Remember, the...

Phil,

You sure about that? Remember, the ListView is going to be re-bound on postbacks.

I just tried this on my end (Northwind database) with a button to postback the page, and encountered no...
Forum: ASP.NET 3.5 Basics June 14th, 2009, 04:24 PM
Replies: 10
Views: 27,435
Posted By Lee Dumond
Two reasons for the problem you're having: ...

Two reasons for the problem you're having:

1. The Eval method just evaluates the databinding method. It does not allow you to change the value.

2. The ItemDataBound event is too late to...
Forum: ASP.NET 3.5 Basics June 13th, 2009, 04:57 PM
Replies: 10
Views: 27,435
Posted By Lee Dumond
Sorry Phillip, there is a slight error in your...

Sorry Phillip, there is a slight error in your code. [:)]


protected void listProducts_ItemDataBound(object sender, ListViewItemEventArgs e)
{
if (e.Item.ItemType ==...
Showing results 1 to 4 of 4

 


All times are GMT -4. The time now is 03:18 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.