Asp.net Interview Questions with Answers
Question: 1. What Are The New Data Controls In Asp.Net 2.0?
Answer:
Data get right of entry to in ASP.NET 2.0 can be carried out completely declaratively (no code) the use of the new facts-certain and information supply controls. There are new data supply controls to symbolize specific records backends together with SQL database, enterprise gadgets, and XML, and there are new information-bound controls for rendering commonplace UI for records, such as gridview, detailsview, and formview.
Question: 2. What Are The New Navigation Controls In Asp.Net 2.0?
Answer:
The navigation controls offer commonplace UI for navigating between pages for your web page, inclusive of treeview, menu, and sitemappath. These controls use the web site navigation provider in ASP.NET 2.Zero to retrieve the custom shape you have got described in your web site.
VB.NET Interview Questions
Question: 3. What Are The New Login Controls In Asp.Internet 2.0?
Answer:
The new login controls offer the constructing blocks to feature authentication and authorization-primarily based UI to your web page, consisting of login forms, create user forms, password retrieval, and custom UI for logged in users or roles. These controls use the built-in club and position offerings in ASP.NET 2.Zero to interact with the user and role information defined in your site.
Question: four. What Are The New Web Part Controls In Asp.Net 2.Zero ?
Answer:
Web elements are an interesting new own family of controls that enable you to feature rich, personalised content and format on your website online, as well as the ability to edit that content material and format at once out of your software pages. These controls rely upon the personalization services in ASP.NET 2.Zero to offer a completely unique enjoy for every consumer for your application.
VB.NET Tutorial
Question: five. What Are Master Pages?
Answer:
Master Page characteristic affords the capability to define common structure and interface elements in your website online, consisting of a page header, footer, or navigation bar, in a common area referred to as a “master web page”, to be shared by many pages in your website online. In one easy area you may manipulate the look, experience, and much of capability for a whole Web site. This improves the maintainability of your website and avoids needless duplication of code for shared website online shape or behavior.
C#. NET Interview Questions
Question: 6. What Are Themes And Skins In 2.Zero, Explain Usage Scenario?
Answer:
The themes and skins functions in ASP.NET 2.0 permit for clean customization of your web site’s appearance-and-sense. You can outline fashion statistics in a common location referred to as a “theme”, and apply that fashion statistics globally to pages or controls in your web site. Like Master Pages, this improves the maintainability of your website and avoid pointless duplication of code for shared styles.
Question: 7. What Is A Profile Object, Why Is It Used?
Answer:
Using the brand new personalization offerings in ASP.NET 2.Zero you can effortlessly create custom designed stories within Web programs. The Profile object allows developers to effortlessly construct strongly-typed, sticky data stores for user accounts and build especially customized, relationship primarily based experiences. At the equal time, a developer can leverage Web Parts and the personalization provider to enable Web web page traffic to absolutely control the layout and behavior of the website, with the understanding that the website online is completely customized for them. Personalizaton eventualities at the moment are simpler to construct than ever earlier than and require substantially less code and effort to put in force.
C#. NET Tutorial ADO.Net Interview Questions
Question: 8. What Is Configuration Api?
Answer:
ASP.NET 2.Zero consists of new configuration control API’s, permitting customers to programmatically build programs or scripts that create, read, and replace Web.Config and device.Config configuration documents.
Question: nine. What Is Mmc Admin Tool?
Answer:
ASP.NET 2.Zero presents a brand new complete admin device that plugs into the prevailing IIS Administration MMC, enabling an administrator to graphically examine or alternate not unusual settings within our XML configuration files.
Windows Presentation Foundation(WPF) Interview Questions
Question: 10. Explain The Use Of Pre-compilation Tool?
Answer:
ASP.NET 2.0 provides a new utility deployment utility that permits both builders and directors to precompile a dynamic ASP.NET software prior to deployment. This precompilation robotically identifies any compilation troubles anywhere inside the site, in addition to enables ASP.NET applications to be deployed without any supply being saved on the server (you could optionally eliminate the content of .Aspx documents as a part of the compile phase), similarly protecting your highbrow assets.
ASP.NET Tutorial
Question: eleven. How Is Application Management And Maintenance Improved In Asp.Net 2.0?
Answer:
ASP.NET 2.0 also gives new health-tracking support to enable directors to be routinely notified when an utility on a server starts offevolved to enjoy issues. New tracing capabilities will enable administrators to seize run-time and request statistics from a production server to higher diagnose troubles. ASP.NET 2.0 is delivering functions a good way to permit developers and directors to simplify the every day control and protection of their Web packages.
Windows CE .NET Interview Questions
Question: 12. What Are Provider-driven Application Services? Explain In Detail?
Answer:
ASP.NET 2.0 now consists of integrated support for club (consumer name/password credential storage) and role control services out of the container. The new personalization provider enables brief storage/retrieval of consumer settings and preferences, facilitating wealthy customization with minimal code. The new website navigation gadget permits builders to quick build link structures constantly throughout a domain. As all of those services are provider-driven, they can be easily swapped out and changed with your very own custom implementation. With this extensibility alternative, you have entire manipulate over the information keep and schema that drives those rich software services.
VB.NET Interview Questions
Question: thirteen. Explain Server Control Extensibility With Reference To Asp.Net 2.Zero ?
Answer:
ASP.NET 2.0 includes advanced aid for manage extensibility, which includes more base lessons that encapsulate not unusual behaviors, improved clothier aid, greater APIs for interacting with customer-aspect script, metadata-pushed help for brand new capabilities like topics and accessibility verification, higher kingdom management, and greater.
Windows Presentation Foundation(WPF) Tutorial
Question: 14. What Are The Data Source Controls?
Answer:
Data get right of entry to in ASP.NET 2.Zero is now done declaratively the usage of records supply controls on a page. In this version, help for brand new records backend storage providers may be without difficulty added via implementing custom statistics source controls. Additionally, the SqlDataSource control that ships within the field has integrated guide for any ADO.NET managed provider that implements the brand new company manufacturing unit model in ADO.NET.
Question: 15. What Are Compilation Build Providers?
Answer:
Dynamic compilation in ASP.NET 2.0 is now treated by means of extensible compilation build carriers, which partner a specific document extension with a handler that knows a way to bring together that extension dynamically at runtime. For example, .Resx files may be dynamically compiled to assets, .Wsdl files to web service proxies, and .Xsd documents to typed DataSet objects. In addition to the built-in guide, it is easy to add aid for extra extensions by using implementing a custom build provider and registering it in Web.Config.
Dot Net Framework Interview Questions
Question: 16. What Is Expression Builders, Why Would You Use It?
Answer:
ASP.NET 2.Zero introduces a declarative new syntax for referencing code to substitute values into the page, called Expression Builders. ASP.NET 2.Zero consists of expression developers for referencing string assets for localization, connection strings, software settings, and profile values. You also can write your personal expression builders to create your very own custom syntax to replacement values in a web page rendering.
Question: 17. Is Asp.Internet 64-bit Enabled? How?
Answer:
ASP.NET 2.0 is now sixty four-bit enabled, which means it could take gain of the overall reminiscence cope with space of recent sixty four-bit processors and servers. Developers can truly reproduction present 32-bit ASP.NET applications onto a sixty four-bit ASP.NET 2.Zero server and have them automatically be JIT compiled and performed as native sixty four-bit packages (no source code modifications or manual re-assemble are required).
Asp Dot Net Mvc 4 Interview Questions
Question: 18. Explain How Caching In Asp.Net 2.0 Is Different From Caching In Asp.Net 1.1?
Answer:
ASP.NET 2.0 additionally now consists of automated database server cache invalidation. This powerful and smooth-to-use function allows builders to aggressively output cache database-pushed page and partial web page content material within a website and have ASP.NET automatically invalidate these cache entries and refresh the content material every time the lower back-cease database adjustments. Developers can now adequately cache time-essential content material for long durations without annoying approximately serving traffic nation records.
C#. NET Interview Questions
Question: 19. Can We Bind Data To A Server Control Without Writing Code In .Net?
Answer:
Yes, this is feasible. ASP.NET 2.Zero has the characteristic of declarative solution for statistics binding which requires no code at all for the most not unusual facts situations, together with:
*Selecting and showing
*Data Sorting
*Paging and Caching
*Data Updating
*Inserting and Deleting Data
Question: 20. What Is A Nested Masterpage In Asp.Internet 2.Zero? Can There Be A Master Page Inside A Masterpage?
Answer:
When a master page is placed within the contentplaceholder of a masterpage, then the masterpage is stated to be nested. In other words, there’s one figure masterpage, and the kid masterpage is inside the content material placeholder of the discern masterpage.
Asp Dot Net Mvc Interview Questions
Question: 21. How To Sort The Contents Of A Gridview Control?
Answer:
The ASP.NET 2.0 GridView manage is a effective control, the allows sorting of the rows based on a column, all this viable, with out writing code. Well thats what we call energy.
The GridView manage relies on the underlying facts source manage to whom this is sure for the sorting functionality. The GridView desires to have an AccessDataSource or an SQlDataSource or an ObjectDataSource (if the SortParameterName assets is set to a cost allowed.
The AllowSorting assets of the GridView control, while set to true, enables sorting of the GridView. A sortable GridView has the Header column represented as a LinkButton control. When this Link Button is clicked, the Sorting occasion of the GridView is raised server-side, which reasons a postback and in turn, types the GridView control’s statistics.
Question: 22. What Does The Hotspot Class In .Internet Do? What Is An Imagemap In Asp.Net?
Answer:
An ImageMap is an ASP.NET manipulate that allows clicks internal a polygon like (called Hotspot) location in a webpage. Well, that sincerely way you may create a celeb-fashioned or diamond fashioned button.
There are several pre-described shapes allowed interior an ImageMap for which templates may be used. For example, for a rectangle, an asp:RectangularHotSpot may be used. For a circle, an asp:CircleHotSpot can be used. And for creating stars & diamonds, an asp:PolygonHotSpot may be used. An photograph will also be installed an ImageMap which can be certain via its ImageUrl property.
In order to invoke an occasion, the HotSpotMode assets needs to be set to PostBack. Further, if numerous HotSpots are placed inner an ImageMap, the occasion of the ImageMap may be surpassed a price the use of the PostBackValue assets.
Code beneath shows a way to create a Polygon HotSpot the usage of an ImageMap.
AlternateText=”Click Here”
HotSpotMode=”Navigate”>
Coordinates=”100,150, 250,350, 210,290, 90,350, 60,240″
NavigateUrl=”http://www.Asp.Net”
Target=”_blank”/>
Question: 23. How Do We Update And Delete Data In A Gridview? Datakeynames Property In .Internet?
Answer:
The quality manner to Update or Delete a record in a GridView control is to include a CheckBox column and a Submit Button.
The GridView has its very own Delete and Edit functionality. If the GridView is populated with data using an SqlDataSource, checkout the wizard that comes together with the SqlDataSource. It can be used to automatically create an SQL Delete command and specify the delete parameters.
The DataKeyNames property of the GridView is set to a subject name of the Table.
Question: 24. What Is Asp.Net?
Answer:
ASP.NET is a programming framework built at the common language runtime that can be used on a server to construct powerful Web packages.
ADO.Net Interview Questions
Question: 25. Why Does My Asp.Internet File Have Multiple Tag With Runat=server?
Answer:
This means that ASP.Net is not well registered with IIS. .Net framework provides an Administration software that manages the installation and uninstallation of more than one versions of ASP.NET on a single device. You can find the document in C:WINNTMicrosoft.NET Frameworkv**aspnet_regiis.Exe
use the command: aspnet_regiis.Exe -u —> to uninstall present day asp.Net version.
Use the command: aspnet_regiis.Exe -i —> to put in current asp.Net version.
For Windows Server 2003, you ought to use aspnet_regiis -i -enable This is because of the “Web Service Extensions” characteristic in IIS 6 (in case you deploy VS.NET or the framework without IIS set up, and then cross returned in and installation IIS afterwards, you have to re-sign up so that ASP.NET ‘hooks’ into IIS nicely.”
Question: 26. How To Find Out What Version Of Asp.Net I Am Using On My Machine?
Answer:
VB.NET
Response.Write(System.Environment.Version.ToString())
C#
Response.Write(System.Environment.Version.ToString());
Question: 27. Is It Possible To Pass A Querystring From An .Asp Page To Aspx Page?
Answer:
Yes you could bypass querystring from .Asp to ASP.NET web page.Asp <%response.Redirect "webform1.Aspx?Id=11 " %> .Aspx
VB.NET
Response.Write (Request(“identity”).ToString())
C#
Response.Write (Request[“id”].ToString());
Windows Presentation Foundation(WPF) Interview Questions
Question: 28. How To Comment Out Asp.Internet Tags?
Answer:
<%--
Question: 29. What Is A Viewstate?
Answer:
In conventional ASP, whilst a form is submitted the form values are cleared. In some instances the form is submitted with huge facts. In such cases if the server comes lower back with mistakes, one has to re-enter correct records in the shape. But filing clears up all form values. This takes place because the website does no longer preserve any kingdom (ViewState).
In ASP.NET, when the shape is submitted the shape reappears inside the browser with all form values. This is because ASP.NET continues your ViewState. ViewState is a kingdom control technique built in ASP.NET. Its reason is to keep the state of controls in the course of subsequent postbacks via the same consumer. The ViewState suggests the repute of the page while submitted to the server. The status is described via a hidden subject placed on each page with a
