1. What is ASP.NET?
Ans: ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server. ASP. NET provides increased performance by running compiled code.
2. What is the difference between Classic ASP and ASP.Net?
Ans:
Ans: Namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time.
4. What is the difference between early binding and late binding?
Ans: Calling a non-virtual method, decided at a compile time is known as early binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding.
5. What is the difference between ASP Session State and ASP.Net Session State?
Ans: ASP session state relies on cookies, Serialize all requests from a client, does not survive process shutdown, Can not maintained across machines in a Web farm.
6. What is the difference between ASP Session and ASP.NET Session?
Ans: Asp.net session supports cookie less session & it can span across multiple servers.
7. What is reflection?
Ans: All .NET compilers produce metadata about the types defined in the modules they produce. This metadata is packaged along with the module (modules in turn are packaged together in assemblies), and can be accessed by a mechanism called reflection.
The System.Reflection namespace contains classes that can be used to interrogate the types for a module/assembly.
8.What is the difference between Server.Transfer and response.Redirect?
Ans: The Server.Transfer () method stops the current page from executing, and runs the content on the specified page, when the execution is complete the control is passed back to the calling page.
While the Response.Redirect () method transfers the control on the specified page and the control is never passed back to calling page after execution.
9.What is a PostBack?
Ans: The process in which a Web page sends data back to the same page on the server.
10. What namespace does the Web page belong in the .NET Framework class hierarchy?
Ans: System.Web.UI.Page
11. What is a bubbled event?
Ans: When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main DataGrid event handler to take care of its constituents.
12. What is the differences between Server-side and Client-side code?
Ans:Assemblies can be static or dynamic.
Static assemblies can include .NET Framework types (interfaces and classes), as well as resources for the assembly (bitmaps, JPEG files, resource files, and so on). Static assemblies are stored on disk in portable executable (PE) files.
Dynamic assemblies, which are run directly from memory and are not saved to disk before execution. You can save dynamic assemblies to disk after they have executed.
14. What are the difference between Structure and Class?
Ans: Structures are value type and Classes are reference type
15. What is the differences between dataset.clone and dataset.copy?
Ans: Dataset.clone copies just the structure of dataset (including all the datatables, schemas, relations and constraints.); however it doesn’t copy the data.
Dataset.copy, copies both the dataset structure and the data.
16. What is the difference between Custom Control and User Control?
Ans: Custom Controls are compiled code (Dlls), easier to use, difficult to create, and can be placed in toolbox. Drag and Drop controls. Attributes can be set visually at design time. Can be used by Multiple Applications (If Shared Dlls), Even if Private can copy to bin directory of web application add reference and use. Normally designed to provide common functionality independent of consuming Application.
User Controls are similar to those of ASP include files, easy to create, can not be placed in the toolbox and dragged - dropped from it. A User Control is shared among the single application files.
17. What is the difference between ASP Session State and ASP.Net Session State?
Ans: ASP session state relies on cookies, Serialize all requests from a client, does not survive process shutdown, Can not maintained across machines in a Web farm.
18.What is ViewState?
Ans: ViewState is a .Net mechanism to store the posted data among post backs. ViewState allows the state of objects to be stored in a hidden field on the page, saved on client side and transported back to server whenever required.
19. What is Authentication and Authorization?
Ans: Authentication is the process of identifying users. Authentication is identifying/validating the user against the credentials (username and password) and Authorization performs after authentication.
Authorization is the process of granting access to those users based on identity. Authorization allowing access of specific resource to user.
20. What are the types of Authentication?
Ans:here are 3 types of Authentication. Windows, Forms and Passport Authentication.
Ans: The DataGrid Web server control is a powerful tool for displaying information from a data source. It is easy to use; you can display editable data in a professional-looking grid by setting only a few properties. At the same time, the grid has a sophisticated object model that provides you with great flexibility in how you display the data.
22. How do you hide the columns?
Ans: One way to have columns appear dynamically is to create them at design time, and then to hide or show them as needed. You can do this by setting a column’s “Visible” property.
23. What are different types of directives in .NET?
Ans.
24. What data type does the RangeValidator control support?
Ans.
25. What is cookies?
Ans: Cookies are small pieces of text, stored on the client’s computer to be used only by the website setting the cookies. This allows webapplications to save information for the user, and then re-use it on each page if needed
26.What is the difference between Server-side scripting and Client-side scripting?
Ans: Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn't have some of the functionality like sockets, uploading, etc.
Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript.
27. How do you create a permanent cookie?
Ans. Permanent cookies are available until a specified expiration date, and are stored on the hard disk.So Set the 'Expires' property any value greater than DataTime.MinValue with respect to the current datetime. If u want the cookie which never expires set its Expires property equal to DateTime.maxValue.
28. Which method do you use to redirect the user to another page without performing a round trip to the client?
Ans:
Ans: Server.transfer
30.What tag do you use to add a hyperlink column to the DataGrid?
Ans: < asp:HyperLinkColumn > < / asp:HyperLinkColumn >
Ans: ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server. ASP. NET provides increased performance by running compiled code.
2. What is the difference between Classic ASP and ASP.Net?
Ans:
- ASP is Interpreted language based on scripting languages like Jscript or VBScript.
- ASP has Mixed HTML and coding logic.
- Limited development and debugging tools available.
- Limited OOPS support.
- Limited session and application state management. ASP.Net is supported by compiler and has compiled language support.
- Separate code and design logic possible.
- Variety of compilers and tools available including the Visual studio.Net.
- Completely Object Oriented.
- Complete session and application state management.
- Full XML Support for easy data exchange.
Ans: Namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time.
4. What is the difference between early binding and late binding?
Ans: Calling a non-virtual method, decided at a compile time is known as early binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding.
5. What is the difference between ASP Session State and ASP.Net Session State?
Ans: ASP session state relies on cookies, Serialize all requests from a client, does not survive process shutdown, Can not maintained across machines in a Web farm.
6. What is the difference between ASP Session and ASP.NET Session?
Ans: Asp.net session supports cookie less session & it can span across multiple servers.
7. What is reflection?
Ans: All .NET compilers produce metadata about the types defined in the modules they produce. This metadata is packaged along with the module (modules in turn are packaged together in assemblies), and can be accessed by a mechanism called reflection.
The System.Reflection namespace contains classes that can be used to interrogate the types for a module/assembly.
8.What is the difference between Server.Transfer and response.Redirect?
Ans: The Server.Transfer () method stops the current page from executing, and runs the content on the specified page, when the execution is complete the control is passed back to the calling page.
While the Response.Redirect () method transfers the control on the specified page and the control is never passed back to calling page after execution.
9.What is a PostBack?
Ans: The process in which a Web page sends data back to the same page on the server.
10. What namespace does the Web page belong in the .NET Framework class hierarchy?
Ans: System.Web.UI.Page
11. What is a bubbled event?
Ans: When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main DataGrid event handler to take care of its constituents.
12. What is the differences between Server-side and Client-side code?
- Server-side code executes on the server.
- Client-side code executes in the client’s browser.
Ans:Assemblies can be static or dynamic.
Static assemblies can include .NET Framework types (interfaces and classes), as well as resources for the assembly (bitmaps, JPEG files, resource files, and so on). Static assemblies are stored on disk in portable executable (PE) files.
Dynamic assemblies, which are run directly from memory and are not saved to disk before execution. You can save dynamic assemblies to disk after they have executed.
14. What are the difference between Structure and Class?
Ans: Structures are value type and Classes are reference type
- Structures can not have constructor or destructors.
- Classes can have both constructor and destructors.
- Structures do not support Inheritance, while Classes support Inheritance.
15. What is the differences between dataset.clone and dataset.copy?
Ans: Dataset.clone copies just the structure of dataset (including all the datatables, schemas, relations and constraints.); however it doesn’t copy the data.
Dataset.copy, copies both the dataset structure and the data.
16. What is the difference between Custom Control and User Control?
Ans: Custom Controls are compiled code (Dlls), easier to use, difficult to create, and can be placed in toolbox. Drag and Drop controls. Attributes can be set visually at design time. Can be used by Multiple Applications (If Shared Dlls), Even if Private can copy to bin directory of web application add reference and use. Normally designed to provide common functionality independent of consuming Application.
User Controls are similar to those of ASP include files, easy to create, can not be placed in the toolbox and dragged - dropped from it. A User Control is shared among the single application files.
17. What is the difference between ASP Session State and ASP.Net Session State?
Ans: ASP session state relies on cookies, Serialize all requests from a client, does not survive process shutdown, Can not maintained across machines in a Web farm.
18.What is ViewState?
Ans: ViewState is a .Net mechanism to store the posted data among post backs. ViewState allows the state of objects to be stored in a hidden field on the page, saved on client side and transported back to server whenever required.
19. What is Authentication and Authorization?
Ans: Authentication is the process of identifying users. Authentication is identifying/validating the user against the credentials (username and password) and Authorization performs after authentication.
Authorization is the process of granting access to those users based on identity. Authorization allowing access of specific resource to user.
20. What are the types of Authentication?
Ans:here are 3 types of Authentication. Windows, Forms and Passport Authentication.
- Windows authentication uses the security features integrated into the Windows NT and Windows XP operating systems to authenticate and authorize Web application users.
- Forms authentication allows you to create your own list/database of users and validate the identity of those users when they visit your Web site.
- Passport authentication uses the Microsoft centralized authentication provider to identify users. Passport provides a way to for users to use a single identity across multiple Web applications. To use Passport authentication in your Web application, you must install the Passport SDK.
Ans: The DataGrid Web server control is a powerful tool for displaying information from a data source. It is easy to use; you can display editable data in a professional-looking grid by setting only a few properties. At the same time, the grid has a sophisticated object model that provides you with great flexibility in how you display the data.
22. How do you hide the columns?
Ans: One way to have columns appear dynamically is to create them at design time, and then to hide or show them as needed. You can do this by setting a column’s “Visible” property.
23. What are different types of directives in .NET?
Ans.
- @Page
- @Control
- @Import
- @Implements
- @Register
- @Assembly
- @OutputCache
- @Reference
24. What data type does the RangeValidator control support?
Ans.
- Integer
- String.
- Date.
25. What is cookies?
Ans: Cookies are small pieces of text, stored on the client’s computer to be used only by the website setting the cookies. This allows webapplications to save information for the user, and then re-use it on each page if needed
26.What is the difference between Server-side scripting and Client-side scripting?
Ans: Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn't have some of the functionality like sockets, uploading, etc.
Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript.
27. How do you create a permanent cookie?
Ans. Permanent cookies are available until a specified expiration date, and are stored on the hard disk.So Set the 'Expires' property any value greater than DataTime.MinValue with respect to the current datetime. If u want the cookie which never expires set its Expires property equal to DateTime.maxValue.
28. Which method do you use to redirect the user to another page without performing a round trip to the client?
Ans:
- Server.Transfer
- Server.Execute.
Ans: Server.transfer
30.What tag do you use to add a hyperlink column to the DataGrid?
Ans: < asp:HyperLinkColumn > < / asp:HyperLinkColumn >
No comments:
Post a Comment