When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles [1.x] [2.0]
ASPFAQs.com
Message Board
Related Web Technologies
User Tips!
Coding Tips
Search

Sections:
Book Reviews
Sample Chapters
Commonly Asked Message Board Questions
Headlines from ASPWire.com
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Security
Stump the SQL Guru!
Web Hosts
XML Info
Information:
Advertise
Feedback
Author an Article
Technology Jobs

















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
ASP ASP.NET ASP FAQs Message Board Feedback ASP Jobs
Print this page.

Windows Systems Administrator
Jupitermedia
US-CT-Darien

Justtechjobs.com Post A Job | Post A Resume

Mark Anders Answers your ASP.NET/.NET Questions!


Please keep in mind...
Please keep in mind that these questions were asked and answerd in the October 2000 time period. For the latest and greatest information on ASP.NET be sure to check out the ASP.NET Article Index!

Back in October, you had the opportunity to send Mark Anders, program manager of the ASP.NET team, your .NET and ASP.NET questions! Out of the hundreds of submitted questions, I chose a select few and sent them off to Mark. Here, now, are some of his responses! (More responses will be filtering in over the next couple of weeks, so check back often!)

Learn More About ASP.NET!
To learn more about ASP.NET, be sure to check out our ASP.NET Article Index. Also, if you like question and answer-type articles like the one presented here, be sure to check out Commonly Asked ASP.NET Questions... Answered!. These questions and answers were provided by Scott Guthrie, the lead developer for ASP.NET!


November 3rd, 2000
Question: Under the new ASP.NET validation framework, how do the validation controls determine when to use client script vs. server-side code? For example, regular expression support is weak or non-existent in browsers like IE and Netscape 3. Would ASP.NET default to server side in those cases? Is this a configurable setting? What is the performance hit (to the server) and the between page delay time when the API now includes this type of "dynamic" per page validation?
[For more information on ASP.NET validation controls, be sure to read: Form Validation with ASP.NET - It Doesn't Get Any Easier!]

Answer: Our client side validation requires both EcmaScript (JScript) 1.2 and the MSDOM. In Beta1, if the UserAgent is IE4 or better, and the page's ClientTarget is Auto (the default) we'll render client script. Or, if ClientTarget is UpLevel, we'll render client script without regard for the UserAgent. We are looking at making this more flexible in Beta 2.

I'm not sure I understand the performance part of your question, but I'll give this a shot. If we do render client script, it's basically just a dozen or so lines of client script in the page plus a JScript include file. The JScript file is 15K in size, and the browser will routinely cache this file unless the user has disabled his browser cache. Anyway, the size of the rendered page is most affected by the first download of the script file, and then not all that much. The difference in the rendering of the validation control is minimal too.

The main benefit of the client script is improved user interaction with the page. On postback we always perform the validation on the server, regardless of whether the client has already done so. This is essential to prevent an unscrupulous user from spoofing the client script, and it helps ensure the validation logic is truly identical for all users.

Does this cover it? You should hit a page that does validation (like from the quickstarts) and do a view source on it. You'll see the include for the JScript file, and a little client script block near the end that declares an a array of validator controls for the JScript file to act on.


November 3rd, 2000
Question: Will there need to be much rewriting of our good old ASP code? We have lots of great ASP code and would not be happy to have to tinker with it when we install ASP.NET.

Answer: There are a couple of aspects to this question. First, when you install ASP.NET on a machine, it does not affect existing ASP pages or applications at all. We've designed ASP.NET to run side by side with existing ASP. That's the primary reason that you'll notice that ASP.NET files have the extension .aspx. Second, we've designed ASP.NET to be as compatible with ASP as possible, so that you can take existing pages and run them under ASP.NET simply by changing the extension to .aspx. The caveat to this, and I don't want to make light of it, is that we were not able to make ASP.NET 100% compatible with ASP. There are a variety of reasons for this. For example, one of the main ones is that we no longer use late bound script languages - ASP.NET pages are compiled. There are many things that can be done syntactically in and script languages that can't be supported with compiled ones, especially when multiple languages are used. So in summary, installing ASP.NET will not break existing code, and, depending on how your code is written, you may be able to move them over with little or no work.


November 3rd, 2000
Question: This question regards web services. Let's say I have a webservice that validates form values. Does a customer need to be running IIS in order to subscribe? Can they be running Apache that does not run ASP?

Answer: If you create a web service that validates form values using ASP.NET, for a customer to use this, that is, for them to call your web service, there are no requirements as to the technologies they need to use at all. They could indeed run Apache or anything else. They could run on any platform. Web Services are completely open and that's why companies such as IBM are supporting them. [For a good technie discussion on Web Services, check out: Will Web Services Take Off?]


November 3rd, 2000
Question: I would assume with the compiled code advantage ASP.NET offers, the response time for a given page would be quicker than a regular ASP page. Are there any metrics yet affirming this issue. In other words, have ASP.NET/ASP pages with identical functionality been measured by response times?

Answer: Yes, we've done a lot of benchmarking and have compared just that. At this point, I can't actually tell you how much faster it is. We have not even released the Beta, yet, and we are continuing to work on performance. It also depends on the exact scenario that you are using. However, I can say that ASP.NET is notably faster than ASP, and compiled pages is only part of the reason. We've spent a tremendous amount of working on performance from day one. In fact, the second developer on the ASP.NET team (way back in 1998) was a performance dev, whose sole job it was to work on making it faster!


Windows Internet Technology | ASP.NET [1.x] [2.0] | ASPMessageboard.com | ASPFAQs.com | Advertise | Feedback | Author an Article



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES