You are on page 1of 49

Contents

Contents 1.Difference between Framework 2.0, 3.0 and 3.5? 2.What is WCF? 3.What Contracts are available in WCF? 4.What is WPF? 5.What is WWF? 6.How many states in WWF? 7.How to assign the Master page to existing .aspx page? 8.How to handle the Browser back button in .aspx page? 9.How to assign the User control to existing .aspx page? 10.Shall we use WCF in WWF? 11.Which Ajax controls you have used in your project? 12.What is Configuration management? Software configuration management 13.What is Software development life cycle? 14.What Phases are available in SDLC? 15.Tell me about integration tool which you have used till now? 16.What is unit testing? 17.What is XAML? 18.What is endpoint in WCF? 19.What is session management? 20.About Master pages 21.What are the different bindings we have in wcf? 22.What are the contracts in wcf? 23.2.0 and 3.0 framework features 24.Asp.net 3.5 newly added controls. 25.What is entity framework? 26.What is session state? 27.What are the objects of ado.net? 28.What is hibernate? 29.What is workflow? 30.What is vsts? 31.What is code review? 32.Explain the page life cycle in asp.net. 33.What is the difference between http and https? 34.Do querystring/sessions Provide security. 1 2 2 2 3 3 3 3 3 4 4 4 4 5 6 6 6 6 6 6 7 7 7 7 7 8 8 8 8 9 9 9 9 9 10 10

35.While consuming wcf from wwf, how can we make wcf methods not accessible from wwf? 10 36.What is the difference between dll and a web service? 37.What is .net Framework entity model? 38.How can u implement Cross page post back? 39.What is wwf? 10 10 10 10

40.For a search criteria you are showing the data in a grid, what are the possible ways u can minimize the space occupied by grid in aspx page. 11 41.what are the things going to happen when using response object. 42.How can u handle the exception? 43.What are the different ways of handling exceptions? 11 11 11

44. How can u handle particular type of exception? 45. What are stored procedures? 46. What are different types of contracts in wcf? 47.How to use a user control in aspx page? 48. What is the order of events fired when user control is used in aspx?

11 11 11 11 11

49.What is the name to be given for a web service developed so that it can be used by an application? 12 50.What is User control 51.Differences between User control and custom control 52.New controls in .net 3.0 53.Healthcare system 54.How to kill session 55.Hibernate 56.New controls in .NET 3.5 57.Vss 58.Connection architectures in ADO.Net, How do you technically define? 59.Data reader and dataset differences 60..net 2.0 architecture 12 12 12 13 13 13 13 13 14 14 15

61.I am using a dataset to get some data, I want to bind this dataset to a gridview, Gridview has button and textboxes, On clicking button, I want to get data in gridview textboxes, How do you perform this. 15 62.About views sql server 63.Difference between session and cookie 64.Can I use master page to an existing .aspx with <form><div> tags? 15 15 15

65. one user logged into a system, a session has created, the same user logged into another system, I want to kill session and create new session for that user, How do you do this. 15 66.How to count number of hits to application 67.What is Global.asax and what are events? 68.Tell about updatepanel 69.What is Global.asax and what are events? 70.What are the different types of Assemblies? 71.About VSTS(Visual Studio Team System) 72.Advantage of using Ajax in asp.net? 73.New controls in .NET 3.5 74.What is User control ? 75. New controls in .net 3.0. 76.Difference between Framework 2.0, 3.0 and 3.5? 77.What is WCF? 78.What Contracts are available in WCF? 79.What is WPF? 80.What is WWF? 81.Which Ajax controls are you have used in your project? 82.What is unit testing? 83.What is XAML? 84.What is endpoint in WCF? 85.What are asp.net page life cycle events 86.What is encapsulation 87.What is a sealed class 88.What are access specifiers 89.What is Virtual Method 15 16 16 16 16 16 16 17 17 17 17 17 17 18 18 18 19 19 19 19 20 20 21 21

90.What is a command object 91.Can we fire trigger in asp.net instead of a stored procedure 92.How to dispose an object from garbage collector? 93.What is global.asax? 94.What is placed in webpage to work with Ajax controls? 95.What is the use of Script Manager? 96.In case we disabled pop- ups for a browser does model pop up works. 97.What is Copy and Clone in .net 98.Difference between Data contract and Service Contract. 100.Can we assign execute reader to Data Reader while fetching records? 101.How do you handle Exceptions in your applications? 102.Tell about StateMachine Activity with an Example. 103.What is Assembly? 104.What is difference between .dll and .exe? 105.What are the different types of Assemblies? 106.What are the steps to make a assembly as shared? 107.What are the classes in Ado.net? 108.What are the methods for Command class object? 110.What are the differences between Html controls and Web Server Controls? 111.Tell me about Views in Sql server. 112.What is a trigger? 113.What are new features added in Sqlserver2005? 114.Tell me About Web parts? 115.Validation controls in ASP.Net? 116.How to use activities in wwf? 117.How to create only one instance of application for each user? 118.ASP.NET AJAX Advantage 119.What are the classes that are supported by .net for wpf application? 120.What are Master Pages and why we use it? 121.What is state management? 122.How to maintain the state for a particular user? 123.How many ways can you maintain information in session? 125.What is web service? 126.Main difference between web services and WCF? 127.What are the classes that are supported by .net for wpf application? 128.How many normal forms are there? Explain it? 129.Explain about AJAX ?What are Diff B/w AJAX Controls and Normal controls? 130.Difference b/w Skins and Style Sheets? 131.Explain master page? 132.Explain Asp.net page life cycle? 133.What is Hidden field? 134.Draw the .net Framework architecture? 135. What is JIT compiler when it will be called?
136.Difference between view state and session. 137.What is inproc session.

21 21 21 21 21 22 22 22 22 24 24 25 25 25 25 26 26 27 27 27 28 28 29 30 30 30 31 32 32 32 32 32 32 33 33 34 35 35 36 36 37 38 38

99.Whether any changes take place when you add wcf service in webconfiguration file. 23

109.What are the return types of Execute Scalar, Execute Non Query and Execute Reader?27

124.Difference between client side state management and server side state management?32

138. What are triggers and stored procedures in ADO.Net? 139. What is messagecontract ?why do we use it? 140.Difference between Web services and WCF services. 141.What is Connection Pooling? 142.The most complex control used by you 143.Difference between master page and frames. 144How to pass a view state variable from page1 to page2. 145. What is fault contract? 146.How to insert bulk of records? 148.How to handle, when session time out to redirect a page to login without a user interaction? 149.How to update multiple tables data modifications in the database from front end? 150.Which dll is used for ajax? 151.What do you know about transactions? 152.User Control scenarios. 153.Diff between Array and Generic List. 154.How do you make transactions using WCF? 155.How can i Expose 4 methods out of 10 methods in WCF service? 156.How do you display standard message across the application? 157.I have 4 websites in a solution where can i place a web.config file i,e website level or solution level? 158.Which event of gridview fires when we click on gridview row? 159.Is possible tostore the hashtable into session? 160.session capacity of Storing data? 161. crosspaging using view state? 162.web.config uses? 163.Crystal reports? 164.master page advantages? 165. XMLHTTP Request? 166.what is view?why we need view? 167.How you handle exceptions if we have 3 standard errors? 168.which grid event will use when you click on pariticular row? 169.is datacontract compasary in WCF? 170.different contract in wcf? Explain theose? 171.what is camel case?what is pascal case? 172.write a query usin linq? 173.what si var in linq query? 174.why use linq lambdaexpression(Advantage) 175.How to know which datarow was updated in datatable? 176.why we write different bindings in wcf? 177.what is processing of updating Gridview? 178.Crystal reports? 179.Ssrs Reports? 180.What is entity?

• Windows CardSpace (WCS). • New data controls with declarative data binding.ASPNET .0 LANGUAGE : C# 2.NET runtime • Full 64-bit support for both the x64 and the IA64 hardware platforms. • Language support for Generics built directly into the . ● ● Security Extensibility . OperationContract. WCF combines the functionality from ASP. a COM+ Component or just a Windows form application for peer-to-peer computing.0 LANGUAGE: C# 2.NET 2.NET 3.NET Remoting.WF.CARD SPACE .WINFORMS.0 • Windows Presentation Foundation (WPF). .0 VB 8.NETfx 2. DataContract and DataMember ● Communication Channels Similar to .net languages using systnax reminiscent of sql 2.NET. • Windows Communication Foundation (WCF). 3. formerly code-named InfoCard.NETfx 3.5 CLR VERSION 2. formerly code-named Indigo.0 FRMEWORK LIBRARIES : . .0 and 3. • Many additional and improved ASP. a serviceoriented messaging system which allows programs to interoperate locally or remotely similar to web services.NET Remoting WCF Services are flexible in changing the channels.net 3. TCP or an IPC channel.0 VB 9.Interview Questions with Answers 1.5 contains complete .0 FRMEWORK LIBRARIES: .NET Web Services.0 and LINQ . Difference between Framework 2. a software component which securely stores a person's digital identities and provides a unified interface for choosing the identity for a particular transaction.NET Runtime. such as logging in to a website. .0 contains complete .0 • A new hosting API for native applications wishing to host an instance of the . which will make use of 3D computer graphics hardware and Direct3D technologies. What is WCF? WCF stands for Windows Communication Foundations.WPF. such as support for themes.NET Web Services.0 contains CLR.NET 3.5? CLR VERSION 2.0 .0 VB 8.g.0 CLR VERSION 2.NETfx 3. a new user interface subsystem and API based on XML and vector graphics.5 LANGUAGE : C# 3.net 2. ● Hosting For Component & Services WCF Service can be hosted in ASP. WCF provides the following features. AJAX langauage integrty query (LINQ): it is microsoft . attributes can be used for WCF Services e.0.o and WCF. a Windows Service. • Windows Workflow Foundation (WWF) allows for building of task automation and integrated transactions using workflows.NET web controls.0 FRMEWORK LIBRARIES : .NET 3.NET CLR.net framwork component adds data native querying capabilities to . ● Declarative Behavior Similar to ASP. • New personalization features for ASP.NET 3. WCF offers multiple channels to communicate using HTTP. ServiceContract(). formerly code-named Avalon. Message Queuing and Enterprise Services. skins and webparts.

