Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 October 17th, 2010, 01:38 AM
Registered User
 
Join Date: Oct 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default formview vs json and jquery

Hi,

I have a form that's pretty large: about 30 fields, with some very long ones (user's notes for instance) and some can be of variable lenght (a variable-size list of books/title/author). The design calls for the edit view to be in a popup that edits sections of the form at a time. The page must also use ajax so that it never refreshes. Users are expected to work about an hour on the page and make edits to each form at a rate of 1 record per minute or so.

The by-the-book choice would be to use a formview with an updatepanel but I'm wondering if that's the best choice. I'm thinking about loading an empty page and, on document ready, using a jquery function to call a page method or a web service that returns a json object with all the data for a particular record and have another jquery function that clears and updates the form with the new json object. After the edits are validated on the client side first, the postback will then resend the json object via jquery to a page method or web service (what's best?) and if it passes a server validation script, send back the next object, and if it's not reply with an error. For the back-end, I'm thinking about creating an entity model and load 30 records at a time (what'd be a good number?) using linq to entity.

I'm concerned about performance, security and scalability and I was wondering if Imar or someone else wanted to provide some personal feedback regarding this formview alternative.

Thanks,
Sylvan
 
Old October 17th, 2010, 07:59 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I wouldn't use a FormView, but would choose the "hand coding" solution as explained on page 554 and further.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
JSON-PHP v. PHP-JSON bcrocks BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 August 17th, 2011 07:52 AM
C# and JSON throp BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 2 March 12th, 2009 10:51 AM
C# JSON Library radhakrishnane BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 January 21st, 2009 09:36 AM
C# object to/from JSON possible?!? quantass BOOK: Beginning Ajax with ASP.NET 1 January 21st, 2009 09:32 AM
JSON and ScriptService balesh.mind ASP.NET 3.5 Basics 0 December 4th, 2008 08:14 AM





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