ASP. NET development interview questions and answers. You can use these sample interview questions or discussion topics to get a better idea of a candidate's grasp of ASP. NET. While you still have to determine if the person's personality fits within your organization, you can at least get an idea of their technical skills. Note: This content is also available as a downloadable PDF. What are page directives? The first line of an ASP. NET page is the page directive; you will find it on all ASP. NET pages. These directives are instructions for the page. It begins with the @Page directive and continues with the various attributes available to this directive. It's unreasonable to expect a candidate to know all of these attributes, but a few popular ones include the following. Auto. Event. Wireup: Indicates whether page events are autowired. Code. Behind: The name of the compiled class associated with the page. Debug: Indicates whether the page is compiled in debug mode (includes debug symbols). Enable. Theming: Indicates whether themes are used on the page. Enable. View. State: Indicates whether view state is maintained across pages. Error. Page: Specifies a target URL to be used when unhandled exceptions occur. Language: Indicates the language used when compiling inline code on the page. Trace: Signals whether tracing is enabled on the page. What is a master page? A master page is a template for one or more Web Forms. The master page defines how the page will be laid out when presented to the user, with placeholders for content. The Master. Page. File Page Directive in a content page's header is one way to assign a master page. The content pages rely solely on content and leave layout to the master page. ASP. NET merges the content with the master page layout when the content page is requested by a user. What is the code behind feature of ASP. NET? The code behind feature divides ASP. NET page files into two files where one defines the user interface (. C# and . aspx. vb for VB. NET). These two files are glued together with page directives like the following line, which ties the page to the specific code behind class.< %@ Page language=. Web handlers work just like . Web handlers are generally used to generate content dynamically like returning XML or an image. Web handlers use the IHttp. Handler interface with the Process. Request() method invoked when the handler is requested. Web handlers are simpler than pages (fewer events and wiring), so they are ideal for performance- critical applications. How does Post. Back work? Post. Back is basically the ASP. NET submitting a form to it — it posts back to the current URL. Post. Back uses View. State to remember controls and data. The Is. Post. Back property of the ASP. NET page allows you to determine if the loading of the page is the result of a postback event; this is done in the Page. The oldest way to approach it is via the Query. Today I am pleased to announce the release of an F5debug Ebook '350 Interview Questions and Answers on.Net. The downloaded pdf file contains all the questions and answers. Satish Marwat Dot Net Web Resources [email protected] 1 Page Dear Friends, Hi I am satish marwat, this documents contains all the important questions that usually asked during the.NET interview, I had downloaded all the. DOT NET Interview Questions and Answers -- Contents.NET Framework.NET Programming Concepts Object-Oriented Programming Windows Controls ADO.NET Language-Integrated Query (LINQ). String (i. e., passing values via URL); this is also one of the least secure ways because users can easily see the data and could possibly hack the site/page by changing parameter values. Next, you can use HTTP POST to pass values; these are available via a collection within the ASP. NET page. More specific to ASP. NET is the use of Session state, which makes information available to all pages within the ASP. NET application. Another approach is using public properties on the source page and accessing these properties on the target page. Also, you can use the Previous. Page property of the current page to access control information on the referring page. The last two require the source, and target pages are within the same ASP. NET application. They have various properties to control their behavior and appearance. These controls provide an event model where events are handled on the server (whereas HTML controls are handled in the client). Server controls have the ability to maintain state (via View. State) across requests, and they can automatically detect the browser. With these controls, you will see the Run. At attribute (Run. At=. A good example of these controls is the basic Text. Box control (< ASP: Text. Box Run. At=. Basically, View State is how ASP. NET Web pages persists data across requests. It handles data that must be preserved between postbacks, and you can use it to store page- specific data. By default, View State is enabled on a page and its controls. This can be a problem as the amount of data and controls on a page increases resulting in more data for ASP. NET to maintain. This is accomplished via the hidden . You can limit the size of the data in View State by disabling controls that do not need to be persisted via the Enable. View. State property. View State can be encrypted to address security concerns. What is the global. The global. asax file is an optional piece of an ASP. NET application. It is located in the root of the application directory structure. It cannot be directly loaded or requested by users. It provides a place to define application- and session- wide events. You can define your own events, but it does contain default Application events like when the application starts Application. The same is true for Session events (Session. The Get. Type method can be used on each control to determine its type and how to work with it. Now, it gets tricky because the form contains a tree of controls; that is, some controls are contained within others (think of a Table). You would have to recursively loop through the controls to make sure everything is processed. What is a web. config file? Machine. config? The web. ASP. NET applications. It utilizes an XML format. It is used to define application settings, connection strings, and much more. These files can appear in multiple directories, and they are applied in a top- down approach; that is, configuration files apply to their container directory as well as all directories below it, but the configuration files in lower directories can override those in parent directories. This provides a way to granularly apply settings. The machine. config file contains ASP. NET settings for all of the applications on the server — it is at the top of the configuration file hierarchy, thus web. More in our development interview Q& A series. Keep your engineering skills up to date by signing up for Tech. Republic's free Software Engineer newsletter, delivered each Tuesday. Interview Questions Employers Should Not Ask There are some interview questions, typically known as illegal interview questions, that employers should not ask during a job interview. C#/CSharp interview questions and answers for freshers/beginners and experienced. Our advanced C#.Net interview questions are very useful for experienced Csharp professionals. We have c#.net interview questions answers in pdf. Downloads: 8123 Pages: 42. Published: 4 years ago Rating: Rated: 44 times Rate It. 1 star; 2 stars; 3 stars; 4 stars; 5. How to Build a Free Website 003. C# and ASP.Net Interview Question and Answers Email This BlogThis! Share to Twitter Share to Facebook Share to Pinterest. What is the significance of Finalize method in.NET?NET interview questions 6th.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2017
Categories |