What is WWF? WWF is a programming model for building workflow-enabled applications on windows. </script> . formerly code-named Avalon. Fault Contract 4. Although WinForms will continue to be widely used. It provides a consistent programming model for building applications and provides a clear separation between the user interface and the business logic. There are two basics type of workflow Sequential Workflow and State machines workflow. A WPF application can be deployed on the desktop or hosted in a web browser. } setTimeout("disableBackButton()". vector graphics. In sequential execution. What Contracts are available in WCF? There are 4 Contracts are available in WCF 1. audio and video. Workflow controls execution in Sequential workflow.master" AutoEventWireup="true"%> here MasterPage. raster graphics. the company promotes WPF for line-of-business applications 5. advanced typography. is a graphical subsystem in . Sequential workflow is more rigid in format and execution path has a determistic nature. How to assign the Master page to existing . Workflow has states and the state waits for events to help it move to next state. data binding. In State machine execution path is undetermestic nature 6. and Microsoft has created only a few WPF applications. Workflow namespace has all the necessary modules to develop any type of workflow. one task is executed after other.3.forward(). A sequential workflow has clear start and finish boundaries.master is your MasterPage 8. Data Contract 3.0 (formerly called WinFX)[1]. animation. Message Contract 4. 0). fixed and adaptive documents. which uses a markup language. and Windows Server 2003. System. It also enables rich control. known as XAML for rich user interface development. How to handle the Browser back button in . [2] WPF is included with Windows Vista and Windows Server 2008. Service Contract 2. It aims to unify a number of application services: user interface. What is WPF? Windows Presentation Foundation The Windows Presentation Foundation (or WPF).NET Framework 3. 2D and 3D drawing.history. How many states in WWF? There are two basics type of workflow Sequential Workflow and State machines workflow.aspx page? Just write the following line in source code of your existing webpage <%@ Page Language="C#" MasterPageFile="~/MasterPage.aspx page? Using JavaScript function we can handle the Browser back button <script type = "text/javascript" > function disableBackButton() { window. and development of the visual aspects of Windows programs. A State machine workflow is more dynamic in nature. design. and is also available for Windows XP Service Pack 2 or later. 7.

Model popup Control Password strength Rating Filter Textbox Cascading Dropdown List Script Manager 12. These attributes are recorded in configuration documentation and baselined. such as weapon systems. and information systems. and performs systematic control of changes to the identified attributes for the purpose of maintaining software integrity and traceability throughout the software development life cycle. The discipline combines the capability aspects that these systems provide an organization with the issues of management of change to these systems over time. ● Configuration management is widely used by many military organizations to manage the technical aspects of any complex systems. 3. How to assign the User control to existing . 3. Outside of the military. A configuration item is a product (hardware and/or software) that has an end-user purpose. They are: 1. Baselining an attribute forces formal configuration change control processes to be effected in the event that these attributes are changed. 6. we can use WCF service into WWF 11. while a physical configuration audit ensures that a configuration item is installed in accordance with the requirements of its detailed design documentation. The SCM process further defines the need to trace changes. 2. A functional configuration audit ensures that functional and performance attributes of a configuration item are achieved. vehicles.aspx page? Using the Drag and drop method or we have to register that user control to existing page using the Register Directive 10. Configuration identification Configuration control Configuration status accounting Configuration audits These terms and definitions change from standard to standard. ● Configuration status accounting is the ability to record and report on the configuration baselines associated with each configuration item at any moment of time. but are essentially the same. 5. Shall we use WCF in WWF? Yes. CM is equally appropriate to a wide range of fields and industry and commercial sectors . Which Ajax controls you have used in your project? 1. 4. What is Configuration management? Software configuration management The traditional software configuration management (SCM) process is looked upon by practitioners as the best solution to handling changes in software projects. Configuration audits are broken into functional and physical configuration audits. ● Configuration change control is a set of processes and approval stages required to change a configuration item's attributes and to re-baseline them. 4. ● Configuration identification is the process of identifying the attributes that define every aspect of a configuration item.9. 2. They occur either at delivery or at the moment of effecting the change. It identifies four procedures that must be defined for each software project to ensure that a sound SCM process is implemented. and the ability to verify that the final delivered software has all of the planned enhancements that are supposed to be included in the release. It identifies the functional and physical attributes of software at various points in time.

Every programmer must do unit testing after finishing development or during development itself. each comprised of multiple steps: * The software concept . people and data resources * Coding and debugging .Unit testing is done by developers.In automated Unit Testing.analyzes the information needs of the end users * The architectural design .Deployment . Some others simply debug the code and change the values during debugging to make sure the code works fine for different cases. the Unit Test will record the result as "Success". What Phases are available in SDLC? Some major phases are: . . they are not unit tests.identifies and defines a need for the new system * A requirements analysis .Architectural design & proto types along with specifications .13.Feedback and enhancement after impact analysis . you will write several Test methods to test the actual code. This testing is called 'unit testing'. This is called manual unit testing.Development (Coding) .Maintenance 15. implementation and maintenance. SDLC is a systems approach to problem solving and is made up of several phases.Unit testing can be automated by writing unit test scripts. software. SDLC is also known as information systems development or application development.evaluates the system's actual functionality in relation to expected or intended functionality. If the actual result from your code is same as the expected result.creates a blueprint for the design with the necessary specifications for the hardware.User Acceptance testing. Some facts about unit testing: .Unit testing can be done by writing separate test applications to call your classes and methods to make sure the classes work as expected. What is unit testing? After writing any code.Quality department does different tests.creates and programs the final system * System testing . every programmer will do some kind of testing to make sure the code works as expected. System Testing.Conceptualization of Application Product. This is called Automated Unit Testing. May vary according to business needs . . Performance and Load testing). What is Software development life cycle? SDLC is the process of developing information systems through investigation.Approval and Sign off process . Tell me about integration tool which you have used till now? SVC tool 16. design. The test method will call your actual class/method with some sample inouts and compare the result with expected result. . . analysis. Unit testing is done in different ways. Some programmers write simple test applications to test their own code.TESTING (Unit Testing. after writing each class/method. . Integration. 14. . .Requirement gathering and Analysis .

Client – Side State Management This stores information on the client's computer by embedding the information into a Web page.Automated Unit test scripts can be saved and easily repeated so that everytime someone make a change in the project.net page framework to automatically save the values of the page and of each control just prior to rendering to the page.NUnit is one of the most popular automated unit testing tool for . b. 19. ● Contract Each address supports a specific set of operations. endpoints are the key to invoking service functionality. a uniform resource locator(url).Otherwise the test result will be recorded as "Fail". It provides a managed code programming model for creating modern user interfaces that are rendered by DirectX. Hidden fields – Like view state. Cookies – Cookies store a value in the user's browser that the browser sends with every page request to the same server. View State – Asp. The data is available only when the form is processed. You can add custom values to the view state. hundreds of automated unit tests can be executed in few seconds to make sure that every piece of code is still working as expected. The techniques available to store the state information at the client end are listed down below: a. It is used by the Asp. Windows Presentation Foundation (WPF) is the new user interface technology that is part of .NET applications 17.Net uses View State to track the values in the Controls. In fact. Thus. What is endpoint in WCF? When the ServiceHost opens a communication channel for a service. What is session management? State management is the process by which you maintain state and page information over multiple requests for the same or different pages. An endpoint describes where services can be reached. All of the unit test scripts can be executed together and you can get a summary of all results. d.Net objects that can be compiled into an assembly or dynamically instantiated at runtime. as described by a service contract. Cookies are the best way to store state data that must be . hidden fields store data in an HTML form without displaying it in the user's browser. ● Binding Bindings indicate the protocols supported when messages are sent to a particular address. how they can be reached. . . 3D. When the page is posted. and what operations can be reached. You can easily combine traditional user interface elements with 2D. animation and effects. is a new declarative XML-based language developed by Microsoft that allows you to define a set of .0. you should use control state to ensure other developers don’t break your control by disabling view state. endpoints have three key parts: ● Address Refers to the URI where messages can be sent to the service. eXtensible Application Markup Language. c. Control State – If you create a custom control that requires view state to work properly. There are 2 types State Management: 1. video. What is XAML? Xaml (pronounced zammel). it must expose at least one endpoint for the service so that clients can invoke operations. one of the first tasks performed by page processing is to restore view state. music.Net 3. 18. or a cookie.

.Application State information is available to all pages. What are the different Ans: BasicHttpBinding TextMessageEncodingBinding HttpTransportBinding MetadataExchangeHttpBinding TransactionFlowBinding TextMessageEncodingBinding HttpTransportBinding WSHttpBinding TransactionFlowBinding TextMessageEncodingBinding HttpTransportBinding CustomBinding TextMessageEncodingBinding HttpTransportBinding bindings we have in wcf? 22. What is entity framework? Ans: The Entity Data Model is an Entity-Relationship data model. called the Content Page. 2. you can store it using profile properties. collection initializers. Ans: Pager control. 20. Both application state and session state information is lost when the application restarts. Session State – Session State information is available to all pages opened by a user during a single visit. 21.available for multiple Web pages on a web site. b. To persist user data between application restarts. Query Strings . e. linq.net 3. and has been used successfully for about 30 years. Entities are instances of Entity Types (e. Application State .g. auto implemented properties. including headers. Anonymous types. style definitions. The ER model is familiar to most if not all database application developers.Linq data source control 25.NET. and removes need to duplicate code for shared elements within your Web site.List view control. regardless of which user requests a page. The master page can be shared by any of the pages in your Web site. Use query strings when you want a user to be able to e-mail or instant message state data with a URL. Server – Side State Management a.Query strings store values in the URL that are visible to the user.5 newly added controls. footers.0 has got features like implicit type reference.0 and 3. What are the contracts Ans: Service contracts Data contracts Fault contracts Message contracts in wcf? 23.0 framework features Ans: 3. Employee) which . Customer. The central concepts in the EDM are entities and relationships. 2. the master page is a feature that enables you to define common structure and interface markup elements for your Web site. 24. Asp. About Master pages In Website development with ASP. object initializers. or navigation bars.

NET data provider objects retrieve data from and update data in the database.NET data provider you use. 26. The key (e. To update the data in a database based on the data in a data table..out process consists of state server and sql server. Employee WorksFor Department). 27. command. the command object uses a connection object to connect to the database and retrieve the data. ASP. Relationships are instances of Relationship Types which are associations among two or more entity types (e. a data adapter object issues a Select statement that’s stored in a command object. Update. By default. Next. and connections. Entities are grouped in Entity Sets (i. and provides a way to persist variable values for the duration of that session. We have inprocess and out process sessions. which include data adapters. What are the objects of ado.NET applications.NET uses two types of objects to access the data in a database: datasets. The data provider remains connected to the database only long enough to retrieve or update the specified data.NET session state identifies requests from the same browser during a limited time window as a session.NET objects are implemented by classes in the System. ASP.g. 28.NET session state enables you to store and retrieve values for a user as the user navigates ASP. Then. An entity key is formed from a subset of properties of the Entity Type.are richly structured records with a key.NET data provider objects.we have two types of workflows Sequential workflow State machine work flow 30. To retrieve data from a database and store it in a data table.. This is referred to as a disconnected data architecture. What is vsts? Ans: visual studio team system. which stores the data in the dataset. commands. which can contain one or more data tables.e. or Delete statement that’s stored in a command object.Data namespace of the .NET Framework. The . 29. Customers is a set of Customer instances).NET session state is enabled for all ASP. The server retains no knowledge of variable values that were used during previous requests. Relationships are grouped in Relationship Sets. the data is passed back to the data adapter. CustId.g. the data adapter object issues an Insert. and data adapter objects depend on the . What is session state? Ans: ASP. All of the ADO. and . This means that a Web server treats each HTTP request for a page as an independent request.net? Ans: ADO. the command object uses a connection to connect to the database and update the data. Then. A dataset stores data from the database so that it can be accessed by the application. .. it disconnects from the database and the application works with the data via the dataset object. However. What is workflow? Ans: set of activities organizing people or software is called work flow.NET pages in a Web application. EmpId) is a fundamental concept to uniquely identify and update entity instances and to allow entity instances to participate in relationships. HTTP is a stateless protocol. What is hibernate? Ans: hibernate is used to develop database applications or orm applications. the specific classes used to implement the connection. Then.

Employee) which are richly structured records with a key. which needs to be secured in order to prevent unauthorized access. Explain the page life cycle in asp. and perhaps quality assurance (QA) testers get together to review code. and accurately disseminated between servers. Do querystring/sessions Provide security. For this reason. Customer. Finding and correcting errors at this stage is relatively inexpensive and tends to reduce the more expensive process of handling.net Framework entity model? Ans: The Entity Data Model is an Entity-Relationship data model. clients may be exchanging confidential information with a server..e. Ans: remove operation contract for the methods in wcf which are not to be used in wwf. An entity key is formed from a subset of properties of the Entity Type. Employee WorksFor Department).g. The central concepts in the EDM are entities and relationships. Ans: PreInit Init InitComplete Preload load Control events Loadcomplete Prerender Savestatecomplete Render Unload 33. The ER model is familiar to most if not all database application developers. 32. how can we make wcf methods not accessible from wwf? 35. While consuming wcf from wwf.31. locating. or secure http. In many cases. https. easily. which hold information. Relationships are grouped in Relationship Sets. was developed by Netscape Corporation to allow authorization and secured transactions. Ans:They provide security but sessions provide more security than querystring. 38. Http is commonly used to access html pages.g. EmpId) is a fundamental concept to uniquely identify and update entity instances and to allow entity instances to participate in relationships. Relationships are instances of Relationship Types which are associations among two or more entity types (e. but other resources can be utilized as well through http. Http serves as a request and response procedure that all agents on the Internet follow so that information can be rapidly. What is code review? Ans: Code review is a phase in the software development process in which the authors of code.. The key (e.g. and has been used successfully for about 30 years.. Customers is a set of Customer instances). who are trying to access it. What is the difference between http and https? Ans:Hyper Transfer Protocol (http) is a system for transmitting and receiving information across the Internet.. Entities are instances of Entity Types (e.net. 37. Entities are grouped in Entity Sets (i. peer reviewers. and clients. How can u implement Cross page post back? . What is the difference between dll and a web service? Ans:dll does not make use of any protocol but webservice makes use of protocol and wsdl can be viewed for a web service before adding a reference where as dll methods can be viewed after adding the assembly reference. 34. What is . CustId. and fixing bugs during later stages of development or after programs are delivered to users. 36.

What is User control Ans: A user control is a kind of composite control that works much like an ASP. 41. Ans:ADD Service reference/or webservice webmethods. Ans : response object has different methods like redirect. what are the possible ways u can minimize the space occupied by grid in aspx page.write.Ans : using the postbackurl attribute. How can u handle the Ans:using try catch block exception? 43. How to use a user control in aspx page? Ans: if we drag and drop a user control automatically the control get registered with the @register directive.write file……… 42.config file. 46. 44.NET Web page—you can add existing Web server controls and markup to a user control. what are the things going to happen when using response object. 48. How can u handle Ans: using throw block particular type of exception? 45. What are different Ans: Service contracts Data contracts Fault contracts Message contracts What are stored procedures? types of contracts in wcf? 47.ddl statements. What is wwf? Ans: set of activities organizing people or software is called work flow. 39. and define properties and methods for the control. Registering control: . Ans: paging and caching can be done for the grid. where they act as a unit.we have two types of workflows Sequential workflow State machine work flow For a search criteria you are showing the data in a grid. What are the different ways of handling exceptions? Ans: we can use try catch block or custom errors tag in web. You can then embed them in ASP. What is the order of events fired when user control is used in aspx? Ans:load and then prerender What is the name to be given for a web service developed so that it can be used by an application? 49.NET Web pages. Ans: set of precompiled statements which nedded to be called explicitly and a stored procedure can contain dml. 40. 50.

NHibernate automatically generates SQL for loading and storing the objects. the health care system has evolved and has not been planned. NHibernate supports transparent persistence. How to kill session Ans: Session. New controls in .Abandon() 55. Can be added to the ToolBox (using drag and drop) 52. which associates a name with the user control.No visual design.it is . health care planning has often been evolutionary rather than revolutionary.aspx page to exist (can be used) 5. you can describe your mapping metadata with attributes in your source code.aspx pages.Component model 4. trade unions.NET Web page.Net page model with code behind 4.dll 2. A Src attribute.NET (CLR) objects and object-oriented idiom. This makes it possible to design the business logic using plain .NET 3.can be used in . which defines the virtual path to the user control file that you 51.Cannot be added to the ToolBox Custom Server Control 1. which associates a prefix with the user control.Has design-time and run-time interface 6. whereas in others a concerted effort has been made by governments. HTML needs to be declared programmatically 3.In the containing ASP. This prefix will be included in opening tag of the user control element. Differences between User control and custom control Ans: User control 1. 56.5 Ans: The List View control and The Data Pager control . user controls or other custom server controls. In some countries.NET Framework.net 3. 5. Given an XML description of your entities and relationships. 2. and The Data Pager control 53. Hibernate Ans: NHibernate is a port of Hibernate Core for Java to the . It handles persisting plain . However.ASP.Precompiled and it is . ● are including. Healthcare system Ans:Health care systems are designed to meet the health care needs of target populations. religious.0 Ans: The List View control. your object classes don't have to follow a restrictive programming model. ● A TagName attribute. This name will be included in the opening tag of the user control element.[ 54.NET . New controls in . create an @ Register directive that includes: ● A TagPrefix attribute. There are a wide variety of health care systems around the world.NET objects to and from an underlying relational database.Needs ASP. Optionally.Compiled at runtime. or other co-ordinated bodies to deliver planned health care services targeted to the populations they serve. charities.ascx extension.HTML design (Visual design possible) 3. Persistent classes do not need to implement any interface or inherit from a special base class.

net 2.Net. 4. Data reader and dataset differences Ans: Data reader 1. 2.57. It is a read only and forward only data. . It is defined with multiple tables. 5. d) VSS is a common repository e) In VSS store the information like FRS.NET 1. It can't defined with out data adapter. TP. It can't persist the data. Disconnected by Dataset by using Adapter 59. Test cases documents f) In VSS documents read only but not modifying g) If we want to modify that first we need to check out (download) the required file to our local system then modify the file and then check in (upload) the modified one.0 architecture . 5. b) VSS is nothing but configuration management tool c) VSS is a virtual library of computer files. SRS. It is comes under connected architecture. How do you technically define? Ans:Having two architectures in ADO. It is a disconnected architecture. 3. Vss Ans: VSS stands for visual source safe. 3. 60. 58. Connection architectures in ADO. One of the most advantage is it is much faster than dataadapter Data set: 1. It is a relational data cache hosted in application domain during execution. 4. Connected by technically using datareader 2. It can persist the data.

