What should be done to enable PageMethods in ASP.NET?

Thursday, October 1, 2009


You should set the EnablePageMethods ="true" attribute of the ScriptManager control.



www.codecollege.NET

Which attribute make a client method searchable by ASP.NET AJAX?


ScriptMethod attribute, which is available in System.Web.Script.Sevices



www.codecollege.NET

What are the conditions for making a client method searchable by ASP.NET AJAX?


1. The method must be given the ScriptMethod attribute, which is available in System.Web.Script.Sevices
2. It must be Public
3. It must be Static



www.codecollege.NET

What is the use of PageMethods class in ASP.NET?


ASP.NET AJAX automatically searches for all methods declared Public Static and encapsulates them in the client PageMethods class.



www.codecollege.NET

What are Restful Web Services?


A Web serivce implemented using REST principles and HTTP.



www.codecollege.NET

What is REST service?


It is an architectural style for distributed hypermedia systems like WWW.



www.codecollege.NET

What are the 2 requirements REST services are based on?


1. An addressing scheme used to locate networked resources.
2. A methodology for returning representations of these resources.



www.codecollege.NET

What are the editor webparts available in ASP.NET 2.0?


There are 4 editor Webparts present in ASP.NET, they are :
1. AppreanceEditorPart
2. BehaviourEditorPart
3. LayoutEditorPart
4. PropertyGridEditorPart



www.codecollege.NET

What is the name of the method which determines whether server control contain child controls?


EnsureChildControls();



www.codecollege.NET

What are the webpart menu verbs?


There are 3 types of webpart menu verbs. They are:
1. Client-side verbs
2. Server-side verbs
3. Both.



www.codecollege.NET

How will you get a url reference to a web resource?


Use the GetWebResourceUrl() method of Page.ClientScript object.



www.codecollege.NET

How will you make a property have a Description?


Add [WebDescription("description of the property")] attribute to it.



www.codecollege.NET

How will you make a property have a friendly name?


Add [WebDisplayName("NameofProperty")] attribute to it.



www.codecollege.NET

How will you make a property to appear in the webpart tool pan?


Add [Webbrowsable(true)] attribute to it.



www.codecollege.NET

How will you make a property to support personalization or make it persistable to webpart file?


Add [Personalizable] attribute to it.



www.codecollege.NET

What is the use of Connect mode of asp.net webpart?


when activated, the user can configure connections between connectable webparts.



www.codecollege.NET

What is the attribute given to a method to make it a connection point in the Consumer Webpart?


[ConnectionConsumer]



www.codecollege.NET

What is the attribute given to a method to make it a connection point in the Provider Webpart?


[ConnectionProvider]



www.codecollege.NET

What is the namespace from which ASP.NET webparts need to be derived?


System.Web.UI.WebControls.WebParts.WebPart



www.codecollege.NET

What is the main concept behind AJAX ?


The main concept behind AJAX is to enable web pages to make HTTP requests asynchronously without reloading the entire page.


www.codecollege.NET

What is the expansion of EDM?


Entity Data Model.



www.codecollege.NET

What is the expansion of CSDL?


Conceptual Schema Definition Language.



www.codecollege.NET

What is an AtomPub?


It is an Atom Publishing Protocol.



www.codecollege.NET

What are the situations on which Caching Application Block can be used?


1. A static data (which rarely changes) need to be accessed.
2. when the data access is expensive.
3. Data should always be available even when the source is not available.



www.codecollege.NET

With which applications can we use Caching Application Block?


1. Windows Forms
2. Console application
3. Windows service
4. COM+ server
5. ASP.NET Web application or Web service if you need features not included in the ASP.NET cache



www.codecollege.NET

What is Silverlight?


Microsoft Silverlight is a cross-browser, cross-platform implementation of the .NET Framework for building rich interactive applications for the Web.



www.codecollege.NET

Name any 2 technologies which are used to develop RIA applications.


1. Adobe Flex
2. Microsfot Silverlight



www.codecollege.NET

What are exception handlers in the Exception Handling Application Block?


1. Wrap handler.
2. Replace handler.
3. Logging handler.
4. Fault Contract Exception Handler.



www.codecollege.NET

What is the Caching Application Block of Enterprise Library?


It allows the developer to incorporate a local cache in their applications which can either be an in-memory or backing store.



www.codecollege.NET

What is the Unity Application Block of Enterprise Library?


The Unity Application Block (Unity) is a lightweight, extensible dependency injection container that supports constructor injection, property injection, and

method call injection.



www.codecollege.NET

What is the Exception Handling Application Block of Enterprise Library?


The Enterprise Library Exception Handling Application Block lets developers and policy makers create a consistent strategy for processing exceptions that

occur in all architectural layers of an enterprise application.



www.codecollege.NET

What is the Logging Application Block of Enterprise Library?


It provides a standard Logging functionality for .net applications.



www.codecollege.NET

What is the expansion of ALM?


Application Lifecycle Management.



www.codecollege.NET

What are the 3 main components required for a ASP.NET webparts connection?


1. The Interface
2. Provider webpart
3. Consumer webpart



www.codecollege.NET

What model are ASP.NET webparts based on?


Pull model.



www.codecollege.NET

What is the expansion of ERP?


Enterprise Resource Planning.



www.codecollege.NET

What is Webpart Personalization?


It enables users to modify--or personalize--the layout, appearance, and behavior of Web Parts controls on a page.



www.codecollege.NET

What are the 3 fundamental building blocks of Webpart control set?


1. Web Parts UI controls
2. UI Structural Components
3. Personalization



www.codecollege.NET

What is a Webpart Zone?


It hosts the webpart controls to a page.



www.codecollege.NET

What is a Webpart Manager?


It manages the Webpart controls functionality and events that occur on the page.
Manages all connections between controls in the Web Parts zone on a page.



www.codecollege.NET

What is an ASP.NET Webpart?


It is an integrated set of ASP.NET controls that allow the end user to modify the content, appearance, and behavior of Web pages directly in a browser.



www.codecollege.NET

What is jQuery?


It is basically a JavaScript framework for writing huge task of JavaScript with few lines of code. jQuery is a fast, concise, JavaScript Library that

simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages



www.codecollege.NET

What is the role of WSDL in WCF?


Web Services Description Language is used to share Endpoint details with the Clients.



www.codecollege.NET

What is a WCF Contract?


It says about what the Endpoint communicates. It is a collection of messages in MEP (Message Exchange Patterns) format.



www.codecollege.NET

What is a WCF Endpoint Binding?


It says How to send the messages like specifying the transport protocol (e.g., TCP), encoding information (e.g., binary), and security requirements (e.g.,

SSL), etc.



www.codecollege.NET

What is a WCF Endpoint Address?


It says where you need to send the messages.



www.codecollege.NET

What is a WCF Endpoint?


The Endpoint is the point where messages are sent by the Client to the service. Every Service has some Endpoints based on the requirement and provides the

Client with the details. An Endpoint will have an Address, a Binding, and a Contract.



www.codecollege.NET

What is a WCF Client?


Clients send messages to the Service to do some work and they start the flow.



www.codecollege.NET

What is a WCF Service?


It is a piece of code which can be interacted with messages. They work based on the messages from the Clients and they wait until the Client sends the

messages.



www.codecollege.NET

Say any 3 key features of WCF?


1. Unified Programming Model.
2. Service Oriented Architecture.
3. Cross-Vendor interoperability.



www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books