ASP.Net
1. What is ASP.Net? Why asp.net?
A) 1. ASP.NET is a .NET web technology or Server-side technology.
WHY: To develop a web application by using .Net we have to use a .Net web technology called Asp.Net and a .Net language called C#.Net.
2. What do you mean by server-side technology?
1. The code which is executing within the WEB SERVER is called as SERVER SIDE CODE.
2. Server-side code we can implement by using Server-side technologies.
Ex. ASP, ASP.NET, JSP, PHP and so on
3. Using server-side technology we can develop server-side web pages.
3. What do you mean by client-side technology?
- The code which is executing within the WEB BROWSER is called as CLIENT SIDE CODE.
- Client-side code we can implement by using client-side technologies.
- Ex: JavaScript, HTML, CSS
4. What are the programming techniques that will be supporting by asp.net?
Asp.net will support 2 Programming Techniques.
- 1. InPage Technique and
- 2. CodeBehing Technique.
5. Can we convert client-side control as server-side control? Can we convert server-side control as client-side control?
A) Yes. We can convert Client-side control as server-side control by adding an ATTRIBUTE called runat=‖server‖. But we cannot convert server-side control as client-side control.
6. How can you pass values between ASP.NET pages?
A) Different techniques to move data from one webform to another are:
1. Query string
2. Cookies
3. Session state
4. Application state
5. Cross page postback
6. Context.Handler object
7. What is the difference between Responses.Redirect() and Server.Transfer()?
A) Response. Redirect():
1. It is used to navigate the user request between multiple web servers.
2. It will not hide the Destination URL address.
Server. Transfer():
1. It is used to navigate the user request within the webserver.
2. It will hide the Destination URL address.
8. Explain validation controls in asp.net?
A) There are 6 Validator Controls.
They are
1. Required field Control
2. Compare validator
3. Range validator
4. Regular Expression validator
5. Custom validator
6. Validation summary
9. When we will go for custom validator control?
A) Whenever our validation requirement is unable to achieve with the help of existing validation controls then we have to go for CUSTOM VALIDATOR CONTROL.
10. How to invoke server-side validation function and how to invoke client-side validation function?
A) Server-side validation functions can be invoked by using ASP.NET and Client-side validation functions are invoked with the help of JavaScript and HTML.
11. How to access information about a user’s locale in ASP.NET?
A) User’s locale information can be accessed through
System.Web.UI.Page.Culture property.
12. What are the life cycle events of asp.net?
A) Application level, Control level, Page-level.
13. What are the Asp.Net page cycle stages?
A) There are overall 8 stages available for any webpage that will undergo within the server at page life cycle.
1) Page Request
2) Start
3) Page Initialization
4) Load
5) Validation
6) PostBack Event Handling
7) Rendering
8) Unload
14) What are page life cycle events?
- Page_PreInit
- Page_Init
- Page_InitComplete,
- Page_PreLoad
- Page_Load
- Page_LoadComplete
- Page_PreRender
- Page_PreRenderComplete,
- Page_Unload
15)In asp.net page life cycle events which will fire first?
16) What is the difference between event and method?
A) Event will execute for some action i.e called as event firing or event calling or event executing. Whereas method will contain some behavior or functionality.
17) What are the default events of the controls Button and Textbox?
A) Default events of Button: CLICK Event TextBox: TEXT CHANGED Event
Comments
Post a Comment