you have to remove these tags . I want to get data in gridview textboxes. Can I use master page to an existing . Two types of views 1. I want to bind this dataset to a gridview. 61. How do you perform this.In proc 2. On clicking button. 2. we have different types of sessions 1.Architecture of CLR I am using a dataset to get some data. Ans: Through Gridview_RowCommand event 62.Out proc Cookies: These are stored at Client side and these are insecured . Complex views: Created using multiple tables these are not updateable 63. simple view: created by using single table these are updateable views. 64. Gridview has button and textboxes.aspx with <form><div> tags? Ans:No. Difference between session and cookie Ans: Session: These are stored at server side these are secured. It can’t acess through different pages.it stores 4096 bytes of data only. About views sql server Ans: View: These are logical tables in database.

What is Global.asax file. The response of the interface to the actions of the user is much faster. Ans: By using the session_start event from Global. However. existing solutions in the marketplace have not kept pace with the changing needs of technical users and the expanding inclusion of non-technical users as part of the lifecycle. These language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installs satellite assemblies in a language-specific subdirectory for each language.asax file resides in the root directory of an ASP. Advantage of using Ajax in asp. 71. I want to kill session and create new session for that user.NET runtime. A shared assembly is normally stored in the global assembly cache which is a repository of assemblies maintained by the .NET-based application. How do you do this.asax and what are events? The Global. With Ajax. About VSTS(Visual Studio Team System) The marketplace has begun to mature and accept Application Lifecycle Management (ALM) as a proven discipline for creating high quality applications in a reliable fashion. the same user logged into another system.Session_Start. Tell about updatepanel Ans: It’s used for asynchronous post back in webpage. At run time. How to count number of hits to application Ans: By using Application_start event from Global.asax file. external users cannot download or view the code written within it.net? This can become tedious and inefficient.asax file. Global. 65.NET application file. 69. 2)Triggers:Asynchronous and synchronous triggers.Session_End etc.NET or by HttpModules. 70. What is Global. What are the different types of Assemblies? Private Public/Shared Satellite. a session has created. is an optional file that contains code for responding to application-level events raised by ASP. also known as the ASP. 67. Application_End. Satellite assemblies are often used to deploy language-specific resources for an application. The Global. The third generation of Visual Studio Team System – Visual Studio Team System 2010 – will address the needs of these customers with a robust and streamlined solution 72. Events : Application_Start.NET Framework class derived from the HttpApplication base class.one user logged into a system.asax is parsed and compiled into a dynamically generated . 66. It is having properties like 1)ContentTemplate: which is used for holding different controls. Even though Ajax has not yet reached its full capabilities. it is easy to see what is is capable of. . the page can be refreshed dynamically.asax file itself is configured so that any direct URL request for it is automatically rejected. The Global.asax and what are events? It is used for configuration of application it contains events like 1)Application_start 2) Application_End 3) Session_start 4)Session_end 5)Application_BeginRequest 6)Application_EndRequest 68. A private assembly is normally used by a single application and is stored in the application's directory.

What is User control ? In addition to using Web server controls in your ASP. formerly called Avalon.net 3. ToolBar and Tab related controls.NET 3.5? NET framework 2. formerly called Indigo.73.0. such as logging in to a website .NET Web pages. formerly called InfoCard.NET Web pages. a serviceoriented messaging system which allows programs to interoperate locally or remotely similar to web services.NET synchronization API to synchronize local caches and server side datastores Asynchronous network I/O API . where they act as a unit. you can create your own custom.0 and 3. EditItemTemplate. which uses 3D computer graphics hardware and Direct3D technologies.0. A user control is a kind of composite control that works much like an ASP.NET ADO. New controls in . memory allocation. and define properties and methods for the control. assembly loading and more Full 64-bit support for both the x64 and the IA64 hardware platforms New personalization features for ASP. including data bound controls 76.5 DataPager control ListView templates: LayoutTemplate. New controls in .NET framework 3. Windows Workflow Foundation (WF) allows for building of task automation and integrated transactions using workflows. Dataset. You also have the standard UI controls and a host more for you to explore. reusable controls using the same techniques you use for creating ASP.NET. skins and webparts.NET Web pages. Canvas.NET Micro Framework .0: Also called WinFX. DockPanel. 75. So we have the folowing evolution in class: Linq for SQL. . Windows CardSpace. StackPanel.NET Web page—you can add existing Web server controls and markup to a user control. such as support for themes.NET framework 3. These controls are called user controls.NET Ajax Anonymous types with static type inference Paging support for ADO. You can then embed them in ASP. a new user interface subsystem and API based on XML and vector graphics. Windows Presentation Foundation (WPF).5: It implement Linq evolution in language. GroupTemplate and InsertItemTemplate DataPager control 74. Difference between Framework 2. a software component which securely stores a person's digital identities and provides a unified interface for choosing the identity for a particular transaction. XML.0: It brings a lot of evolution in class of the framework and refactor control including the support of Generics Anonymous methods Partial class Nullable type The new API gives a fine grain control on the behavior of the runtime with regards to multithreading. Object Addin system p2p base class Active directory ASP.includes a new set of managed code APIs that are an integral part of Windows Vista and Windows Server 2008 operating systems and provides Windows Communication Foundation (WCF). 3.

audio and video. Previously. WCF unified all these mechanisms into a single. but we can easily define explicit opt-in data contracts for custom types.NET Framework 2. Data contracts Define which data types are passed to and from the service. WCF defines implicit contracts for built-in types such as int and string.0.This attribute is used to define the method inside Interface. What is WWF? Windows Workflow Foundation is a framework that enables users to create system or human workflows in their applications written for Windows Vista. 77.0. common. and the Windows Server 2003 operating systems. transactional communications (Distributed Transactions). such as order processing and inventory control. What is WPF? The Windows Presentation Foundation (or WPF) is a graphical subsystem for rendering user interfaces in Windows-based applications. and is also available for Windows XP Service Pack 2 or later. WPF was initially released as part of . 2D and 3D drawing.Support for HTTP pipelining and syndication feeds. It also enables rich control.[1] A WPF application can be deployed on the desktop or hosted in a web browser. but XPS and vector-based drawing are included.NET Remoting). is an application programming interface in the . ServiceContract . 3D features are not supported. WPF is built on DirectX. data binding. in December 2006. There are two types of Data Contracts. Designed to remove dependencies on the aging GDI subsystem. advanced typography. or complex scenarios encountered by large enterprises.This attribute is used to define the Interface.0.attribute used to define the class DataMember . New System. WPF also offers a new markup language. fixed and adaptive documents.Microsoft Silverlight is a web-based subset of WPF that enables Flash-like web and mobile applications with the same programming model as .WCF is designed in accordance with Service oriented architecture principles to support Distributed computing where services are consumed by consumers. and asynchronous communications (Message Queues) existed. 80. raster graphics.WPF is included with Windows 7. Originally code named "Indigo". Ans : Service Contracts and Data Contracts Service contracts Describe which operations the client can perform on the service. general service-oriented programming model for communications. gradients and transforms. and Windows Server 2003.NET applications.NET Framework 3. known as XAML which is an alternative means for defining UI elements and relationships with other UI elements. and development of the visual aspects of Windows programs.NET Framework 3. What Contracts are available in WCF? 79. Windows Workflow Foundation comes with a . There are two types of Service Contracts. separate APIs for SOAP-based communications for maximum interoperability (Web Services).NET Framework for building connected. Windows XP. animation. OperationContract . It consists of a namespace. Clients can consume multiple services and services can be consumed by multiple clients 78.CodeDom namespace. which provides hardware acceleration and enables modern UI features like transparency. serviceoriented applications. and designers for Visual Studio 2005. such as showing UI controls based on user input. design. WCF is one of four APIs introduced with the . binary-optimized communications between applications running on Windows machines (. WPF provides a consistent programming model for building applications and provides a clear separation between the user interface and the business logic. WCF unifies several other communication APIs supported by the .attribute used to define the properties. DataContract . It aims to unify a number of application services: user interface. Windows Workflow Foundation can be used to solve simple scenarios. vector graphics. What is WCF? The Windows Communication Foundation (or WCF). Windows Vista and Windows Server 2008. an inprocess workflow engine.

regression testing). It's up to you if you want to declare it in XAML or write it in code. a rehostable and customizable workflow engine. The Windows Workflow Foundation API provides full support for Visual Basic . What is unit testing? Unit testing is a software development process in which the smallest testable parts of an application. Unit testing is often automated but it can also be done manually. 82. You can use WPF without using XAML. What is XAML? XAML stands for Extensible Application Markup Language. Human workflows. and make sure the module still works correctly (i.NET and C#. Its a simple language based on XML to create and initialize . debugging within a workflow. User-interface page flows. Document-centric workflows. and developing your workflow completely in code or in markup.0 technologies. The procedure is to write test cases for all functions and methods so that whenever a change causes a fault. and tools for quickly building workflow-enabled applications on Windows.programming model. it affords several benefits. Workflows for systems management. Scenarios that Windows Workflow Foundation addresses include: ● ● ● ● ● ● ● Enabling workflow within line-of-business applications. Which Ajax controls are you have used in your project? ModalPopUpExtender DragDropExtender AlwaysVisibleControlExtender NumericUpDownExtender HoverMenuExtender CollasiblePanelExtender CalenderExtender Accordion TextBoxWaterMarkExtender. Unit tests find problems early in the development cycle. Business rule-driven workflows. They are briefly described here to provide a basic understanding. Unit testing allows the programmer to refactor code at a later date. are individually and independently scrutinized for proper operation. Declare your UI in XAML has some advantages: ● ● XAML code is short and clear to read Separation of designer code and logic . called units. written contract that the piece of code must satisfy. XAML ist just another way to create and initialize objects.NET objects with hierarchical relations. A unit test provides a strict.e. The Programming Guide section of this SDK provides implementation details and a deeper level of knowledge.NET Framework 3. All you can do in XAML can also be done in code. it can be quickly identified and fixed. Windows Workflow Foundation provides a consistent and familiar development experience with other . a specialized workflow compiler. Windows Workflow Foundation also provides an extensible model and designer to build custom activities that encapsulate workflow functionality for end users or for reuse across multiple projects. As a result. The goal of unit testing is to isolate each part of the program and show that the individual parts are correct. a graphical workflow designer. 83. Composite workflows for service-oriented applications. 81. Altough it was originally invented for WPF it can by used to create any kinds of object trees. The concepts in this section are inherent to Windows Workflow Foundation. such as Windows Communication Foundation and Windows Presentation Foundation.

