This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Asp.net Application Life Cycle |
|
Answer» This TOPIC describes the APPLICATION life CYCLE for ASP.NET applications that are RUNNING in IIS 7.0 in INTEGRATED mode and with the .NET Framework 3.0 This topic describes the application life cycle for ASP.NET applications that are running in IIS 7.0 in Integrated mode and with the .NET Framework 3.0 |
|
| 2. |
Asp.net 2.0 Features? |
|
Answer» ASP.NET 2.0 was designed to make WEB development easier and quicker.
ASP.NET 2.0 was designed to make web development easier and quicker. |
|
| 3. |
Balancing Client And Server Programming With Asp.net Ajax |
|
Answer» Without the advanced use of JavaScript running in the browser, web applications have their LOGIC running on the server. This means a lot of page refreshes for potentially small updates to the user’s view. With AJAX, much of the logic surrounding user interactions can be moved to the client. This PRESENTS its own SET of challenges. Some examples of AJAX use include streaming large datasets to the browser that are MANAGED entirely in JavaScript. While JavaScript is a powerful language, the debugging facilities and options for error handling are very limited. Putting complex application logic on the client can take a lot of time, effort, and patience. ASP.NET AJAX allows you to naturally migrate some PARTS of the application processing to the client while leveraging partial page rendering to let the server control some aspects of the page view. Without the advanced use of JavaScript running in the browser, web applications have their logic running on the server. This means a lot of page refreshes for potentially small updates to the user’s view. With AJAX, much of the logic surrounding user interactions can be moved to the client. This presents its own set of challenges. Some examples of AJAX use include streaming large datasets to the browser that are managed entirely in JavaScript. While JavaScript is a powerful language, the debugging facilities and options for error handling are very limited. Putting complex application logic on the client can take a lot of time, effort, and patience. ASP.NET AJAX allows you to naturally migrate some parts of the application processing to the client while leveraging partial page rendering to let the server control some aspects of the page view. |
|
| 4. |
What Are The Benefits Of Ajax? |
|
Answer» Ajax stands for "Asynchronous JavaScript and XML." It is a term used to refer to SEVERAL related Web development TOOLS. Ajax is one of several technologies comprising Web 2.0 and is DESIGNED to create efficient, interactive Web content and dynamic online user interfaces without requiring a separate desktop download. For both USERS, designers and businesses, Ajax provides a number of benefits over TRADITIONAL Web design systems. Ajax stands for "Asynchronous JavaScript and XML." It is a term used to refer to several related Web development tools. Ajax is one of several technologies comprising Web 2.0 and is designed to create efficient, interactive Web content and dynamic online user interfaces without requiring a separate desktop download. For both users, designers and businesses, Ajax provides a number of benefits over traditional Web design systems. |
|
| 5. |
The Components In The Asp.net 2.0 Ajax Packaging? |
|
Answer» The packaging of ASP.NET 2.0 AJAX can be fairly confusing. The basics of the packaging are.
The packaging of ASP.NET 2.0 AJAX can be fairly confusing. The basics of the packaging are. |
|
| 6. |
What Is Asp.net 2.0 Ajax? |
|
Answer» ASP.NET 2.0 AJAX is an AJAX-oriented .NET library that runs on .NET 2.0. Though ASP.NET 2.0 AJAX is an AJAX library and can be used to perform AJAX operations, it is really much more. ASP.NET 2.0 AJAX OFFERS many of the same TYPES of FEATURES of the server-side ASP.NET. ASP.NET 2.0 AJAX is an AJAX-oriented .NET library that runs on .NET 2.0. Though ASP.NET 2.0 AJAX is an AJAX library and can be used to perform AJAX operations, it is really much more. ASP.NET 2.0 AJAX offers many of the same types of features of the server-side ASP.NET. |
|
| 7. |
.net Debug & Trace Interview Questions With Answers |
|
Answer» What is break mode? What are the options to STEP through code? | Debug VS Trace. | DEFINE trace class. Define LISTENERS collection of Trace and Debug objects. | Define Trace Switches. What is break mode? What are the options to step through code? | Debug Vs Trace. | Define trace class. Define Listeners collection of Trace and Debug objects. | Define Trace Switches. |
|
| 8. |
.net Code Security Interview Questions With Answers |
|
Answer» What is code security? What are the TYPES? | DEFINE PRINCIPAL object. | Define DECLARATIVE and imperative security. | Define role-based security. | Explain code access security. | What is Code group? | Define the use of Caspol.exe. What is code security? What are the types? | Define Principal object. | Define declarative and imperative security. | Define role-based security. | Explain code access security. | What is Code group? | Define the use of Caspol.exe. |
|
| 9. |
What Is The Advantage Of Packaging Over Xcopy In .net? |
|
Answer» Define connected and disconnected data access in ADO.NET| DESCRIBE CommandType PROPERTY of a SQL COMMAND in ADO.NET.|Define Dataview component of ADO.NET.|What are the ways to create CONNECTION in ADO.NET?|Access database at RUNTIME using ADO.NET Define connected and disconnected data access in ADO.NET| Describe CommandType property of a SQL Command in ADO.NET.|Define Dataview component of ADO.NET.|What are the ways to create connection in ADO.NET?|Access database at runtime using ADO.NET |
|
| 10. |
Describe The Gac In The .net Framework. |
|
Answer» .Net FRAMEWORK provides Global Assembly cache, a machine-wide cache. It stores SHARED ASSEMBLIES that can be accessed by multiple LANGUAGES. .Net Framework provides Global Assembly cache, a machine-wide cache. It stores shared assemblies that can be accessed by multiple languages. |
|
| 11. |
Explain The Role Of Assembly In The .net Framework. |
|
Answer» .NET Framework keeps executable code or DLL in the form of assembly. .Net Framework MAINTAINS multiple versions of the application in the system through assembly. The assemblies have MSIL code and manifest that contains metadata. The metadata contains version INFORMATION of the assembly. .Net Framework keeps executable code or DLL in the form of assembly. .Net Framework maintains multiple versions of the application in the system through assembly. The assemblies have MSIL code and manifest that contains metadata. The metadata contains version information of the assembly. |
|
| 12. |
What Are The Components Of The .net Framework. |
|
Answer» .NET Framework provides enormous advantages to software developers in comparison to the advantages PROVIDED by other PLATFORMS. Microsoft has united various modern as well as EXISTING technologies of software development in .NET Framework. These technologies are used by developers to develop highly efficient applications for modern as well as future BUSINESS needs. The following are the KEY components of .NET Framework: .NET Framework provides enormous advantages to software developers in comparison to the advantages provided by other platforms. Microsoft has united various modern as well as existing technologies of software development in .NET Framework. These technologies are used by developers to develop highly efficient applications for modern as well as future business needs. The following are the key components of .NET Framework: |
|
| 13. |
Describe The .net Framework Architecture. |
|
Answer» .Net framework has two components: .Net framework has two components: |
|
| 14. |
Explain The .net Framework. |
|
Answer» .NET FRAMEWORK is a FOUNDATION calss on which you can build robust applications .This framework comprises of web forms,window forms andconsole applications..NET framework is basically a collection of services and classes.This EXISTS as a LAYER between .NET applications and underlying operating systems. .NET framework is a foundation calss on which you can build robust applications .This framework comprises of web forms,window forms andconsole applications..NET framework is basically a collection of services and classes.This exists as a layer between .NET applications and underlying operating systems. |
|
| 15. |
Describe The Ajax Design Pattern. |
|
Answer» In an AJAX Design Pattern, partial postbacks are triggered asyncronously to a web SERVER for getting LIVE data. A web application would not flicker here, and the web site user would not even come to know that a request is being sent to the web server for live data. Such a design pattern is used in applications like Stock Market Websites to get live quotes, NEWS Websites for live news, Sports websites for live SCORES etc. In an Ajax Design Pattern, partial postbacks are triggered asyncronously to a web server for getting live data. A web application would not flicker here, and the web site user would not even come to know that a request is being sent to the web server for live data. Such a design pattern is used in applications like Stock Market Websites to get live quotes, News Websites for live news, Sports websites for live scores etc. |
|
| 16. |
How Many Design Patterns Can Be Created In .net? |
|
Answer» As many as one can think. DESIGN patterns are not TECHNOLOGY specific, rather their FOUNDATION relies on the CONCEPT of reusability, object creation and communication. Design patterns can be created in any language. As many as one can think. Design patterns are not technology specific, rather their foundation relies on the concept of reusability, object creation and communication. Design patterns can be created in any language. |
|
| 17. |
When Should Design Patterns Be Used? |
|
Answer» While developing software applications, sound knowledge of industry proven design patterns make the DEVELOPMENT journey easy and successful. Whenever a requirement is RECURRING, a SUITABLE design pattern should be identified. Usage of optimal design patterns ENHANCE performance of the application. Though there are some caveats. Make sure that there are no overheads IMPOSED on a simple requirement, which means that design patterns should not be unnecessarily be used. While developing software applications, sound knowledge of industry proven design patterns make the development journey easy and successful. Whenever a requirement is recurring, a suitable design pattern should be identified. Usage of optimal design patterns enhance performance of the application. Though there are some caveats. Make sure that there are no overheads imposed on a simple requirement, which means that design patterns should not be unnecessarily be used. |
|
| 18. |
What Is The Gang Of Four Design Pattern? |
|
Answer» The history of all design patterns used in modern day APPLICATIONS derive from the GANG of Four (GoF) PATTERN. Gang of Four patterns are CATEGORIZED into 3 types: The term "Gang of Four"(or "GoF" in acronym) is used to refer to the four authors of the book Design Patterns: Elements of REUSABLE Object-Oriented Software. The authors are Erich Gamma, Ralph Johnson, Richard Helm and John Vlissides. The history of all design patterns used in modern day applications derive from the Gang of Four (GoF) Pattern. Gang of Four patterns are categorized into 3 types: The term "Gang of Four"(or "GoF" in acronym) is used to refer to the four authors of the book Design Patterns: Elements of Reusable Object-Oriented Software. The authors are Erich Gamma, Ralph Johnson, Richard Helm and John Vlissides. |
|
| 19. |
What Is The Mvc Pattern (model View Controller Pattern)? |
|
Answer» The MVC Pattern (Model View CONTROLLER Pattern) is based on the concept of designing an application by dividing its functionalities into 3 layers. Its like a triad of components. The Model component contains the business logic, or the other set of re-usable classes like classes pertaining to data access, custom control classes, application configuration classes etc. The Controller component interacts with the Model WHENEVER required. The control contains events and methods inside it, which are raised from the UI which is the View component. Consider an ASP.NET WEB application. Here, all aspx, ASCX, master pages represent the View. he code behind files (like aspx.cs, master.cs, ascx.cs) represent the Controller. The classes contained in the App_Code folder, or rather any other class project being referenced from this application represent the Model component. Advantages: The MVC Pattern (Model View Controller Pattern) is based on the concept of designing an application by dividing its functionalities into 3 layers. Its like a triad of components. The Model component contains the business logic, or the other set of re-usable classes like classes pertaining to data access, custom control classes, application configuration classes etc. The Controller component interacts with the Model whenever required. The control contains events and methods inside it, which are raised from the UI which is the View component. Consider an ASP.NET web application. Here, all aspx, ascx, master pages represent the View. he code behind files (like aspx.cs, master.cs, ascx.cs) represent the Controller. The classes contained in the App_Code folder, or rather any other class project being referenced from this application represent the Model component. Advantages: |
|
| 20. |
What Is A Behavioral Design Pattern? |
|
Answer» Behaviorial design patterns focus on improving the communication between different objects. Following are different TYPES of behavioral patterns: Behaviorial design patterns focus on improving the communication between different objects. Following are different types of behavioral patterns: |
|
| 21. |
What Are The Different Types Of Proxy Patterns? |
|
Answer» 1-Remote Proxy - A reference is given to a different object in a different memory location. This may be on a different or a same machine. 1-Remote Proxy - A reference is given to a different object in a different memory location. This may be on a different or a same machine. |
|
| 22. |
What Are Structural Design Patterns? |
|
Answer» A structural design PATTERN establishes a relationship between entities. Thus making it easier for different components of an application to interact with each other. Following are some of the commonly known structural patterns: >>> Adapter Pattern-Interfaces of classes VARY depending on the requirement. A structural design pattern establishes a relationship between entities. Thus making it easier for different components of an application to interact with each other. Following are some of the commonly known structural patterns: >>> Adapter Pattern-Interfaces of classes vary depending on the requirement. |
|
| 23. |
What Is The Singleton Design Pattern? |
|
Answer» The Singleton design pattern is based on the concept of restricting the instantiation of a class to one object. SAY one object needs to perform the ROLE of a coordinator between various instances of the application that depend on a common object, we may design an application using a Singleton. Usage of Singleton patterns is common in Banking, Financial and Travel based applications where the singleton object consists of the network RELATED information. A singleton class may be used to instantiate an object of it, only if that object does not already exist. In case the object exists, a reference to the existing object is given. A singleton object has one global point of access to it. An ASP.NET Web Farm is ALSO based on the Singleton pattern. In a Web Farm, the web application resides on several web servers. The session state is handled by a Singleton object in the form of the aspnet_state.exe, that interacts with the ASP.NET worker process running on each web server. Note that the worker process is the aspnet_wp.exe process. Imagine one of the web servers shutting down, the singleton object aspnet_state.exe still maintains the session state information across all web servers in the web farm. In .NET, in order to create a singleton, a class is created with a private constructor, and a "STATIC readonly" variable as the member that behaves as the instance. The Singleton design pattern is based on the concept of restricting the instantiation of a class to one object. Say one object needs to perform the role of a coordinator between various instances of the application that depend on a common object, we may design an application using a Singleton. Usage of Singleton patterns is common in Banking, Financial and Travel based applications where the singleton object consists of the network related information. A singleton class may be used to instantiate an object of it, only if that object does not already exist. In case the object exists, a reference to the existing object is given. A singleton object has one global point of access to it. An ASP.NET Web Farm is also based on the Singleton pattern. In a Web Farm, the web application resides on several web servers. The session state is handled by a Singleton object in the form of the aspnet_state.exe, that interacts with the ASP.NET worker process running on each web server. Note that the worker process is the aspnet_wp.exe process. Imagine one of the web servers shutting down, the singleton object aspnet_state.exe still maintains the session state information across all web servers in the web farm. In .NET, in order to create a singleton, a class is created with a private constructor, and a "static readonly" variable as the member that behaves as the instance. |
|
| 24. |
What Is The Prototype Design Pattern? |
|
Answer» A prototype design PATTERN relies on creation of clones rather than OBJECTS. Here, we avoid using the keyword 'new' to PREVENT overheads. A prototype design pattern relies on creation of clones rather than objects. Here, we avoid using the keyword 'new' to prevent overheads. |
|
| 25. |
What Is The Lazy Design Pattern? |
|
Answer» The approach of the Lazy Design Pattern is not to create objects until a specific requirement matches, and when it matches, object creation is triggered. A simple EXAMPLE of this pattern is a JOB Portal APPLICATION. SAY you register yourself in that site thus filling up the registration table, only when the registration table is filled, the other objects are CREATED and invoked, that prompt you to fill in other details too, which will be saved in other tables. The approach of the Lazy Design Pattern is not to create objects until a specific requirement matches, and when it matches, object creation is triggered. A simple example of this pattern is a Job Portal application. Say you register yourself in that site thus filling up the registration table, only when the registration table is filled, the other objects are created and invoked, that prompt you to fill in other details too, which will be saved in other tables. |
|
| 26. |
Describe The Builder Design Pattern |
|
Answer» In a builder design PATTERN, an object creation process is separated from the object design construct. This is USEFUL becuase the same METHOD that DEALS with CONSTRUCTION of the object, can be used to construct different design constructs. In a builder design pattern, an object creation process is separated from the object design construct. This is useful becuase the same method that deals with construction of the object, can be used to construct different design constructs. |
|
| 27. |
Whats The Difference Between Abstract Factory Pattern And Factory Pattern? |
|
Answer» In an abstract factory design, a framework is provided for creating sub-components that inherit from a common component. In .NET, this is achieved by creating classes that implement a common interface or a set of interfaces, where the interface COMPRISES of the GENERIC METHOD declarations that are passed on to the sub-components. TNote that not just interfaces, but even abstract classes can provide the platform of creating an application based on the abstract factory pattern. Example, say a class called CentralGovernmentRules is the abstract factory class, comprised of methods like Should Have Police() and Should Have Courts(). There may be several sub-classes like State1Rules, State2Rules etc. created that inheriting the class CentralGovernmentRules, and thus deriving its methods as well. NOTE that the term "Factory" refers to the location in the code where the code is created. A Factory Pattern is again an Object creation pattern. Here objects are created without knowing the class of the object. Sounds strange? Well, actually this means that the object is created by a method of the class, and not by the class's constructor. So basically the Factory Pattern is used wherever sub classes are given the priviledge of instantiating a method that can create an object. In an abstract factory design, a framework is provided for creating sub-components that inherit from a common component. In .NET, this is achieved by creating classes that implement a common interface or a set of interfaces, where the interface comprises of the generic method declarations that are passed on to the sub-components. TNote that not just interfaces, but even abstract classes can provide the platform of creating an application based on the abstract factory pattern. Example, say a class called CentralGovernmentRules is the abstract factory class, comprised of methods like Should Have Police() and Should Have Courts(). There may be several sub-classes like State1Rules, State2Rules etc. created that inheriting the class CentralGovernmentRules, and thus deriving its methods as well. Note that the term "Factory" refers to the location in the code where the code is created. A Factory Pattern is again an Object creation pattern. Here objects are created without knowing the class of the object. Sounds strange? Well, actually this means that the object is created by a method of the class, and not by the class's constructor. So basically the Factory Pattern is used wherever sub classes are given the priviledge of instantiating a method that can create an object. |
|
| 28. |
What Are Creational Design Patterns? |
|
Answer» The Creational DESIGN Patterns FOCUS on how objects are created and utilized in an application. They tackle the aspects of when and how objects are created, keeping in mind whats the best way these objects should be created. Listed below are some of the commonly known Creational Design Patterns: The Creational Design Patterns focus on how objects are created and utilized in an application. They tackle the aspects of when and how objects are created, keeping in mind whats the best way these objects should be created. Listed below are some of the commonly known Creational Design Patterns: |
|
| 29. |
What Is A Design Pattern? |
|
Answer» Design Pattern is a re-usable, high quality solution to a given requirement, task or recurring problem. Further, it does not comprise of a complete solution that may be instantly CONVERTED to a code component, RATHER it provides a framework for how to solve a problem. In 1994, the release of the book Design Patterns, Elements of Reusable Object Oriented Software made design patterns popular. Because design patterns consist of PROVEN reusable ARCHITECTURAL concepts, they are reliable and they speed up software development process. Design Patterns are in a continious phase of evolution, which means that they keep on getting better & better as they are tested against time, reliability and subjected to continious improvements. Further, design patterns have evolved towards TARGETING specific domains. For example, windows-based banking applications are usually based on singleton patterns, e-commerce web applications are based on the MVC (Model-View-Controller) pattern. Design Patterns are categorized into 3 types:
Design Pattern is a re-usable, high quality solution to a given requirement, task or recurring problem. Further, it does not comprise of a complete solution that may be instantly converted to a code component, rather it provides a framework for how to solve a problem. In 1994, the release of the book Design Patterns, Elements of Reusable Object Oriented Software made design patterns popular. Because design patterns consist of proven reusable architectural concepts, they are reliable and they speed up software development process. Design Patterns are in a continious phase of evolution, which means that they keep on getting better & better as they are tested against time, reliability and subjected to continious improvements. Further, design patterns have evolved towards targeting specific domains. For example, windows-based banking applications are usually based on singleton patterns, e-commerce web applications are based on the MVC (Model-View-Controller) pattern. Design Patterns are categorized into 3 types: |
|
| 30. |
Default Value Of Enablehistory Attribute In Scriptmanager Is, |
|
Answer» False False |
|
| 31. |
To Create Browser History Point Using Client Script, We Make Call Method..... |
|
Answer» Sys.Application.addHistoryPoint. This METHOD is USED while ADDING history point to BROWSER STACK. Sys.Application.addHistoryPoint. This method is used while adding history point to browser stack. |
|
| 32. |
Which Property Needs To Be Set For Script Manager Control To Extend The Time Before Throwing Time Out Expection If No Response Is Received From The Server? |
|
Answer» AsyncPost BackTimeout Property NEEDS to SET which gets or sets a VALUE that indicates the time, in SECONDS, before asynchronous POSTBACK time out if no response is received from the server. <asp :script manager id = "script Manager1" runat = "server" async = "" postback = "" error = "" message = "We can not serve your request at this moment.Please try later." asyncpost back timeout = "36000" > < /asp :script manager > The default value of this property is 90 second. We can also set the user defined error message using asyncpostbackerrormessage property (as shown in above code) for time out. AsyncPost BackTimeout Property needs to set which gets or sets a value that indicates the time, in seconds, before asynchronous postback time out if no response is received from the server. <asp :script manager id = "script Manager1" runat = "server" async = "" postback = "" error = "" message = "We can not serve your request at this moment.Please try later." asyncpost back timeout = "36000" > < /asp :script manager > The default value of this property is 90 second. We can also set the user defined error message using asyncpostbackerrormessage property (as shown in above code) for time out. |
|
| 33. |
Is It Compulsory To Have Script Manager On The Page When You Are Using Any Control Of Ajax Control Tool Kit? |
|
Answer» Yes. Page NEEDS to have a SCRIPT manager for ajax control tool KIT CONTROLS to work. Yes. Page needs to have a script manager for ajax control tool kit controls to work. |
|
| 34. |
What Is The Displayafter Property In Updateprogress Control? |
|
Answer» DISPLAYAFTER property specifies after how many seconds the loading image NEEDS to be displayed in AJAX postback. It TAKES values in seconds. Displayafter property specifies after how many seconds the loading image needs to be displayed in ajax postback. It takes values in seconds. |
|
| 35. |
How Many Types Of Triggers Are There In Update Panel? |
|
Answer» There are 2 types of triggers. 1.PostBackTrigger :It does a full postback. This is USEFUL when any such CONTROL which placed within updatePanel but it cannot work asynchronously. Like FILE Upload Control. There are 2 types of triggers. 1.PostBackTrigger :It does a full postback. This is useful when any such control which placed within updatePanel but it cannot work asynchronously. Like File Upload Control. |
|
| 36. |
If There Are Multiple Update Panels On The Page Say Upd1 And Upd2. There Is A Button Placed In Upd1. How Can You Stop Upd2 To Update When Button Placed In Upd1 Is Clicked? |
|
Answer» There is a property called UpdateMode which takes TWO VALUES When set to conditional, then that updatepanel's content only gets updated when control placed in that UPDATE panel does a postback. Control placed in other update panel will not affect this updatepanel. There is a property called UpdateMode which takes two values When set to conditional, then that updatepanel's content only gets updated when control placed in that update panel does a postback. Control placed in other update panel will not affect this updatepanel. |
|
| 37. |
Tell Name Of All The Control Of Ajax? |
|
Answer» There are 5 CONTROLS. There are 5 controls. |
|
| 38. |
Is There Any Property Names "isnavigating"? |
|
Answer» Yes, it is available when you are managing BROWSER history. With this property of “IsNavigating”, you can determine if postback is occurred for navigation purpose or for some other. Its SET to true if its navigation CALL. Yes, it is available when you are managing browser history. With this property of “IsNavigating”, you can determine if postback is occurred for navigation purpose or for some other. Its set to true if its navigation call. |
|
| 39. |
What Role "#&&" Plays In A Querysting? |
|
Answer» # works as a FRAGMENT delimeter in a QUERYSTING. With which you can DELIMIT history state. # works as a fragment delimeter in a querysting. With which you can delimit history state. |
|
| 40. |
Is The Asp.net Ajax Control Toolkit(ajaxcontroltoolkit.dll) Installed In The Global Assembly Cache? |
|
Answer» No. You must COPY the AjaxControlToolkit.dll ASSEMBLY to the /BIN FOLDER in your application. No. You must copy the AjaxControlToolkit.dll assembly to the /Bin folder in your application. |
|
| 41. |
Explain Differences Between The Page Execution Lifecycle Of An Asp.net Page And An Asp.net Ajax Page? |
|
Answer» In an asynchronous model, all the server side events occur, as they do in a synchronous model. The Microsoft AJAX Library also raises client side events. However when the page is RENDERED, asynchronous postback renders only the contents of the update PANEL, where as in a synchronous postback, the entire page is recreated and SENT back to the browser. In an asynchronous model, all the server side events occur, as they do in a synchronous model. The Microsoft AJAX Library also raises client side events. However when the page is rendered, asynchronous postback renders only the contents of the update panel, where as in a synchronous postback, the entire page is recreated and sent back to the browser. |
|
| 42. |
How Can You To Add Javascript To A Page When Performing An Asynchronous Postback? |
|
Answer» USE the ScriptManager CLASS. This class contains several methods like the RegisterStartupScript(), Register Client ScriptBlock(), Register Client Script Include(), Register Array Declaration(), Register Client Script RESOURCE(), Register Expand oAttribute(), Register On SubmitStatement() which helps to add javascript while performing an ASYNCHRONOUS postback. Use the ScriptManager class. This class contains several methods like the RegisterStartupScript(), Register Client ScriptBlock(), Register Client Script Include(), Register Array Declaration(), Register Client Script Resource(), Register Expand oAttribute(), Register On SubmitStatement() which helps to add javascript while performing an asynchronous postback. |
|
| 43. |
Can You Nest Updatepanel Within Each Other? |
|
Answer» Yes, you can do that. You WOULD want to NEST update PANELS to BASICALLY have more CONTROL over the Page Refresh. Yes, you can do that. You would want to nest update panels to basically have more control over the Page Refresh. |
|
| 44. |
Can We Call Server-side Code (c# Or Vb.net Code) From Javascript? |
|
Answer» YES. You can do so USING PageMethods in ASP.NET AJAX or using WEBSERVICES. Yes. You can do so using PageMethods in ASP.NET AJAX or using webservices. |
|
| 45. |
How Can You Debug Asp.net Ajax Applications? |
|
Answer» Explain about TWO tools useful for debugging: Fiddler for IE and Firebug for Mozilla. Explain about two tools useful for debugging: Fiddler for IE and Firebug for Mozilla. |
|
| 46. |
Difference Between Server-side Ajax Framework And Client-side Ajax Framework? |
|
Answer» ASP.NET AJAX contains both a server-side Ajax framework and a client-side Ajax framework. The server-side framework PROVIDES developers with an easy WAY to implement Ajax FUNCTIONALITY, without having to possess much knowledge of JavaScript. The framework includes server controls and components and the drag and drop functionality. This framework is usually preferred when you need to quickly ajaxify an asp.net application. The disadvantage is that you still need a round trip to the server to perform a client-side action. The Client-Side Framework allows you to build web applications with rich user-interactivity as that of a desktop application. It contains a set of JavaScript libraries, which is independent from ASP.NET. The library is getting rich in functionality with every new build released. ASP.NET AJAX contains both a server-side Ajax framework and a client-side Ajax framework. The server-side framework provides developers with an easy way to implement Ajax functionality, without having to possess much knowledge of JavaScript. The framework includes server controls and components and the drag and drop functionality. This framework is usually preferred when you need to quickly ajaxify an asp.net application. The disadvantage is that you still need a round trip to the server to perform a client-side action. The Client-Side Framework allows you to build web applications with rich user-interactivity as that of a desktop application. It contains a set of JavaScript libraries, which is independent from ASP.NET. The library is getting rich in functionality with every new build released. |
|
| 47. |
Can I Use Asp.net Ajax With Any Other Technology Apart From Asp.net? |
|
Answer» To answer this question, CHECK out this example of USING ASP.NET AJAX with PHP, to demonstrate RUNNING ASP.NET AJAX outside of ASP.NET. Client-Side ASP.NET AJAX framework can be USED with PHP and Coldfusion. To answer this question, check out this example of using ASP.NET AJAX with PHP, to demonstrate running ASP.NET AJAX outside of ASP.NET. Client-Side ASP.NET AJAX framework can be used with PHP and Coldfusion. |
|
| 48. |
Explain The Updatepanel? |
|
Answer» The UpdatePanel enables you to add AJAX functionality to existing ASP.NET APPLICATIONS. It can be used to update CONTENT in a page by using Partial-page rendering. By using Partial-page rendering, you can REFRESH only a selected part of the page instead of refreshing the WHOLE page with a postback. The UpdatePanel enables you to add AJAX functionality to existing ASP.NET applications. It can be used to update content in a page by using Partial-page rendering. By using Partial-page rendering, you can refresh only a selected part of the page instead of refreshing the whole page with a postback. |
|
| 49. |
How To Make Sure That Contents Of An Updatepanel Update Only When A Partial Postback Takes Place (and Not On A Full Postback)? |
|
Answer» Make USE of ScriptManager.IsInAsyncPostBack PROPERTY (returns a BOOLEAN VALUE) Make use of ScriptManager.IsInAsyncPostBack property (returns a boolean value) |
|
| 50. |
How To Create An Ajax Website Using Visual Studio? |
|
Answer» Using VISUAL STUDIO Web Developer EXPRESS 2005 & versions above it, Ajax based applications may easily be created. Note that the Ajax Framework & Ajax Extensions should be installed (In case of VS 2005). If using Visual Studio 2008 Web Developer Express or above, Ajax comes along with it (so no need of a separate installation). Using Visual Studio Web Developer Express 2005 & versions above it, Ajax based applications may easily be created. Note that the Ajax Framework & Ajax Extensions should be installed (In case of VS 2005). If using Visual Studio 2008 Web Developer Express or above, Ajax comes along with it (so no need of a separate installation). |
|