Developing faster web forms in .NET

by Evgeny Petrov on December 15th, 2009 | Posted in Revium Sandbox | Comment on this entry

Quite often, I develop web forms containing  heavy elements, in particular large select tags, which can be a bit of a problem. All pages in ASP.NET are technically forms, but in this particular instance I’m talking primarily about ASP.NET MVC with it’s normal html layout.

If you remove just these select elements, the size of the form can often become 2-3 times smaller. In two recent projects, I’ve been trialling the following idea – “What if the page itself contains empty select elements only, but after the page has loaded, all these elements silently get populated via ajax requests?” The concept appears to be working well. It’s impossible to see any “flickering” on the page after it’s loaded, simply because the content of the select elements is invisible by default.

Here is the example of how this can be done in jquery:

$(document).ready(function() {
	$("#sBank").load(SiteRoot() + "Details/InsertBanks", null, function() {
		if ($("#bankName").val()) {
			$("#sBank").val($("#bankName").val());
		}
	});
});

Let me know what you think :)

Related posts:

  1. Unique Arrays in PHP
  2. “Capitalise” jquery extension
  3. The easy way to clear floated elements
  4. ASP.NET selectors in jquery
  5. ASP.NET Button – prevent double clicks part 2

Tags: jquery

« ASP.NET selectors in jquery

Email source code in MS Outlook »

Leave a Reply

Click here to cancel reply.

Recent Articles

  • Return of the daily sites
  • Collaborating with Government
  • Ya-bing-ooo!! Yahoo search is dead long live the Bing.
  • Social Media – Good For Some
  • 10 Tips for user acceptance testing of web applications
  • Popular Content Management Systems
  • ASP.NET MVC [HandleError] and logging
  • VMWare hard lessons

Twitter

  • Collaborating with Government: Revium is actively involved in the Federal Government’s R&D program for tax concess... http://bit.ly/9D7Vc6 1 week ago
  • 45 Free Applications For Web Designers & Developers http://www.noupe.com/tools/45-free-applications-for-designers-and-developers.html 1 week ago
  • In most watch advertisements the time displayed on the timepiece is 10:10 because then the arms frame the brand of the watch. 1 week ago
  • More updates...

Revium Logo

  • Home
  • About
  • Expertise
  • Showcase
  • Contact

  • news
  • blog
  • sandbox
  • twitter
  • facebook
  • rss
Bookmark and Share

We are Revium, hear us roar!

The news.

31 Aug

Collaborating with Government

Revium is actively involved in the Federal Government’s R&D program for tax concessions to develop our in-house products that we are looking to take…

Continue reading
View archive

The blog.

01 Sep

Return of the daily sites

Years ago I used to have a morning routine of checking a select few websites I came across. For one reason or another I…

Continue reading
View archive

The sandbox.

20 Aug

Ya-bing-ooo!! Yahoo search is dead long live the Bing.

Ya-bing-oo!! Yahoo search is dead long live the Bing In July 2010 Yahoo had started testing Bing powered search they routed 25% of their search…

Continue reading
View archive

eNewsletter.

 

© Copyright 2010. All Rights Reserved.

Revium Pty Ltd

e / info@revium.com.au t / Work +61 3 9429 2000

Find us: web development, seo

Disclaimer and privacy Revium Pty Ltd

10 Harvey Street
Richmond, Victoria, 3121 Australia
View map

Logo Partner MicrosoftLogo Partner KenticoLogo Partner IiaLogo Partner Iia RibLogo Partner Acs