'Ajax' Category Results

Test Questions for 70-519 – Pro: Designing and Developing Web Applications Using Microsoft .NET Framework 4

Wednesday, January 26th, 2011

So last week I passed the Microsoft test 70-519 and thought I would share a sample of the test questions with you. It’s quite daunting the range of skills the test pulls from. I have been a software developer for over twelve years and this test seems to have found a way to span almost my entire arsenal of skills. Or at least my Microsoft skills. Here are some of the skills measured:

– ASP.NET (both Web Forms and MVC)
– C#
– Ajax
– jQuery
– Windows Communications Foundation (WCF)
– ADO.NET
– ASP.NET Web Services
– LINQ and Entity Framework
– IIS
– Unit Testing, debugging and deployment
– Application state, session state, and request state (for example, ViewState, ControlState, Cache object, cookies, and client-side persistence)
– Globalization – designing to support local, regional, language, or cultural preferences

There’s probably more that I’m forgetting. Bottom line is wow, it’s a good thing that I have played with [most] of this stuff at one time or another because you aren’t just going to get lucky when it comes to passing this test.

Some questions include:

You need to recommend appropriate technologies for designing Web forms for entry and retrieval of news items.
Which technologies should you recommend? (Each correct answer presents a complete solution. Choose two.)

A. ASMX and SOAP
B. WCF Data Services and jQuery
C. ASP.NET MVC 2 and Microsoft AJAX
D. Entity Framework and Microsoft Silverlight

Answer: B and C

You are designing an ASP.NET MVC 2 Web application. You have the following requirements:
“Type safety must be validated at compile time.”
“Code must not require explicit run-time type casting.”
You need to pass data between the controllers and the views within the Web application. Which approach should you recommend?

A. Use the View Data Dictionary class
B. Use the Temp Data Dictionary class
C. Use strongly typed view model classes
D. Use dynamic object view model classes

Answer: C

You are designing a deployment process for a new ASP.NET Web application.
The company requires the application to be compiled to a single DLL for deployment.
You need to design a deployment process that meets the requirement.
Which approach should you recommend?

A. Use MSDeploy
B. Use the Web Deployment tool
C. Use a Web Deployment project
D. Use the ASP.NET Compilation tool

Answer: C

You are designing an ASP.NET MVC 2 application.
You need to centralize the logic for handling and logging unhandled exceptions.
Which approach should you recommend?

A. Use try and catch on every method
B. Override the One Exception method of each controller
C. Decorate all controllers with a custom Handle Error attribute
D. Decorate all controllers with the default Handle Error attribute

Answer: C

You need to design a solution for incorporating NTFS permissions in the Web application.
Which two approaches should you recommend? (Each correct answer presents part of the solution. Choose two.)

A. Grant the Network Service account only Read permission to the root directory
B. Grant Read permission and Write permission to the root directory
C. Grant the Network Service account Full Control permission to the Upload folder
D. Grant the Network Service account Read permission and Write permission to the Upload folder

Answer: A and D

You need to design a solution for capturing an exception. Which approach should you recommend?

A. Use a Page_Error method
B. Use a HandleError attribute
C. Use a CustomErrors element
D. Use an Application_Error method

Answer: B

Good luck to all, you’re gonna need it…

ASP.NET, LINQ, jQuery, JSON, Ajax – Oh my!

Monday, April 26th, 2010

In this article we will be looking at a different type of architecture. One in which we utilize jQuery’s ability to easily transfer data (via Ajax and JSON) from the client to the server. We then use ASP.NET and LINQ to SQL to query the database and return a collection of data which gets (automatically) serialized to JSON and sent to the client. The benefits of combining these technologies include: more responsive applications, more processing on the client, less processing on the server and reduced network traffic. Everything runs faster and uses fewer resources.

Still not convinced? Here are some additional benefits of this architecture:

Benefits of the Architecture

  1. Unlike an ASP.NET UpdatePanel we only pass what we need; we only receive what we need. We don’t pass ViewStates, in fact we don’t even have a ViewState. We also don’t pass entire HTML chunks and receive HTML chunks we don’t use. For more on this; read: Why ASP.NET AJAX UpdatePanels are dangerous.
  2. By using jQuery to call the web service directly, we’ve eliminated over 100 KB of JavaScript and three extra HTTP requests that’s included when you use ASP.NET Ajax.
  3. Less dependencies – because all our code is simply xHTML we could switch to a PHP or a Java backend and none of our code for the UI would have to change. That’s right, there are no server-controls; that means no GridViews, no Repeaters, no ListViews, nothing that uses runat server will be found on the page. Not even a ScriptManager.
  4. Usability – We can create RIA interfaces AND maintain usability, giving us the best of both worlds.
  5. Cross-Browser friendly – We use nothing but xHTML code and jQuery which works across browsers.
  6. The entire presentation for the UI is done via CSS. Change the CSS and the entire UI can look different.
  7. We maintain a ‘Separation of Concerns‘ – this means we have 3 distinct and wholly separate code bases. A content or HTML level. A presentation or CSS level and a behavior or JavaScript level. We don’t have code mixed together in a web-page jambalaya.
  8. Switching architectures from Web Forms to MVC is a breeze.

