Development
Cross-Page Posting:
- By default ASP.NET submit form to same page. In cross-page posting, the form is submitted to a different page.
- This is done by setting the “PostBackURL” property of the button (that causes postback) to the desired page.
- In the code-behind of the page to which the form has been posted, use the “Find Control” method of the “Previous Page” property to reference the data of the control in the first page.
Literals and their types:
- Integer - Int, uInt, long, ulong
- Real -Float, double, decimal
- Boolean True & False
- Single Character - “H”
- String “Hello”
- Backslash Charater
- Null
Errors Type:
1. Syntax
2. Logic
3. Runtime
Variables Type:
1. Static
2. Instance
3. Value Parameter
4. Reference Parameter
5. Array Element
6. Output Parameter
7. Local Variables
Special Operators:
1. Is (relational)
2. As (relational)
3. Typeof(type)
4. Sizeof (Size)
5. New (Object Creator)
6. .dot (member access)
7. Checked (overflow checking)
8. Unchecked (prevention of overflow checking)
Access Modifier:
- Public, Static, Void
- Public Public declared variables or methods are accessible anywhere in application
- Static Declared variable or methods are globally accessible without creating an instance of the class.
- Void is type modifier that state that method or variable does not return any value.
DotNet Framework
1. Silverlight: A cross-browser, cross-platform implementation of .net framework for building media experience and rich interactive apps for web, desktop, phone.
2. WCF Data Services: Technology enable to create services that use the open data protocol (OData), which exposes and consume data over the web r intranet by using semantic of representational State of Transfer (REST)
3. Entity Framework: Technology that supports development of data-oriented software application
4. Reactive Extensions: A library for composing asynchronous and event based programs for .NET framework, Silverlight and windows phone 7 by using observable sequence and LINQ- style Query operators.
5. Microsoft Surface: Technology supports high-end graphics & multiuser interaction.
6. Windows Identity Foundation (WIF): A set of .NET framework classes that help you build claims-aware, relying party applications and security token services.
7. Windows Server AppFabric: A set of integrated technologies that make it easier to build, scale, and mange web and composite apps that runs on IIS.
ASP.NET Security Controls:
- asp:Login>: Provide standardlogin capability that allows user to enter their credentials.
- asp:LoginName>: Allows you to display the ame of the logged-in user.
- asp:LoginStatus>: Displays whether user is authenticated or not
- asp:LoginView>: Provides various login views depending on selected tamplates.
- asp:PasswordRecover>: email the users their lost password
Repeater Control Template List
- Item Template
- Alternating Item Template
- Separator Template
- Header Template
- Footer Template
Exceptions in .NET
- ArgumntException, ArgumentNullException, ArgumentOutofRangeException, ArithmeticException, DivideByZeroException, OverFlowException, IndexOutofRangeException, InvalidCastException, InvalidOperationException, IOEndofStreamException, NullReferenceException, OutofMemoryException, StackOverFlowException, etc.
Built-In Objects in ASP.NET
- Application
- Request
- Response
- Sever
- Session
- Context
- Trace
Cookies in ASP.NET
- Session Cookies: Resides on client machine for a single session, until user doesn’t log out.
- Persistent Cookies: Resides on user’s machine for a period specified for its expiry. E.g. never, today.
Namespace are necessary to create localized application.
- System.Globalization
- System.Resources
ADO.NET Components
- DataSet
- DataReader
- DataAdaptor
- Command
- Connection
Range Validator Controls Support DataTypes
- Integer
- Double
- String
- Currency
- Date
Base Class: The class, whose members are inherited, is called base class.
Manifest: Resources, Types, References are described in block of data called manifest
MetaData:
1. Version Assembly
2. Security Identity
3. Scope of Assembly
4. Resolve Reference to Resources & Class
Assembly: Unit of EXE, DLL, HTML
Authentication: Identify User
Authorization: Access Rights
Modifiers: Abstract, Sealed, Virtual, Const, Event, Extern, Override, Readonly, Static, New
Types of Array:
1. Single Dimensional
2. Multi-Dimensional
3. Jagged Array
Validators in ASP.Net:
1. Required Field
2. Range
3. Compare
4. Custom
5. Regular
6. Summary
Session State Management Options:
1. In-Process: Stores the session in memory on the web server
2. Out-Of-Process: Store data in external server
- External server may be either SQL Server or State Server
- All Objects stored in session are required to be serializable for out-of-process state management
Type of Cache:
1. Output Cache: stores & responses from ASP.Net page
2. Fragment Caching: It caches the portion of the page generated by request.
3. Data Caching: Programmatic way to cache objects for performance.
Page-Life-Cycle; Event List:
1. Page_PreInit
2. Page_init
3. Page_InitComplete
4. Page_PreLoad
5. Page_Load
6. Page_LoadComplete
7. Page_PreRender
8. Render
Global.Asax, Event Handlers:
1. Application_Start
2. Application_End
3. Application_AcquireRequestState
4. Application_AuthenticateRequest
5. Application_AuthorizeRequest
6. Application_BeginRequest
7. Application_Dispose
8. Application_EndRequest
9. Application_Error
10. Application_PostRequestHandlerExecute
11. Application_PreRequestHandlerExecute
12. Application_PreSendRequestContent
13. Application_PreSenderRequestHeader
14. Application_ReleaseRequestState
15. Application_ResolveRequestCache
16. Application_UpdateRequestCache
Session State Events: Session_Start, Session_End
Undefined means variable has been declared has not yet been assigned a value.
“==” checks only equality
“===” checkes for equality as well as the type
“var a = 2” Not globally assigned, specific to function
A = 2 Declare as global function
How to create New Object in JavaScript?
Var obj = new Object(); or var obj = {}
How to assign object properties?
Obj[“age”] = 17 or obj.age = 17
JQuery: Simplifies HTML document traversing, animating, event handling, & AJAX interactions for the purpose of quick web development needs.
Event Bubbling: Describes the behavior of events in child and parent nodes in the document object Model (DOM)
Change Style / Class on any element?
- Document.getElementById(“myText”).style.fontsize = “20”;
- Document.getElementById(“myText”).className = “anyclass”;
Project Plan Deliverables:
1. Feasibility Study Document
2. Point of Contact
3. Technology solution document
4. Project charter
5. Project Trade Off Matrix & status summary
6. Project Organization
7. Activity List
8. Business Requirement Document
9. Work Product Identification
10. Change Control
11. Project Schedule
12. Financial & Budgetary control
13. Estimate cost & completion
14. Service Level Agreement (SLA)
15. Resource Loading Profile
16. Disaster Recovery plan
17. Project Requirements
18. Meeting Minutes
19. Risk Identification
20. Configuration Management Plan
21. Quality Plan / Test Scenario & Test Plan
22. Top 5 Issues
23. Action Item status
24. Security Management
Scrum: Agile Framework. Improve productivity in team, ability to prioritize work, use of backlog for completing items in a series of short iterations or sprints, daily measure, process and communication.