Last post Sep 02, 2008 02:09 PM by Mainship
Sep 01, 2008 12:03 AM|Mainship|LINK
I have the task of collecting email messages to be forwarded to individuals on our site. I need to be able to display the email forwards ordered by who gets them (show all the emails for Harry, then Jane, then Arthur, etc.), 100 at a time. The administrator
needs to be able to read each one and delete any email deemed inappropriate. I will soon be allowing people who submit emails for forwarding to also upload a small photo. The admin needs to be able to delete the photo only, or delete the entire email. I'm
hoping to have the photos stored in the database.
I'm thinking a gridview control would be my best bet, but I want the administrator to be able to fully read each email without having to resort to a detailsview. Can a gridview be set to auto expand a cell's height to accommodate the contents?
The other options would be a repeater ot a datalist, but deleting a field in the row or the row itself would be more difficult.
Is there something I haven't thought of?
Sep 01, 2008 12:12 AM|liammcmullen|LINK
if you can use Listview it's much better for tweaking,
did you ever get your master page problem solved?
Sep 01, 2008 02:48 AM|Mainship|LINK
No, I found a work around.
Listview? I'll take a look at it. Thanks.
Sep 01, 2008 02:58 AM|Mainship|LINK
I'm using an objectdatasource with a strongly typed dataset. The listview shows all the table's fields, not just those I want it to display.
Sep 02, 2008 12:06 AM|liammcmullen|LINK
just configur the template - let me know if you use it in the end
Sep 02, 2008 04:24 AM|Mainship|LINK
liammcmullen, I've been working with the listview. I have it pretty much the way I want it, except for one thing: my customer wants 100 records per page, and they need to be editable. After scrolling down, I click on an edit button, and the screen goes
back to the top. I need to scroll down again to find the record I'm editing.After editing, I click update and I'm at the top again. Is there any way to remain at the record I'm working with?
Sep 02, 2008 11:13 AM|liammcmullen|LINK
Add this to your page
<%@ Page MaintainScrollPositionOnPostback="true" %>
Sep 02, 2008 02:09 PM|Mainship|LINK
That did it! After playing around with it a bit, I really like the ListView!