Hopefully you are salivating at these benefits enough to decide to get your feet wet and follow along.

In this article will be leveraging these technologies to build a grid (or what looks like a table). Later on, in future articles, I will then show you how to implement sorting, paging and filtering on the grid. I have divided this article up into four sections: 1. Sever-side code (ASP.NET). 2. HTML 3. jQuery and lastly CSS.

(more…)

CSS The Star Matrix Pre-loaded: Part 2

Monday, June 4th, 2007

After reading Paul’s article “CSS The Star Matrix Pre-loaded“, I wanted to contribute by writing a back-end solution to the CSS effect.

Before we get into this, you will need to have PHP 5 installed and MySQL 3.23 or higher. PHP 5 allows for greater implementation of OOP (Object Oriented Programming) than its predecessors.

(more…)

Introducing Vinnie Garcia – aka vinnie

Wednesday, January 24th, 2007

And now, ladies and gentlemen introducing the hardest working man in code business, the one, the only Vinnie Garcia.

It’s with great pleasure that I introduce Vinnie to the Search-This team. Sure, I had to put a gun to his head, but that’s the Italian way of doing things.

You may work hard, but no one works harder than Vinnie Garcia. The man is approaching the 20,000 post mark over at the SitePoint forums! And it shows, there’s not too many areas in the web world that Vinnie hasn’t at least dabbled in. So when Vinnie speaks, you’re gonna wanna listen.

Enjoy Vinnie’s bio below:

User Name: vinnie

  • childhood ambition: becoming a cartoonist
  • fondest memory: not sure
  • favorite music: anything with a good beat; mostly rock, electronic, and hip-hop
  • retreat: the beach or my headphones
  • proudest moment: getting married
  • biggest challenge: being married 😉
  • alarm clock: don’t use one, I tend to wake up early anyway
  • perfect day: sitting by the pool doing nothing at all
  • first job: warehouse assistant for a medical supply company
  • indulgence: kickball
  • favorite movie: lots of them, most recently: Borat
  • inspiration: art, nature, architecture, and most importantly loved ones

Introducing Matt Wilkin – aka cpradio

Friday, January 12th, 2007

Long time users of Search-This will no doubt know cpradio. Matt pretty much grew up on Search-This. When he was just a young lad in high school he was administering the forums and helping people with all their web related needs.

Matt’s passion has always been as a coder. Now that Matt has graduated college and become a full time software engineer there’s not many languages he hasn’t worked with.

Look for Matt’s, or rather cpradio’s first article this Monday titled: “OOP in PHP from a .NET OOP Perspective” – should be a good read.

I can’t really welcome cpradio as a new member to the team, because he has always been part of the team. So just enjoy his bio below.

User Name: cpradio

  • childhood ambition: to be a software developer, seriously, it was…
  • fondest memory: looking at my old code and just realizing what an idiot I was back then
  • favorite music: anything but elevator music, seriously, how do you not fall asleep to elevator music?
  • retreat: hiking in the smokies
  • proudest moment: three weeks of hammering an application, countless thankful users
  • biggest challenge: writing quote engines for an insurance company and making it easy to maintain
  • alarm clock: 6:30 AM on a good day, 4:30 AM on implementation day (project going to production)
  • perfect day: my wife told me it was her wedding day, err… our wedding day. 😛
  • first job: PetsMart stocker/fork-lift driver
  • indulgence: hard drives, I have 10 (in one PC) equaling 1.8 TB but that is not enough
  • favorite movie: geez, I can’t just pick one, that would be unfair to the rest of them
  • inspiration: knowing knowledge has no limits other than a person’s refusal to continue learning
mulberry sale spyder womens jacket cheap new balance 574 mulberry outlet cheap new balance 574 arcteryx outlet mulberry sale spyder womens jacket mulberry sale spyder womens jacket mulberry outlet mulberry outlet new balance 574

Popular Articles

Top 10 Commentators


Subscribe to this feed! Subscribe by Email!

Random Bits Podcast

Blogs Worth Reading