ViewState has been saved for the page and for all controls. Any changes to the page or controls at this point will be ignored. see Data Binding Events for Data-Bound Controls later in this topic. if the page contains validator controls. Use this event if you need to perform processing on your page or control before the Load event. Use this event for tasks that require that all other controls on the page be loaded. If you create a custom control. However. For more information. it loads view state for itself and all controls. Use this event for processing tasks that require all initialization be complete. Use the OnLoad event method to set properties in controls and establish database connections. Raised by the Page object. 85. All ASP. Use the event to make final changes to the contents of the page or its controls. This is not an event. Use these events to handle specific control events. then recursively does the same for each child control. Use this event perform tasks that require view state to be saved. Use this event to read or initialize control properties. The Page calls the OnLoad event method on the Page. In WCF the relationship between Address. the Page object calls this method on each control. which does the same for each of its child controls until the page and all controls are loaded. Before this event occurs. you typically override this method to output the control's markup. at this stage of processing. check the IsValid property of the Page and of individual validation controls before performing any processing. Before the Page instance raises this event.● ● Graphical design tools like Expression Blend require XAML as source. such as a Button control's Click event or a TextBox control's TextChanged event. if your custom Page Event Init InitComplete PreLoad Load Control events LoadComplete PreRender SaveStateComplete Render . Ans: What are asp. Contract and Binding is called Endpoint. Note: In a postback request.NET Web server controls have a Render method that writes out the control's markup that is sent to the browser. The separation of XAML and UI logic allows it to clearer separate the roles of designer and developer. and then processes any postback data included with the Request instance. ● Each data bound control whose DataSourceID property is set calls its DataBind method. The PreRender event occurs for each control on the page. What is endpoint in WCF? Every service must have Address that defines where the service resides.net page life cycle events Typical Use Raised after all controls have been initialized and any skin settings have been applied. instead. but that do not make any changes to controls. Contract that defines what the service does and a Binding that defines how to communicate with the service. Before this event occurs: ● The Page object calls EnsureChildControls for each control and for the page. 84.

} } Class child : parent { override void hello() { Console.WriteLine(“Hello from Child”). What is a sealed class Ans: Sealed classes are used to restrict the inheritance feature of object oriented programming. Example of Virtual Method in .Unload control incorporates only standard ASP.NET Server Controls. see Developing Custom ASP. Classes can be declared as sealed. If you attempt to call a method such as the Response.WriteLine(“Hello from Parent”). objParent. What is encapsulation Ans: Encapsulation is the procedure of covering up of data and functions into a single unit (called class). This event occurs for each control and then for the page. the page and its controls have been rendered. A user control (an . so you do not need to explicitly render the control in code. They are:public. we allow the function to be overridden in any of derived class. or finishing up logging or other request-specific tasks. private. use this event to do final cleanup work. What are access specifiers Ans: C# supports five types of access specifiers to tell the extent of visibility of a class member. 88. 87. so you cannot make further changes to the response stream. use this event to do final cleanup for specific controls. What is Virtual Method Ans: By declaring base class function as virtual. such as closing control-specific database connections. Note: During the unload stage. In controls. For more information. This is accomplished by putting the sealed keyword before the keyword class in the class definition.NET Web server controls and no custom markup.Write method. Once a class is defined as sealed class. internal and protected internal.Net: Class parent { virtual void hello() { Console. protected. } . 86.hello(). the page will throw an exception. 89. this class cannot be inherited. such as closing open files and database connections. you do not need to override the Render method. } } static void main() { parent objParent = new child().ascx file) automatically incorporates rendering. For the page itself.

How to dispose an object from garbage collector? Ans: gc. What is Copy and Clone in . By default. Service contracts Describe which operations the client can perform on the service.This attribute is used to define the Interface.asax? Ans: The Global. The Global.ups for a browser does model pop up works.NET Web pages. 90.supressfinalize(Object) 93. Can we fire trigger in asp.net Clone will copy the structure of a data where as Copy will copy the complete structure as well as data . Difference between Data contract and Service Contract. } class MyService : IMyContract . and assigns them to applications as needed. 98. ServiceContract . What is global. What is placed in webpage to work with Ajax controls? Script Manager 95. What is a command object Ans: The ADO Command object is used to execute a single query against a database. the Script Manager control registers the script for the Microsoft AJAX Library with the page. OperationContract . adding.asax file is in the root application directory. [ServiceContract] interface IMyContract { [OperationContract] string MyMethod( ). 94.//Output Hello from Child. 96. maintains a pool of HttpApplication objects. 91. Yes 97.This attribute is used to define the method inside Interface. retrieving. What is the use of Script Manager? The Script Manager control manages client script for AJAX-enabled ASP.net instead of a stored procedure Ans: No 92. In case we disabled pop. The query can perform actions like creating.asax file. There are two types of Service Contracts. deleting or updating records. which is derived from the HttpApplication class. This enables client script to use the type system extensions and to support features such as partial-page rendering and Web-service calls.

The configured service class is identified by the serviceType attribute.People"> <endpoint address="http://localhost:8080/people" .serviceModel> configuration section with a <services> subsection that contains a <service> element for each service your application is hosting. } If DataMember attributes are not specified for a properties in the class.{ public string MyMethod( ) { return "Hello World".microsoft. <?xml version="1. A contract implementation for which no endpoint is configured is not reachable—everything is explicit. [DataMember] public string LastName.0" encoding="utf-8" ?> <configuration xmlns="http://schemas. in the case of an ASP. you must configure an endpoint for each contract and all contracts must reside at distinct network addresses.com/.NetConfiguration/v2.config file. the bindingSectionName refers to the predefined or custom binding to be used and the contractType points to the interface class that hold the WCF [ServiceContract] for the endpoint contract. WCF defines implicit contracts for built-in types such as int and string. To do so. you need a <system. There are two types of Data Contracts. [DataContract] class Contact { [DataMember] public string FirstName.serviceModel> <services> <service serviceType="SelfHostedService. in the web. DataContract . but we can easily define explicit opt-in data contracts for custom types.attribute used to define the class DataMember . that property can't be passed to-from web service.attribute used to define the properties. Whether any changes take place when you add wcf service in webconfiguration file. Each endpoint that the service shall expose is configured with an <endpoint> element beneath the respective <service> element. 99. you can configure the service endpoints in the application configuration file or. } } Data contracts Define which data types are passed to and from the service. If a class implements multiple service contracts. The address attribute specifies the network address of the service.0"> <system.NET hosted service.

Assembly consists of MSIL code.bindingSectionName="basicProfileBinding" contractType="SelfHostedService. StateActivity activities provide a mechanism to define the various stages in the model. . 102. 103. The StateMachineWorkflowActivity is a CompositeActivity. Most notably. The StateMachineWorkflowActivity has properties that are required for the execution of the state machine workflow. EventDrivenActivity activities at this level provide a global mechanism for processing workflow events and automate state transitions. What is Assembly? An Assembly is a unit of deployment like . the block is optional. meaning the StateMachineWorkflowActivity can contain other activities. the StateMachineWorkflowActivity has two properties that are important: InitialState and CompletedState.NET we have the try and catch block that enables us to handle the exceptions. Finally.serviceModel> </configuration> 100. How do you handle Exceptions in your applications? In . EventDrivenActivity activities are permitted because the root activity itself behaves like a state. try { // Code where we are anticipating Exceptions } catch (Exception) { // Code to Handle the Exception } finally { // Code that needs to be executed in any case // typically cleaning up code } The try and catch block are mandatory for handling exceptions. Therefore. Assembly is a file can be automatically generated by compiler upon successful compilation. you can have EventDrivenActivity activities at the root level that are used by all the State activities in the StateMachineWorkflowActivity. The StateMachineWorkflowActivity and the EventDrivenActivity activities are the only permitted child activities of the StateMachineWorkflowActivity.IPeople"/> </service> </services> </system. Tell about StateMachine Activity with an Example.exe. The StateMachineWorkflowActivity is an activity container used to create workflows that follow a state machine model. Can we assign execute reader to Data Reader You have to close Execute reader as dr.close().dll or . while fetching records? 101.

Satillite Assembly types of Assemblies? 106. You can either do it manually by simply copying and pasting the assembly into the GAC. Also you are required to import the System. it will run in its own memory. These keys are generated by using a utility called SN. Public Assembly 3. } } The first step is just compile your source code so that you will get . Private Assembly 2.key After compiling the assembly with the statements. Basically it's an external code repository for programs. .cs /t:library /a.Net Module or DLL The Second step is to generate a key file. What are the different 1.dll Here the /i option is for installation.snk Now your key file is ready and is stored in the same folder After generating the strong name key pair file. otherwise the compiler would be showing you an error stating that it does not recognize the statement. Since usually several different programs reuse the same DLL instead of having that code in their own file. you can use the same utility as follows.Reflection.keyfile:sample. 105. for doing that you have to add the following lines in the code of your assembly.Write("Hello. you now have to place the assembly into the GAC. it is required to associate this file with our assembly. both component and consumer will share same memory and Exe is out process component. containing the strong name information being added to it. What is difference between . For adding an assembly you would write as follows on the command prompt. Using System.NET framework. A DLL (Dynamic Link Library) is a file that can be loaded and executed by programs dynamically.exe (SN stands for shared name). which is located at. c:\winnt\assembly or you can also use a utility gacutil that is installed with the . this dramatically reduces required storage space. A synonym for a DLL would be library. Issue the following command at the command prompt sn -k mykeyfile.104. What are the steps to make a assembly as shared? namespace SampleAssembly { private void function() { Response.This is the sample Application illustrating Shared Assembly Creation"). which contains unique Assembly name How can one create a unique Assembly name? Let us see Microsoft now uses a public-private key pair to uniquely identify an assembly.Reflection namespace in order for the statement to work. gacutil /i sample. namespace SampleAssembly Note here that the information regarding the file containing the strong name key pair is placed in the code file before the namespace declaration.exe? An exe is an executible program.dll and . DLL does not have main function but exe has main function Here DLL is inprocess component. csc SampleApplGAC. And for removing an assembly from the GAC.

then. The main isuue to note is that the processing of these controls is done on the server.(this use for MS Access. Consider: . ExecuteNonQuery().dll The /u option here is for uninstalling or removing an assembly from the cache. ExecuteScalar().Table2 and Table3 might all be tables in one Dataset. The consumer objects work in disconnected mode. 107. What are the classes in Ado. and then update the server with the changes in one efficient operation. DataRow 108.gacutil /u sample.NET classes into provider and consumer objects. Another Objects There are some other simple objects. For example. have methods /functions and can basically do all that other . What 110.NET classes can do. ie they can treated and accessed the same way as any other . the actual connection object for OLE DB provider is OleDBConnection. The provider objects need an active connection.. Execute Non Query and Execute Reader? ExecuteScalar returns object ExecuteNonQuery returns Integer type ExecuteReader returns DataReader 109. Provider Objects There are the objects define in each . examine.net? We can divide the ADO.WebControls base class.NET data provider.). we use these first to read the data. DataColumn. What are the differences between Html controls and Web Server Controls? Web Server Controls are group of controls derived directly from the System. For example Table1. They are reusable components that can perform function as the ordinary HTML controls. With this object you can get all the data in each table quickly. which has methods like ExecuteReader(). CreateParameter(). Consumer Objects Dataset Object It represents a set of related tables refrenced as one unit in your application. depending on our needs. What are the methods for Command class object? The Command Classes implement the IDbCommand Interface.NET classes.Web. Consumer objects are tools that we use to access and manipulate the data after we have read it into memory.NET provider connection class is OdbcConnection... The name are prefaced with a name unique to the provider.and the ODBC . the actual reading and writing to and from data source is done with the provider-specific objects. DataTable. are the return types of Execute Scalar.Provider for SQLServer is SqlConnection. Cancel() and Prepare(). the real advantage of web controls is that they are programmable. Oracle. change it while disconnected from server. They therefore repond to events. Provider objects are each type of data source.UI. we can work with the data in memory using the consumer objects and/or update the data in the data source using the provider objects to write the changes back to the data source.

Though it is similar to a table. Web s controls do not necessarily map to any html tag . 2)Html attributes are not stronly typed to html s controls. DELETE and UPDATE triggering actions. These triggers differ from each other in terms of their purpose and when they are fired. 111. this is their default value Web Server Controls are rendered as standard html to client browsers thus abracting the functionality.)] [WITH ENCRYPTION] AS select_statement [WITH CHECK OPTION] 112. Web s controls were designed with this in mind. A view is a virtual table that consists of columns from one or more tables.HtmlControls namespace. Hence.UI. What is a trigger? Triggers are special types of Stored Procedures that are defined to execute automatically in place of or after data modifications. you can reference it like any other table in a database.UI. Once you have defined a view. They are defined in System. Syntax CREATE VIEW view_name [(column_name[. The base class is System. They are INSTEAD OF triggers and AFTER triggers. a view is an object that derives its data from one or more tables. Tell me about Views in Sql server. 3)Html s controls do not distinguish between browsers though are not always rendered in a predictable way across browsers. Although these two categories may have overlapping functionality and may be even used synonymously they have important differences.Web. no abstraction. These tables are referred to as base or underlying tables.column_name]…. Consider <input type="button" id="mybutton" name="mybutton" value="click me" runat="server"> te only difference between this tag declaration and that of a normal html button tag is the runat attribute. eg calendar control. web s controls have strongly typed attributes making for easier access to methods and properties of the base class.HtmlControls.. They also make it easy to deal with complex controls such as the Calendar control which would be hell to implement in html! HTML server controls map directly to html tags.Web.. It is a query stored as an object. There are two different types of triggers in SQL Server.. Html tags are converted to Html server controls by including the runat attribute in their declaration and setting it to server. such as 1)HTMl s conctrols offer one to one mapping with html tags . it is stored in the database. .. They can be executed automatically on the INSERT.HtmlControl. A view erves as a security mechanism.<asp:Button id="MyButton" runat="server" Text="This is Zimcoder's button"/> the key attribute is the "runat" which is set to the value "server" .

