Thursday, December 4, 2008

What's new in the .NET Framework 3.5 Service Pack 1

Introduction
Visual Studio 2008 and the .NET Framework 3.5 enable developers to rapidly create connected applications that deliver high quality and rich user experiences. Visual Studio 2008 enables organizations of every size to rapidly create secure, manageable, and reliable applications that are optimized for Windows Vista™, SQL Server, the Microsoft 2007 Office system and the Web.
Visual Studio 2008 Service Pack 1 (SP1) and .NET Framework 3.5 Service Pack 1 (SP1) continue Microsoft's investment in market leading development tools and developer platform. SP1 addresses issues that were found through a combination of customer and partner feedback, as well as internal testing. These service packs offer customers improvements in responsiveness, stability and performance.


Overview
.NET-based Windows application development benefits from increased Windows Presentation Foundation (WPF) designer performance and updated components for Visual Basic and Visual C++ (including a MFC-based Office 2007 Ribbon). Web development improvements include enhanced the client-side script tooling (java-script IntelliSense). In addition to IDE performance inprovements SP1 fully supports SQL Server 2008 and the ADO.NET Entity Framework.
The .NET Framework 3.5 Service Pack 1 (SP1) delivers more controls, a streamlined setup, improved start-up performance, and powerful new graphics features for client development and rich data scaffolding, improved AJAX support, and other improvements for Web development. Additionally it introduces support for the ADO.NET Entity Framework and ADO.NET Data Services, which simplify data access code in applications by providing an extensible, conceptual model for data from any data source and enabling this model to closely reflect business requirements.


The .NET Framework 3.5 SP1 delivers:
Performance increases between 20-45% for WPF-based applications – without having to change any code
WCF improvements that give developers more control over the way they access data and services
Streamlined installation experience for client applications
Improvements in the area of data platform, such as the ADO.NET Entity Framework, ADO.NET Data Services and support for SQL Server 2008's new features
ASP.NET Dynamic Data to facilitate rapid data driven development

Additional Details
WPF improvements

Cold startup performance improvement ranging between 20-45% depending on application size without needing to modify any code.
Additional WPF support for text, graphics, and media to deliver better performance. For example, effects like DropShadow and Blur were implemented using software rendering; with SP1 these are now implemented using hardware acceleration. Other examples include:
Text, especially when used in Visual and DrawingBrush, is substantially faster,
Data scalability improvements - Container Recycling, TreeView virtualization, etc. to enable richer data editing support,
Media performance improvements,
A much improved WriteableBitmap that enables real-time bitmap updates from a software surface,


.NET Framework 3.5 SP1 Optimized Client Runtime
SP1 provides a .NET Framework install version that is optimized for .NET-based client applications. The size of this optimized runtime is less than 20 MB.


New ADO.NET Data Features
ADO.NET Entity Framework
The ADO.NET Entity Framework is the next evolution of ADO.NET, raising the level of abstraction at which programmers work with data, and allowing the database structure or data source to evolve without significant impact to the application code.
Rather than coding against rows and columns, the ADO.NET Entity Framework allows the definition of a higher-level Entity Data Model over your relational data, and allows developers to then program in terms of this model. Developers get to deal with the data in the shapes that make sense for the application, and those shapes are expressed in a richer vocabulary that includes concepts like inheritance, complex types, and explicit relationships.
Use LINQ to Entities with the Entity Framework for queries that help create easy to maintain code that retrieves and works with strongly typed data objects or business entities.


ADO.NET Data Services
The Microsoft ADO.NET Data Services framework provides a first-class infrastructure for developing the next wave of dynamic internet applications by enabling data to be exposed as REST-based data services that can be consumed by client applications (ASP.NET, AJAX, Silverlight) in corporate networks and across the internet. Easily build applications using a comprehensive set of Microsoft .NET libraries and client components, accessing data through uniform URI syntax and using standard HTTP verbs to operate on the resource.
ADO.NET Data Services provides a framework to build data services for relational data sources, such as Microsoft SQL Server, MySQL, DB2, and Oracle, using the built-in support for the ADO.NET Entity Framework, or for non-relational data sources using the pluggable provider model.


New ASP.NET Features
ASP.NET Dynamic Data
ASP.NET Dynamic Data provides a rich scaffolding framework that allows rapid data driven development without writing any code.


Improved ASP.NET AJX Support
A new addition to ASP.NET AJAX that provides support for managing browser history (back button support).


