Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Formview doesn't work on update with asp:Table. Now what?

Reply
Thread Tools

Formview doesn't work on update with asp:Table. Now what?

 
 
David
Guest
Posts: n/a
 
      06-01-2009
I'm pretty new at ASP.Net, and I have run into a problem. I have been tasked
to write an application, and it is supposed to mimic an existing form,
including layout, as closely as possible. A page contains information about
a single part, but there are lots of fields.

An asp:formview object seemed like an obvious choice, so I made one of
those. Then, since I had to specify layouts to match an existing form, I
needed a way to position the fields properly, so I used an asp:Table, along
with asp:TableRow and asp:TableCell objects. So far so
good....except....there's a bug and asp:Table objects don't end up updating
the database when you put them in an EditItemTemplate, so you can't really
use them in a FormView.

I have substited a plain old <table> object, with <tr> and <td> tags, and
that seems to work, but it isn't as easy to deal with as their <asp:>
equivalents.

Is there a more "standard" way of dealing with forms that take their data
from a single data row, and have to be formatted with particular layouts that
aren't based on a grid-like layout?
 
Reply With Quote
 
 
 
 
Allen Chen [MSFT]
Guest
Posts: n/a
 
      06-02-2009
Hi David,

>Is there a more "standard" way of dealing with forms that take their data
>from a single data row, and have to be formatted with particular layouts

that
>aren't based on a grid-like layout?


I believe what you did is the "standard" way. To get a more flexible
layout, <div> is a better choice than <table>, however. The following
article compares <div> with <table>.

http://css-discuss.incutio.com/?page=TablesVsDivs

Please try to use <div> and feel free to ask if you have additional
questions.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
http://www.velocityreviews.com/forums/(E-Mail Removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.




 
Reply With Quote
 
 
 
 
Allen Chen [MSFT]
Guest
Posts: n/a
 
      06-08-2009
Hi David,

>Is there a more "standard" way of dealing with forms that take their data
>from a single data row, and have to be formatted with particular layouts

that
>aren't based on a grid-like layout?


Do you have any progress on this issue?

Regards,
Allen Chen
Microsoft Online Support

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Looping through a formview looking at all textboxes. use to work. now does not?? jobs ASP .Net 7 07-22-2007 03:35 PM
Formview update--one field won't update Larry Bud ASP .Net 1 07-11-2007 03:03 PM
Formview within Formview Chris ASP .Net 0 05-19-2007 04:12 PM
FormView/Repeater/ Eval(FormView data) David Thielen ASP .Net Web Controls 2 06-16-2006 07:56 PM
Wega2 1.0.8.5 update and FocalPlot 1.06 (now Exposureplot) update Paul van Andel Digital Photography 3 10-20-2005 08:58 AM



Advertisments