What are new features added in Sqlserver2005? Top 10 Features for Database Administration Feature Description Database Mirroring Extend log shipping capabilities with the database mirroring solution. This capability enables administrators to troubleshoot problems on a server by executing diagnostic functions or Transact-SQL statements.113. This capability provides greater scalability. without developer or administrator intervention. deploy. you as a developer can enable end users to: . Online Restore With SQL Server 2005. With SI. deletes. Fast Recovery A new faster recovery option improves availability of SQL Server databases. appearance. the peer-to-peer transactional replication feature improves support for data scale out using replication. while a clustered index is being rebuilt. Tell me About Web parts? ASP. Using the Web Parts control set. and troubleshoot SQL Server databases. Dedicated Administrator Connection SQL Server 2005 provides a dedicated administrator connection that administrators can use to access a running server even if the server is locked or otherwise unavailable. When users modify pages and controls. a new integrated suite of management tools with the functionality to develop. Standards-based Information Access Any object. Data Partitioning Data partitioning is enhanced with native table and index partitioning that enables efficient manageability of large tables and indexes. Online Indexing Operations The online index option allows concurrent modifications (updates. built in replication from Oracle to SQL Server. Snapshot Isolation Snapshot Isolation (SI) level is provided at the database level.NET Web Parts is an integrated set of controls for creating Web sites that enable end users to modify the content. and behavior of Web pages directly from a browser. You will be able to use database mirroring to enhance availability of your SQL Server systems by setting up automatic failover to a standby server. merge replication over https. SQL Server 2005 provides comprehensive schema change (DDL) replication. the rest of the database remains online and available. and significant merge replication scalability and performance improvements. These Web Parts capabilities mean that developers can empower end users to personalize a Web application dynamically. Replication Enhancements For distributed databases. a feature called personalization. Administrators can reconnect to a recovering database after the transaction log has been rolled forward. The modifications can be applied to all users on the site or to individual users. or business intelligence component can be exposed using standards-based protocols such as SOAP and HTTP—eliminating the need for a middle-tier listener. users can access the last committed row using a transitionally consistent view of the database. as well as enhancements to previous functionality. data source. the settings can be saved to retain a user's personal preferences across future browser sessions. Additionally. to access a Web services interface that is exposed by SQL Server 2005. SQL Server Management Studio SQL Server 2005 includes SQL Server Management Studio. and inserts) to the underlying table or clustered index data and any associated indexes during index data definition language (DDL) execution. 114. database administrators are able to perform a restore operation while an instance of SQL Server is running. you can continue to make updates to the underlying data and perform queries against the data. next-generation monitoring capabilities. such as IIS. Online restore improves the availability of SQL Server because only the data being restored is unavailable. For example.

This reduces data entry and configuration demands on end users.NET Server Controls and How to: Validate Against Values in a Database for ASP. Users can add new Web Parts controls to a page. • Personalize page layout. Authorized users can configure site-level settings. For details. How to use activities in wwf? . Range RangeValidator Checks that a user's entry is between checking specified lower and upper boundaries. Users could personalize not only the connection itself. such as those in e-mail addresses. Users can establish connections between controls so that. Pattern RegularExpressionValidato Checks that the entry matches a pattern matching r defined by a regular expression. For example. see How to: Validate Required Entries for ASP. You can attach more than one validation control to an input control. see How to: Validate Against a Specific Value for ASP. or greater than). and even the data in the controls. appearance. see How to: Validate Against a Range of Values for ASP. and behavior. determine who can access a site or page. hide them. or minimize them like ordinary windows. see How to: Validate Against Patterns for ASP.Net? Description Ensures that the user does not skip an entry. see How to: Control Validation Error Message Display for ASP. or change its appearance. but the appearance and details of how the chart control displays the data. You can check ranges within pairs of numbers. properties. User-defined CustomValidator Checks the user's entry using validation logic that you write yourself. For more information.NET Server Controls. A related control. For details. and prevent users who are not administrators from personalizing the shared control.NET Server Controls. This type of validation enables you to check for predictable sequences of characters. 115. equal. a chart control could display a graph for the data in a stock ticker control.NET Server Controls.NET Server Controls. but is often used in conjunction with other validation controls to display the error messages from all the validation controls on the page together. Validation Type of validation Required entry controls in ASP. • Export and import controls. For details. Users can import or export Web Parts control settings for use in other pages or sites. for example. For example. Control to use RequiredFieldValidator 116. alphabetic characters. you might specify that a control is required and that it also contains a specific range of values. and so on. a user in an administrative role could set a Web Parts control to be shared by all users.• Personalize page content. does not perform validation. and so on. • Manage and personalize site-level settings. For details. • Create connections.NET Server Controls and How to: Validate Against a Data Type for ASP. telephone numbers. postal codes. the ValidationSummary control. Users can drag a Web Parts control to a different zone on a page. retaining the properties. remove them. against the value of another control (using a comparison operator such as less than. or for a specific data type. For details. see How to: Validate with a Custom Function for ASP.NET Server Controls. Comparison CompareValidator Compares a user's entry against a to a value constant value. and dates. This type of validation enables you to check for values derived at run time.NET Server Controls. set role-based access to controls.

WWF is a programming model for building workflow-enabled applications on windows. The value of variable strModName is set to the Process.net for wpf application? are Master Pages and why we use it? . The Futures (July 2007) release adds: History support for the Safari browser. Then. What are the Using system. selecting elements by CSS selectors or classes.GetFileNameWithoutExtension(strModName) appProc = Process.GetFileNameWithoutExtension. Sequential workflow is more rigid in format and execution path has a determistic nature. I utilise the System. I simply check the Length property of the array appProc.NET AJAX Advantage The new release includes support for managing browser history (Back button support). In State machine execution path is undetermestic nature 117.Show("There is an instance of this application running.Process class for this purpose: Private Sub CheckInstanceOfApp() Dim appProc() As Process Dim strModName.GetCurrentProcess.GetCurrentProcess. In order to determine if there are other instances of an application running. CSS Selectors APIs have been modified to be applicable to W3C recommendations.XAML 120.Diagnostics. strProcName AsString strModName = Process.") End If End Sub In the example. A sequential workflow has clear start and finish boundaries. In sequential execution. In the following example. and the value of variable strProcName is set to the System. as a Process. Important: this version of the browser history feature is now outdated and should not be used. Then I define two string variables: strModName and strProcName. ASP.Path.MainModule. There are two basics type of workflow Sequential Workflow and State machines workflow. Workflow has states and the state waits for events to help it move to next state.Show("There are no other instances running.MainModule. inclusion of “titles”. it means that there is more then one instance of the application running. A script resource extraction tool that allows you to create script files on disk that originate from embedded resources in assemblies.Path. one task is executed after other. I set the value of the array appProc to the value of Process. A State machine workflow is more dynamic in nature. How to create only one instance of application for each user? It's usually a good practice to make sure that only one instance of your application can be run at a time. System. encoding and encrypting of server-side history state and the ability to handle history in the client without a server requirement. to which I pass the name of the module in strModName.GetProcessesByName and pass the strProcName to it. I define an array. 118. and information on accessing “Astoria” Web data services. What classes that are supported by . which is what I use to base the displayed message box on.GetProcessesByName(strProcName) If appProc.ModuleName strProcName = System. Workflow controls execution in Sequential workflow.IO. please download 119.Length > 1 Then MessageBox. Workflow namespace has all the necessary modules to develop any type of workflow.IO. appProc.ModuleName property. you need to get a list of all the processes running and see if an instance of the application is there. If the length is more than one.") Else MessageBox. Instead.

or a cookie. you can store it using profile properties. the master page is a feature that enables you to define common structure and interface markup elements for your Web site. Query Strings . called the Content Page. Control State – If you create a custom control that requires view state to work properly. Use query strings when you want a user to be able to e-mail or instant message state data with a URL. What is state management? State management is the process by which you maintain state and page information over multiple requests for the same or different pages 122. Cookies – Cookies store a value in the user's browser that the browser sends with every page request to the same server. footers. When the page is posted.net page framework to automatically save the values of the page and of each control just prior to rendering to the page.NET. b. This way when you are redirected to another server you don't need to worry about Choose server side for better security and The state is saved on and web page's therefore to side state management is Confidential statereduce bandwidth used with client side state more server and size. e. Application State .Net uses View State to track the values in the Controls. . Server isn't delivered to the client. Cookies are the best way to store state data that must be available for multiple Web pages on a web site.Query strings store values in the URL that are visible to the user. a uniform resource locator(url). Server – Side State Management a. The master page can be shared by any of the pages in your Web site. Session State – Session State information is available to all pages opened by a user during a single visit. b. 121. Difference session? between client side state management and server side state management? Choose client side for better scalability data support multiple servers. and removes need to duplicate code for shared elements within your Web site. Both application state and session state information is lost when the application restarts. you should use control state to ensure other developers don’t break your control by disabling view state. 2. How to maintain the state for There are 2 types State Management: a particular user? 1. c. less responsive and you'll suffer from performance issues. 123. You and from the client the traffic to should always to the browser Server side side state management sends data to the user's browser andremember is sent back to that data that using client the server This situation increases bandwidth usage and therefore your application will be every time. including headers. To persist user data between application restarts. d. Client – Side State Management This stores information on the client's computer by embedding the information into a Web page. It is used by the Asp. or navigation bars. How many ways can you maintain information in Using sessions with cookies and sessions without cookies 124. style definitions. reducesecure. The techniques available to store the state information at the client end are listed down below: a. You can add custom values to the view state.and it's saved on the server.In Website development with ASP. Hidden fields – Like view state. one of the first tasks performed by page processing is to restore view state. View State – Asp. hidden fields store data in an HTML form without displaying it in the user's browser. browser. data shouldn't be the because data isn't sent management. The data is available only when the form is processed. regardless of which user requests a page. The of using the helps side web to get better scalability by storing state and in the servers because all the clientis located server's memory.Application State information is available to all pages. The client side support multiple user's browser instead state in the your state.

● System. One of these Web protocols is the Simple Object Access Protocol (SOAP). WCF services provide 25 to 40% improvement in performance over ASMX services and hence become natural preference for high performance application. ● System.Threading.125. Performance Most often sharpness of underlying technology contributes in meeting performance based business SLAs (e. . only possible way to host them was on to IIS (Internet Information Server). there has been a continuous improvement in core . ● System.0.FrameworkElement implements some of the members that are defined by UIElement. Main difference between web services and WCF? Reach ASMX services which TCP IP. one can host the services into Windows services.Visual provides the link between managed WPF libraries and milcore. It provides template control which allows the user to replace the standard appearance of a control with a custom appearance. With WCF services.net framework to improve performance.UIElement adds support for WPF essentials like layout. serialization.ItemsControl is the base class for all controls that show a collection of items.g.Media. WCF Other clients be reached using Unlike ability: or partnerswereuse having Pipe above mentioned code base channels to multiple to these services without primarily themaintain separate preferred to serve internet/intranet like Http. Interoperability Large Enterprises having mix of technologies. In applications explicitly using WSE to support some of these features is difficult and cumbersome.Windows.Windows.ContentControl is the base class for all controls that have a single piece of content. ● System. Number of clients served per second).Shape is the class from which basic shapes like rectangle. security. ● System.net for wpf application? ● System.Windows. Consumers of a Web Service do not need to know anything about the platform. ellipse. information exchange with non Microsoft clients’ become easy and improves interoperability. it generates standard SOAP based XML to be consumed by clients.Windows. input.Controls. In banking gateway for Money transfer. windows Activation Service (WAS) or IIS. binding. With WCF starting from application runtime.5 and 4.Windows. line and path derive from. an Interoperability requirement with Non Microsoft clients is one of the common scenarios in any SOA initiatives.DependencyObject is the class from which WPF classes get support for dependency properties. ● System. focus and events.0 around. they only need to understand how to send and receive SOAP messages (HTTP and XML).Windows. XML Serialization is not standardized and hence it is difficult to achieve true interoperability. 126. Exception handling and faults.Shapes.Windows. or programming language used to implement the service. What are the classes that are supported by .Windows.Controls. Extensibility If ASMX services were to be delivered to clients. WCF also supports claims based authorization which is more granular than existing mechanisms. 127.Controls.Controls. Additionally by using data contracts and message contracts. Throttling. can IT any of to and MSMQ. since then with .dll that renders display. SOAP is a W3C submitted note that uses standards based technologies (XML for data description and HTTP for transport) to encode and transmit application data. Named Http based. ● System. where as with WCF WSE is inbuilt. ● System.DispatcherObject is the class from which each element in the user element can verify whether code is running on the correct thread and access the dispatcher to marshal code to the user interface thread. Reliable messaging.Control is an element that can interact with a user. One of the key reasons WCF performance is better than ASMX services is due to the improved serialization techniques in the .0 supports security and http buffering/caching/sessions but still lacks support for Session management. ASMX services were part of .net framework. ● System. With ASMX WS-*. Security.Windows. polygon. channel system to service host everything is extensible. With WCF.Panel is the base class for all elements which can contain one or more children and arrange them according to specific layout rules. Concurrency. Services can like hook on protocols different client class. Transaction. object model.net framework 2.net 3. ASMX with WSE 3. What is web service? A Web Service is programmable application logic accessible via standard Web protocols.

An Asp . as it sounds like is a configuration file for the Asp . 128.config file is written in XML with specific tags having specific meanings.config is used which configuring applications. 1.net web application. the less vulnerable it is to inconsistencies and anomalies The main normal forms are summarized below. see also Carlo Zaniolo's equivalent but differently-expressed definition (1982)[15] Every non-prime attribute is nontransitively dependent on every key of the table Boyce-Codd normal form (BCNF) Raymond F.net web application.. configuration done in machine. Normal form Defined by Brief definition First normal form Two versions: E.F. Database connections Session States Error Handling Security Explain about Machine .F.J.Config file? As web.config file.net application has one web. Boyce and E. C.Config file? Web. NF) of relational database theory provide criteria for determining a table's degree of vulnerability to logical inconsistencies and anomalies. That is. Codd (1971)[14]. How many normal forms are there? Explain it? The normal forms (abbrev. same way Machine. this file is not altered and only web.config file is used to configure the application according to a particular machine.config file.Explain about Web. stored conveniently inside Web. Codd (1974)[16] Every non-trivial functional dependency in the table is a dependency on a superkey Fourth normal form (4NF) Ronald Fagin (1977)[17] Every non-trivial multivalued dependency in the table is a dependency on a superkey Fifth normal form Ronald Fagin (1979)[18] (5NF) Every non-trivial join dependency in the table is implied by the superkeys of the table .F. Codd (1NF) (1970). Here are some of the most frequently used configurations.config file is used to configure one asp . 2. The higher the normal form applicable to a table. 3.config file is affected on any application that runs on a particular machine. Codd (1971)[13] No non-prime attribute in the table is functionally dependent on a part (proper subset) of a candidate key Third normal form (3NF) E. There are number of important settings that can be stored in the configuration file.config file which keeps the configurations required for the corresponding application. Date (2003)[12] Table faithfully represents a relation and has no repeating groups Second normal form (2NF) E. 4. Usually.F. Web.

a skin file. With AJAX. you define one skin for each type of control you use on your site.NET Web server controls. The server portion of the ASP. Explain master page? ASP. Despite the name.NET control. Skins define properties for ASP.Domain/key normal form (DKNF) Ronald Fagin (1981)[19] Every constraint on the table is a logical consequence of the table's domain constraints and key constraints Sixth normal form (6NF) Chris Date.NET master pages allow you to create a consistent layout for the pages in your application. 130. nor do the requests need to be asynchronous. and Nikos Lorentzos (2002)[5] Table features no non-trivial join dependencies at all (with reference to generalized join operator) 129. A single master page defines the look and feel and standard ehaviour that you want for all of the pages (or a group of pages) in your application. Styles can be used to control the positioning of elements.NET AJAX framework introduces two categories of ASP. CSS styles apply to HTML elements. An Extender is used to add client functionality to an existing ASP. Skins apply to a single Web server control. without the need to create a new server control. web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. however: Skins don't cascade. 131. where you can create a hierarchy of styles. Difference b/w Skins and Style Sheets? Skins—A set of properties that define a control's appearance Cascading style sheet (CSS)—A standard for defining the appearance and layout attributes of HTML elements Images—Files that define the site's appearance. Data is usually retrieved using the XMLHttpRequest object. You can then create individual content pages that contain the content you want to display. See the sidebar "Cascading styles" for more details on how CSS styles cascade. Hugh Darwen. Styles can apply to a single HTML element or to collections of elements. When users request . Some overlap occurs between skins and CSS because both are used to control appearance.NET control that offers both server and client functionality. Unlike with CSS. at minimum. the use of JavaScript and XML is not actually required. They have some crucial differences.NET server controls for adding client capabilities to server controls. such as company logos A theme has. Explain about AJAX ?What are Diff B/w AJAX Controls and Normal controls? AJAX (shorthand for asynchronous JavaScript and XML[1]) is a group of interrelated web development techniques used on the client-side to create interactive web applications. A Script Control is a standalone ASP. The use of AJAX techniques has led to an increase in interactive or dynamic interfaces on web pages[2][3] and better quality of Web services due to the asynchronous mode.

all cleanup tasks. Disposing: During this phase. the new text is saved and a text_change event is raised. PreRendering: During this phase. the control is updated with the changes made to it. the state information of the control is saved. the instance of the control is loaded onto the page object in which it is defined. What is Hidden field? Ans: Hidden fields are similar to text fields. Loading the postback data: During this phase. PreRendering: During this phase.the content pages. the view state of the control posted by the client is reloaded into the new instance of the control. if a value is set for the control during the Load event. Therefore the visitor can't type anything into a hidden field. the corresponding event is raised. Draw Ans: the . Saving state: During this phase. it is embedded in the HTML tag that will be returned to the browser. This prepares the control for rendering. Saving: During this phase. all cleanup tasks. they merge with the master page to produce output that combines the layout of the master page with the content from the content page. This is the final event in the life cycle of a server control Life cycle when the page processed during a postback event The processing sequence in which a page is processed during a postback event is: Initializing: During this phase. This prepares the control for rendering. all cleanup tasks. Explain Asp. if the text of a textbox is changed. the server searches any data corresponding to the control that is loaded in the data posted by the client. the instance of the control is loaded onto the page object in which it is defined. the control is updated with the changes made to it. Unloading: During this phase. the server creates the corresponding HTML tag for the control. Unloading: During this phase. 132.net Framework architecture? . Which leads to the purpose of the field? 134. Loading: During this phase.net page life cycle? When the Page is requested for the first time The Life Cycle of a page when requested for the first time: Initializing: During this phase. Rendering: During this phase. such as closing files and database connections opened by the control are performed. Disposing: During this phase. the server creates the corresponding HTML tag for the control. all cleanup tasks. the server creates an instance of the server control Loading view state: During this phase. For example. This is the final event in the life cycle of a server control The events associated with the relevant page cycle phases are: ■ Page Initialization: Page_Init ■ View State Loading:LoadViewState ■ Postback data processing: LoadPostData ■ Page Loading: Page_Load ■ PostBack Change Notification: RaisePostDataChangedEvent ■ PostBack Event Handling: RaisePostBackEvent ■ Page Pre Rendering Phase: Page_PreRender ■ View State Saving: SaveViewState ■ Page Rendering: Page_Render ■ Page Unloading: Page_UnLoad 133. Rendering: During this phase. such as closing files and database connections opened by the control are performed. For example. such as destroying the instances of server control are performed. the change in the state of control between the current request and the previous request of the page is saved. such as destroying the instances of server control are performed. with one very important difference! The difference is that the hidden field does not show on the page. For each change. the server creates an instance of the server control Loading: During this phase.

the session variable type must be either a primitive type or serializable. 137. ViewState variables are stored in hidden fields. serialization of data will be taken care by the viewstate. It can be very helpful for a small web sites and where the number of user are very less. Whereas storing data in ViewState will last only till the page is in live. 3) Session variables are stored in a SessionStateItemCollection object that is exposed through the HttpContext. What is inproc session? InProc is the default session mode. It has lots of limitation. What is JIT compiler when it will be called? Ans: A Microsoft. the intermediate language is complied "just in time" (JIT) into native code when the application or component is run instead of compiling the application at Development time. ● If the worker Process or application domain recycles all session data will be lost. . ● Implementation is very easy. common and default mechanism. Storing data in a session variable will last till the session ends. Dfference between view state and session. We should avoid InProc in case of Web Garden Scenario .NET Framework. This is because the session-variable is stored in an external data store. just similar to using View State.135. ViewState is for a page. CLR runs JIT compiler 136. The following are the differences.NET application can be run only after the MSIL code is translated into native Machine code. .1) Session is for per user session. So accessing data is very fast and data is easily available. In . Ans: Both Session and ViewState are a way of storing data. 2) Session is server type storage where as ViewState is client side type storage. There is no mode for ViewState. 4) When using a SessionState Mode other than Inproc. By default. Disadvantages : although InProc Session is fastest.Session property. Advantages and Disadvantages Advantages : ● It store Session data in memory object of current application domain. ie. ● There is not requirements of serialization to store data in InProc Session Mode.