Conclusion
Visual Studio 2008 SP1 and the .NET Framework 3.5 SP1 significantly improve the developer experience during the development process and at runtime. SP1 addresses a range of the top issues from customers and partners.if you want to download frameworks then go here :: http://www.microsoft.com/net

Wednesday, November 26, 2008

Interview Questions ASP.NET

1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.

2. What’s the difference between Response.Write() andResponse.Output.Write()? The latter one allows you to write formattedoutput.

3. What methods are fired during the page load? Init() - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading.

4. Where does the Web page belong in the .NET Framework class hierarchy?System.Web.UI.Page

5. Where do you store the information about the user’s locale? System.Web.UI.Page.Culture

6. What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? CodeBehind is relevant to Visual Studio.NET only.

7. What’s a bubbled event? When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.

8. Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler? It’s the Attributesproperty, the Add function inside that property. So btnSubmit.Attributes.Add("onMouseOver","someClientCode();")

9. What data type does the RangeValidator control support? Integer,String and Date.

10. Explain the differences between Server-side and Client-side code? Server-side code runs on the server. Client-side code runs in the clients’ browser.

11. What type of code (server or client) is found in a Code-Behind class? Server-side code.

12. Should validation (did the user enter a real date) occur server-side or client-side? Why? Client-side. This reduces an additional request to the server to validate the users input.

13. What does the "EnableViewState" property do? Why would I want it on or off? It enables the viewstate on the page. It allows the page to save the users input on a form.

14. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.

15. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
· A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.
· A DataSet is designed to work without any continuing connection to the original data source.
· Data in a DataSet is bulk-loaded, rather than being loaded on demand.
· There's no concept of cursor types in a DataSet.
· DataSets have no current record pointer You can use For Each loops to move through the data.
· You can store many edits in a DataSet, and write them to the original data source in a single operation.
· Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.

16. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines? This is where you can set the specific variables for the Application and Session objects.

17. If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users? Maintain the login state security through a database.

18. Can you explain what inheritance is and an example of when you might use it? When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.

19. Whats an assembly? Assemblies are the building blocks of the .NET framework. Overview of assemblies from MSDN

20. Describe the difference between inline and code behind. Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.

21. Explain what a diffgram is, and a good use for one? The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service.

22. Whats MSIL, and why should my developers need an appreciation of it if at all? MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.

23. Which method do you invoke on the DataAdapter control to load your generated dataset with data? The .Fill() method

24. Can you edit data in the Repeater control? No, it just reads the information from its data source

25. Which template must you provide, in order to display data in a Repeater control? ItemTemplate

26. How can you provide an alternating color scheme in a Repeater control? Use the AlternatingItemTemplate

27. What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control? You must set the DataSource property and call the DataBind method.

28. What base class do all Web Forms inherit from? The Page class.

29. Name two properties common in every validation control? ControlToValidate property and Text property.

30. What tags do you need to add within the asp:datagrid tags to bind columns manually? Set AutoGenerateColumns Property to false on the datagrid tag

31. What tag do you use to add a hyperlink column to the DataGrid?

32. What is the transport protocol you use to call a Web service? SOAP is the preferred protocol.

33. True or False: A Web service can only be written in .NET? False

34. What does WSDL stand for? (Web Services Description Language)