InProc Session Data will get lost if we Restart the server. Triggers are implicitly called by DB itself while SP has to be manually called by user. because of memory.● Though its fastest. Windows Communication Foundation takes care of deserializing the body of the incoming message into a Customer object before invoking AddCustomer. but more session data and more users can affects performance. [MessageBodyMember] public Customer customer. For example: [ServiceContract()] interface ICustomerService { [OperationContract()] void SaveCustomer(CustomerMessage customerMsg). ● This session mode is not suitable for web farm scenarios also. So as per above discussion. Namespace="http://example. for automatically adding headers to a Message object. MessageHeader. } This message contract can now be used as a parameter in a service operation. In this case. Message contracts allow you to annotate a class. . and MessageBody attributes like the following : [MessageContract] public class CustomerMessage { [MessageHeader] public int CustomerId. While creating a Trigger triggering event n action has to be specified which isn’t a case with SP.org/customHeaders"] public Guid ContextId. What are triggers and stored procedures in ADO. specifying which fields map to headers versus the body: [MessageContract(IsWrapped=false)] public class AddCustomerRequest { [MessageHeader(Name="ContextId". application domain recycles It is also not suitable for Web Farm and Web Garden Scenarios. A Trigger can call the specific SP in it but the reverse is not true. you have to use the MessageContract. There is another serialization shortcut. known as message contracts. 139. 3. 2. SP can pass the parameters which is not a case with Triggers. What is messagecontract ?why do we use it? If you need to interoperate with another non-WCF service. 4.Net? 1. ● we can't use it in web Garden scenarios . we can conclude InProc is very fast session storing mechanism but suitable for small web application. [MessageBody] public CustomerData Customer. 138.

[DataContract] public class Item { [DataMember] public string ItemID. Developing Service To develop a service using ASP. Example [WebService] public class Service : System.WebService .NET relies on defining data and relies on the XmlSerializer to transform data to or from a service. freeing you from having to manually deal with the Headers collection.Services.NET types to XML ● Only Public fields or Properties of . [DataMember] public decimal ItemPrice. The WCF uses the DataContractAttribute and DataMemeberAttribute to translate . as shown here: [ServiceContract] public interface ICustomer { [OperationContract(Action = "urn:add-customer")] void AddCustomer(AddCustomerRequest request). I will explain the Difference between ASP. ● Only the classes which implement IEnumerable interface. 140. The development of web service with ASP. such as Hash table can not be serialized.NET web services. It also discusses how we use the both technologies for developing the web services.} With this message contract class in place. } This tells Windows Communication Foundation to automatically map between the ContextId field in the object and the ContextId header in the SOAP message. ● The DataContractSerializer can translate the HashTable into XML.NET web service and programming WCF services like ASP. ● Classes that implement the IDictionary interface. ● XMLSerialization does not indicate the which fields or properties of the type are serialized into XML where as DataCotratSerializer Explicitly shows the which fields or properties are serialized into XML.NET FW types in to XML. Key issues with XmlSerializer to serialize .NET types can be translated into XML.Web. [DataMember] public decimal ItemQuantity. ● A practical benefit of the design of the DataContractSerializer is better performance over XMLserialization. you can define an operation that uses it as the request type.Difference between Web services and WCF services.DataMemberAttribute can be applied to field or a property and theses fields or properties can be either public or private.NET we must add the WebService attribute to the class and WebMethodAttribute to any of the class methods. } The DataContractAttribute can be applied to the class or a strcture. Important difference between DataContractSerializer and XMLSerializer.

Service Description Issuing a HTTP GET Request with query WSDL causes ASP. The WSDL that generated by WCF can customized by using ServiceMetadataBehavior class. A class that implements the service contract is referred to as a service type in WCF. Message Representation The Header of the SOAP Message can be customized in ASP. Exception Handling In ASP. OperationContract Attribute indicates which of the methods of the interface defines the operations of the service contract.NET web services are compiled into a class library assembly and a service file with an extension . The application is accessible using url of the service file.SVC into a virtual directory and assembly into bin sub directory of the virtual directory. Client Development Clients for the ASP. unhandled exceptions are not returned to clients as SOAP faults.NET Web service. WCF provides attributes MessageContractAttribute . WCF Service can be hosted within IIS or WindowsActivationService.asmx will have the code for the service. MessageHeaderAttribute and MessageBodyMemberAttribute to describe the structure of the SOAP Message. Issuing a Request with the query WSDL for the . In WCF Services.config file into the virtual directory. WCF uses the ServiceMetadata tool(svcutil. The generated WSDL can be customized by deriving the class ofServiceDescriptionFormatExtension.NET Web services.svc file generates the WSDL. ● Copy the web. 141. } } The ServiceContractAttribute specifies that a interface defines a WCF service contract.NET Web services are generated using the command-line tool WSDL. The service file is copied into the root of the ASP. } public class Service : ITest { public string ShowMessage(string strMsg) { return strMsg. Hosting the Service ASP.NET to generate WSDL to describe the service.What is Connection Pooling? . Unhandled exceptions are returned to the client as SOAP faults.exe) to generate the client for the service. It returns the WSDL as response to the request.{ [WebMethod] public string Test(string strMsg) { return strMsg.EXE. } } To develop a service in WCF we will write the following code [ServiceContract] public interface ITest { [OperationContract] string ShowMessage(string strMsg). ● Compile the service type into a class library ● Copy the service file with an extension .NET application and Assembly will be copied to the bin directory. A configuration setting is provided to have the unhandled exceptions returned to clients for the purpose of debugging.

You can simply create the place holder and modify its properties through Visual Studio. etc. you can actually make a call back to the server and fetch new data that you populate down to the client. but the nice thing is. July 2004 https://www.net/talks/videos/ScottGuthrie/interview. enable the user to page through a grid without refreshing the entire page. Robert McGovern . you can now rely on master pages. They give you page inheritance. well yes and no. where you can stay on the same page as an end user. ADO.NET Framework data providers. So from a developer’s point of view they rock. reusability you can even nest them giving the developer a simple way for you to ensure consistent look and feel to an entire application. … So will out-of-bound callbacks spell the end of the evil IFRAME? The IFRAME today has a bum wrap in terms of reputation. I googled up some comparisons of Frames. You can add new content without having to worry that the overall HTML layout of the page will be affected.0 By Jayesh Patel. again.x to ASP.The most complex control used by you 143.NET uses an optimization technique called connection pooling. I think the combination of those two are going to put the hurt on the IFRAME out there. For example. Bryan Acker. Work by means of controls and tags rather than HTML. If you haven’t already come across the concept of XML Data Islands it has been around for a while along with Frames and XMLHTTP (now the ICallBackEventHandler). manage the frames. Leverage Visual Studio's code creation to visually design the layout. there's much richer mechanisms you can rely on now. Master Pages and the ICallBackEventHandler a good overview article on ASP. Users hate full page refreshes. out-of-bound call backs. without having to lose scroll position. “ • • Migrating from ASP. For example if a user is entering data to complete a form over a number of pages.net Architect discusses how the new callback manager (ICallBackEventHandler) which is basically a XMLHTTP wrapper can also help in reducing the amount of visible page refreshes. To minimize the cost of opening connections. Connection pooling is handled differently for the . which minimizes the cost of repeatedly opening and closing connections. Therefore it looks and acts like a single Web page rather than a frame. you don't have to worry about opening and closing frame tags or modifying countless HTML attributes to ensure that each frame displays in the correct fashion.theserverside.mainfunction. without having to. one is to do what we call. I think the combination of out-of-bound callbacks as well as some of the things we're doing in terms of master pages. You can’t really use this to redisplay the entire content area of the page if it contains asp: web controls (well I have done it but using Frames would be much much easier).0 sates in favour of master pages: • “Bookmark a page and recall all the information on the specific page.net 2. This technique requires the use of the DHTML XML tag you use this to build a client side repository of data in XML. Thanks to Visual Studio. 142. the menu bar and advertisement is already on the client’s browser so why go and get it again (even if it is cached on the server). developers hate trips to the server to retrieve redundant html.Difference between master page and frames. to provide much cleaner layout of a page.aspx?ID=2760&TypeID=17#master And this extract from an interview with Scott Guthrie Microsoft’s ASP.NET 2. not just the default frame page.Infusion Development.com/DotNetInAction/Technologies/display. or integrate content into a site. it . A master page isn't really a frame. Can implementing the ICallBackEventHandler help.tss?bandwidth=56k Well master pages seem a fantastic tool for development. It's still fully supported. refresh the entire page. and provide all of the plumbing to link the content pages into the master page.NET 1. where you can go ahead and rather than have to rely on frames in order to cleanly separate.Connecting to a data source can be time consuming. Use of this technique can only refresh data. but then through script. “…So. “ http://www. It's a single page that contains collated content from the master page and the content page that builds on the master. But what about the user experience well even if a content page “inherits” a master page each time the page is requested the entire page will refresh whether it is the content part or the master part of the page.

X it doesn’t ship with a Frameset template although there will be an online template available and adding the tags yourself won’t cause injury.transfer. Unfortunately in ASP. we can access the viewstate variables across pages.transfer.net runtime) and only refreshing the content area of a page is still through the use of Frames. I will demonstrate this using the demo created by me..e.aspx").would be more beneficial if you stored the data on the client between pages until the user reaches the final page and presses submit and only then hit the server to update your data source.aspx page: Collapse Copy Code public partial class ViewStateContainer : System. Remember it is the users we are building these web applications for not the developers. Use master pages when • • • • • Not concerned about a full page refresh Development requires a highly modifiable inheritable page standard and users will live with a page refresh Need to be allow the user to bookmark a specific page Want to refresh data or images in a control and not refresh the entire page Want to refresh part of the page with simple HTML (no asp: controls) and not refresh the entire page You want to build stores of data on a client and by doing this reduce the number of hits to update the servers data source Don’t want full page refreshes Have complex asp: control driven pages which can’t be refreshed by data only i. So the only way to stop the entire page refreshing if you are using asp: or user controls on your page (these need to be rendered by the asp. So what are the best practices I have come up with many seasoned web developers will already practice these however for those beginners and intermediates I hope this will be of some help and relive you of trial and error driven development.aspx pages named: 1.net Beta 2 unlike ASP.How? Yes. This potentially has no effect on the dreaded page refresh it is great for relieving the pressure on your database server however. Server.aspx: This page sets the ViewState variable and transfers the user to another page using Server.Page { protected void Page_Load(object sender. please read these articles on Cross Page Posting and Server. 2. Note this is not the only use for XML Data Island the example is a common one however. This is only possible if Cross Page Posting or Server. Before you continue reading this article.. AccessViewState. If Response.Transfer("AccessViewState. Ok.net 1. This is the code of ViewStateContainer.redirect is used. so all set now.transfer is used to redirect the user to other page.UI.?if yes. Some of you may disagree with these and I would like to hear back from you guys. then ViewState cannot be accessed across pages. You can download the demo from the link at the top of this article.aspx page.Web.aspx: This page accesses the ViewState variable of ViewStateContainer. . ViewStateContainer. I have created two *. the asp: controls need to be generated into html by the web server first Need multiple areas of the page to be refreshed at different times by the user Use the ICallBackEventHandler when Use XML Data Islands • Use Frames when • • • 144Can we Access ViewState Across Pages. EventArgs e) { ViewState["Page1"] = "Page1 ViewState".

we can invoke the method of the previous class. we can find the controls of the previous page. Using MethodInfo class. then it creates an object of the previous page.transfer() method. It first checks whether PreviousPage is null or not. Looking at the code. } } } } Whenever we use Server. one can access Label control placed in ViewStateContainer Page in current Page. I am able to access the ViewState variable of ViewStateContainer Page. 145. You can access all the viewstate variables set in ViewStateContainer Page. Now let's take look at AccessViewState. return (StateBag)objMethod.aspx page using the Server. Using Previous Page. It tracks changes to these attributes only after the OnInit method is executed for a page request. } } As you can see.Text = PreviousPageViewState["Page1"]. It stores attribute/value pairs as strings associated with the control. In Page_Load event. The return type of the method is StateBag class. } return returnValue. EventArgs e) { if (PreviousPage != null) { if (PreviousPageViewState != null) { Label1.aspx Page code: Collapse Copy Code public partial class AccessViewState : System. MethodInfo objMethod = objPreviousPage.Invoke(objPreviousPage. .} public StateBag ReturnViewState() { return ViewState. I have set a ViewState variable in Page Load and transfer the user to AccessViewState.ToString(). StateBag class: This class is the primary storage mechanism for all HTML and Web server controls. We can get the previous page object via PreviousPage property. if (PreviousPage != null) { Object objPreviousPage = (Object)PreviousPage. null). For example.UI.Web. which returns the previous page's ViewState.GetMethod ("ReturnViewState").Page { private StateBag PreviousPageViewState { get { StateBag returnValue = null.GetType(). This page also contains a method ReturnViewState() which actually returns the ViewState of this page to the calling function. What is fault contract?example.transfer or Cross Page Posting. Now using Reflection. if it's not null. I have invoked the ReturnViewState() method of ViewStateContainer Page. } } protected void Page_Load(object sender. and saves the changes to the page's or control's viewstate. I have created a PreviousPageViewState property in this page.

first open a connection for the source data. I thought it would be a good idea to also include something about fault contracts. Solution walkthrough While you are programming for bulk copy. The reason for that is the Bulkcopy Sql Server mechanism. But the bulkcopy mechanism process all data at once. or any DataReader class which implements IDataReader. cb. The source could be various data platforms such as Access. The simplest way to copy lots of data from any resources to SQL Server is BulkCopying. So the data inserting becomes very fast. 146. cb.IntegratedSecurity = true. You must get the source data in your code wrapping it in a DataTable. Excel.NET "System. We are using SqlConnectionStringBuilder to build our connection string. but that won't be something new . .How to insert bulk of records? Programmers usually need to transfer production data for testing or analyzing. Collapse Copy Code // Establishing connection SqlConnectionStringBuilder cb = new SqlConnectionStringBuilder().DefaultFaultContract> ex) ● in ex. but in this case it is not a good idea.Detail you can find your custom fault contract In Visual Studio it is possible to let the debugger break on unhandled exception.InitialCatalog = "Sales".cnn). A fault contract is an exception class the service can throw to the client containing specific exception information.NET Framework 2. one after the other is a very time and system resources consuming. Then we are retrieving data from the source with SqlCommand and SqlDataReader classes. The debugger thinks that the exception thrown in the service is unhandled. . cb.DataSource = "SQLProduction". SQL. After that. Normally something you want to happen.Net is a very fast way to copy large amount of data somewhere to SQL Server. The bulk copy operation usually has two separated phases.SqlClient" namespace: SqlBulkCopy.ConnectionString). so it breaks saying it found an 'FaultException was unhandled by user code' but in fact the exception is handled by the client. in the second phase.Data.. you must connect the target SQL Database and perform the bulk copy operation. Inserting all data row by row. SqlConnection cnn = new SqlConnection(cb. The steps to set this up on the service: Create a class follow naming conventions like ending with 'FaultContract' like 'DefaultFaultContract' add one or more properties to the class Apply the FaultContract attribute in the interface to the requested method [FaultContract(typeof(DefaultFaultContract))] Throw the exception in the implementation throw new FaultException<DefaultFaultContract>(new DefaultFaultContract("Something went wrong")). the client can be generated using the 'Add service reference'. In the first phase you get the source data.● ● ● ● ● ● ● ● While setting up a default environment for WCF development. The bulk copy operation in . Collapse Copy Code // Getting source data SqlCommand cmd = new SqlCommand("SELECT * FROM PendingOrders".0 contains a class in ADO.-) Now the custom exception class is also known on the client and can be caugth with: ● catch (FaultException<SampleService. you can also add a FaultReason to inform the client about the circumstances After the service is build. In this sample we are connecting a SQL Server named SQLProduction.

// Getting source data SqlCommand cmd = new SqlCommand("SELECT * FROM PendingOrders".DestinationTableName = "Temp". You can establish a second connection explicitly or the class will do it for you.database=ProductionTest. sbc. close all SqlConnection. The SqlBulkCopy class needs a connection to copy data into a Sql server. // Copying data to destination sbc. . sbc." + "Integrated Security=SSPI"). Collapse Copy Code // Copying data to destination sbc. cb. We are using the second alternative with creating a SqlBulkCopy object. SqlDataReader rdr = cmd.Close(). cnn.ExecuteReader(). Collapse Copy Code // Establishing connection SqlConnectionStringBuilder cb = new SqlConnectionStringBuilder().DataSource = "SQLProduction". rdr. // Closing connection and the others sbc.. cnn.IntegratedSecurity = true. The sbc object is ready to copy.database=ProductionTest.InitialCatalog = "Sales". SqlConnection cnn = new SqlConnection(cb.Open().Close(). We are passing a connection string as a parameter in constructor method.cnn). cb. cb. Collapse Copy Code // Initializing an SqlBulkCopy object SqlBulkCopy sbc = new SqlBulkCopy("server=. Now we have a data in rdr variable.ConnectionString). OK.WriteToServer(rdr). Now you must tell the object the destination table name.. SqlDataReader rdr = cmd. // Initializing an SqlBulkCopy object SqlBulkCopy sbc = new SqlBulkCopy("server=.. At the end. SqlDataReader and SqlBulkCopy objects.DestinationTableName = "Temp".Open().cnn.WriteToServer(rdr). Collapse Copy Code // Closing connection and the others sbc.Close(). start the copying process calling WriteToServer method and pass the method the SqlDataReader variable rdr as parameter." + "Integrated Security=SSPI"). Just a few lines and in a few seconds.. It's time to initialize a SqlBulkCopy object and copy the data. That's all.Close().ExecuteReader().

cnn. meta. Unfortunately ASP. meta.aspx").NET doesn't provide a nice out of the box solution for handling the session timeout gracefully. Everything expires behind the scenes and your user is left unaware of what has happened. With this in mind I like to put a Session Expired page in place in my applications and proactively send the user there when their session ends. which can result in errors or exceptions taking place. When the expiration takes place it can wreak havoc on your application code if you are relying on the Session object or have authentication code in place to ensure that the user is authenticated before you serve up any data for them.AppendHeader("Refresh".Close(). EventArgs e) { HtmlMeta meta = new HtmlMeta(). EventArgs e) { Response.Page. when session time out to redirect a page to login without a user interaction? ASP.Timeout * 60) + ".Controls.Close().HttpEquiv = "Refresh".NET Session Expiration Redirect Method 1 This one is great use of the meta tags that is redirection of user to Login Page or Session Timeout page or Logout page automatically on Session Timeouts. This accomplishes a few different things: 1) Provides a nice user experience for your users 2) Prevents your application from being left in an unknown state when the session / auth ticket expires 3) Prevents application errors and exceptions from occurring when a user tries to perform an action on a page after their session / auth ticket has expired Nested MasterPage(s) For All Authenticated Pages You need to implement a MasterPage (or a Page base class) for all of your authenticated pages so you can inject a bit of javascript to handle the redirect on session timeout.ToString(Session.url=LogOut.Header. As you will notice below I simply convert the Timeout to seconds by multiplying by 60 and then setting it in the meta tag. } With this the article comes to end in which I tried to put up some of the usefulness of meta tags in ASP. } Method 2 protected void Page_Load(object sender.aspx". .rdr.Add(meta). Thus as soon as timeout occurs user is redirected to the Logout or Login page that you set in the URL parameter protected void Page_Load(object sender.Net applications Method 3 Most of the applications I work with require some form of authentication and a timed expiration of the authentication ticket and session object.url=LogOut.How to handle.ToString(Session. this.Content = Convert. Additional problems can arise if the user abandoned their browser in a state that you didn't code for.Timeout * 60) + ". Convert. 148.

ASPXAUTH" slidingExpiration="true" defaultUrl="Login.aspx">Click here to login again</a> </p> . --> <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" path="/" requireSSL="false" timeout="45" name=".NET to identify an incoming user.Get Your Web.</span> <br /> <br /> <a href="Login.web> Create Your Session Expiration Page Create a page for your users to be taken to when their session expires.web> <!-Session configuration .">Your session has expired due to inactivity.Timeout value needs to match Forms Auth timeout** --> <sessionState timeout="45" /> <!-The <authentication> section enables configuration of the security authentication mode used by ASP.aspx with the following message: <h2>Session Expired</h2> <p> <span style="color:White.config Settings Straight Make sure that your auth ticket timeout and session timeout match. <system.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false" /> </system. I created SessionExpired.

these were the primary areas that developers converted into server-side include files that were then referenced on each page.Session. Add The Session Expiration Javascript To Your Page_Load In the Page_Load method of your MasterPage (or base page class) add the following code: // Handle the session timeout string sessionExpiredUrl = Request. and then dragged and dropped on other pages in the site.aspx". StringBuilder script = new StringBuilder().Url.Ensure the Authentication ticket is signed out in your code behind: FormsAuthentication. // Convert minutes to milliseconds this.RegisterClientScriptBlock(this.Timeout * 60000)). script.NET.dll 150. In ASP. Examples of these include headers.Append("} \n").Diff between Array and Generic List.Which dll is used for ajax? AjaxControlToolkit. {0}). it is easy to identify areas of screen real estate that are used on every Web page.What do you know about transactions? 151. this.ToString(). script.Append("function expireSession(){ \n").Authority) + "/SessionExpired. script.Append(string. sessionExpiredUrl)). "expirescript".ClientScript.How do you make transactions using WCF? The [ServiceBehavior] attribute has three properties that deal with handling and managing transactions. In the ASP world. footers.1MB Difference (%) 237% 481% 153.\n".GetLeftPart(UriPartial. Typically.GetType(). script. these types of scenarios can easily be converted to Web user controls. Segmenting these areas into encapsulated containers creates a simple reuse scenario.SignOut(). menus. Usage of memory differece as below and no need of type casting when you go for Generic list. ArrayList 32-bit 19MB 64-bit 39MB List<int> 8MB 8. Web developers create a layout to implement on all the pages in their Web application. Each is shown in the following list: . \n". During this process.Append(string.location = '{0}'.Page.Format(" window. and navigation.User Control scenarios. true). 149. 152.Format("setTimeout('expireSession()'. script.

It has lots of How To's at the end (the one titled 'How To . for each parameter or return type. what data is serialized (turned into XML) to be exchanged. TransactionTimeout: Specifies the period in which a transaction has to complete.MyMethod Heres a good link to Security in WCF. 155.Which event of gridview fires when we click on gridview row? Gridview Row Command 158 . That is. TransactionIsolationLevel: Determines the isolation level of the transaction. only the same data contracts.Demand. .config file i.How can i Expose 4 methods out of 10 methods in WCF service? You can add Authentication (using windows credentials) with something like this: <basicHttpBinding> <security mode="TransportCredentialOnly"> <transport clientCredentialType="Windows" /> </security> </basicHttpBinding> Could then Authorise by decorating the Interface to your services methods: <PrincipalPermission(SecurityAction.I have 4 websites in a solution where can i place a web. 154. the client and the service do not have to share the same types. 156.e website level or solution level? You can have the config file only for wesite level not for solution level.TransactionAutoCompleteOnSessionClose: Specifies whether pending transactions are completed when the current session closes. 157. to communicate.How do you display standard message across the application? By using custom exception handlers by implimenting a class through exception class.Use basicHttpBinding with Windows Authentication and TransportCreditals' might be of use to you).Is Data contract is necessary for WCF? Not necessary but it is used as follows A data contract is a formal agreement between a service and a client that abstractly describes the data to be exchanged. A data contract precisely defines. Role:="MyAppsUsers")> _ Public Function MyMethod() As String Implements IService.