35. Where on the Internet would you look for Web services? (http://www.uddi.org/)

36. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box? DataTextField property

37. Which control would you use if you needed to make sure the values in two different controls matched? CompareValidator Control

38. True or False: To test a Web service you must create a windows application or Web application to consume this service? False, the webservice comes with a test page and it provides HTTP-GET method to test.

39. How many classes can a single .NET DLL contain? It can contain many classes.


Tuesday, November 25, 2008

Top 100 ASP.Net Questions Asked in Actual Interviews

100 ASP.Net Questions Asked in Actual Interviews

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
Ans: 1. You must set the DataSource property and call the DataBind method.

Can a .NET web application consume Java web service ?

Please brief note about XSD,XSLT & XML.

Which dll handles the request of .aspx page?

Diff between Web User Control and Web Custom Control.

What does WSDL stand for?

What are webservices?

What is the transport protocol you use to call a Web service SOAP

What is the standard you use to wrap up a call to a Web service

What are the disadvantages of viewstate/what are the benefits

How is a property designated as read-only?

How does VB.NET/C# achieve polymorphism?

How do you call procedures in datastage?

If I'm developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

How can we implement a Identity (SQL Server) call in an asp.net page?

Can you give an example of what might be best suited to place in the Application_ Start and Session_Start subroutines?

How to rename a table using sql queries?

What is Viewstate?
Viewstate is a built-in structure for automatically retaining values among multiple requests for the same page. The view state is internally maintained as a hidden field on the page but is hashed, providing greater security than developer-implemented hidden fields do.

Which namespace is used by ADO.NET?

What is delay signing?

What is PreProcessor in .NET and type , where it use

How would you get ASP.NET running in Apache web servers - why would you even do this?

What is the life cycle of an asp.net page?

What base class do all Web Forms inherit from?

In order to get assembly info whcih namespace we should import?

Trace and Debug belongs to which namespaces

Which namespace is used to get assembly details?

What is the root namespace for all types?

Describe session handling in a webfarm, how does it work and what are the > limits

How do we Sort the data from a Dataset?

How do you create a permanent cookie

What method do you use to explicitly kill a user s session?

What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Which method do you use to redirect the user to another page without performing a round trip to the client?

What type of code (server or client) is found in a Code-Behind class

Explain the differences between Server-side and Client-side code

What types of data validation events are commonly seen in the client-side form validation?

How does u call and execute a SP in .NET?

What is DLL hell?

What is difference between OR and ORElse

Whats MSIL, and why should my developers need an appreciation of it if at all?

How to create dynamic Gridview?

Should validation (did the user enter a real date) occur server-side or client-side? Why?

Which template must you provide, in order to display data in a Repeater control?

Describe the difference between inline and code behind - which is best in a

Can you explain what inheritance is and an example of when you might use it?

How would you implement inheritance using VB.NET/C#?

What does the "EnableViewState" property do? Why would I want it on or off?

What is diff. between ASP State Management and ASP.NET State Management?( Imp) 19. How can we pass info between 2 asp.net pages?

Where would you use an iHTTPModule, and what are the limitations of any

Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

If we remove web.config or machine.config from the application then, Is this application will works?

What tag do you use to add a hyperlink column to the DataGrid?

What is IPostBack? How to use it?

DIff. between Friend and Protected Friend.

What is CLR?

Name some of the Microsoft Application Blocks. Have you used any? Which ones?

What is event bubbling?

How many classes can a single .NET DLL contain?

Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

What is difference between singleton and single call?

What is versioning in .NET?

what is the difference between a defect and an enhancement?

1.How to enter same record twice in target table? give me syntax. 2. How to get particular record from the table in informatica? 3.How to create primary key only on odd numbers? 4. how to get the records starting with particular letter like A in informatica?

Diff between Dataset and Datareader

Diff. betn Dataset and Recordset.

Which method do you invoke on the DataAdapter control to load your generated dataset with data?

How do we get only edited/deleted/ inserted records from a Dataset?

Why Datareader is useful?

How Dataadapter. fill works?

How to reduce the width of textbox in EditCommandColumn of DataGrid?

Which two properties are on every validation control?

What is server infrastructure & Server components?

Which control would you use if you needed to make sure the values in two different controls matched?

Let's say I have an existing application written using Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to .NET

ColumnMapping belongs to which namespaces?

What is CLR? 2.1. Diff between CLR & CTS

Distinguish the differences between client-side and server-side data validations in web pages.

How do u declare static variable and how it is declared and what is its lifetime?

How do you turn off cookies for one page in your site?

What is an assembly

What r the ASP.NET list controls and diff. between them?

What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

What property do you have to set to tell the grid which page to go to when using the Pager object?

What tags do you need to add within the asp:datagrid tags to bind columns manually.

Web service support a) Data set b) dataReader c) both of above d) none of above

In A Page I have gridview with Options of select and delete using hyperlink when i am selecting any one of then it has to open another page how can it

What is an abstract class

What is diff. between abstract class and an interface? * What is shadowing? * Diff between Overriding and overloading

Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

What is smoke testing?

Can you edit data in the Repeater control?

Explain what a diffgram is, and a good use for

What are delegates?

What tags do you need to add within the asp:datagrid tags to bind columns manually?

How can you provide an alternating color scheme in a Repeater control?

How to create a DB connection at one place/page so that we can use that connection for all pages/forms/ windows.what r the steps ned to be performed. if question not clear,let me know.

In what order do the events of an ASPX page execute. As a developer is it important to undertsand these events?

What are client activated objects and server activated objects?

How does u get record no from 5 to 15 from a dataset of 100 records?

Next Time I will give answers of all this questions.