08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Development In ASP.NET by Tanzim Saqib
1. Development in ASP.NETWebForms, LINQ, Dynamic Data TanzimSaqib www.TanzimSaqib.com SaaS Developer Software as-a Service (SaaS) Platform British Telecom
3. What is ASP.NET Technology for web application development Provides you with rich APIs and services Robust, scalable, fast development experience Great flexibility, less coding Seamless integration with Microsoft stack tools Not an upgrade from ASP the next generation ASP
4. WebForms UI elements that make up the Look & Feel of your application Also known as just Page. Code behind brings UI and code separation Default.aspx Default.aspx.cs Advanced features reduce code i.e. Data binding Rich Drag & Drop design experience
5. WebForms (contd.) Support for multiple languages C#, VB, C++ and so on Similar to Windows Forms programming model Events, Properties, Methods Extensibility Third party assemblies and controls runat=“server” Compiled at server-side Accessible by server code
9. Page Life Cycle Events Events in green are the most frequently used
10. Page Life Cycle Events (contd.) For more information: http://bit.ly/aspnetevents
11. WebForms Feature Highlights Themes and skins Master pages Membership, Profile and Role Manager API Application Services for AJAX applications Website administration Wide range choices for caching Levels: Application, Session, Cache, Cookie, Page, Portion of Page Handling errors
12. WebForms Feature Highlights (contd.) ViewState Technique to persist changes to state of a WebForm across postbacks Stores in a hidden input field __VIEWSTATE Encrypted Increase length of the page, hence slows down You can turn on/off
13. Cozying up with ASP.NET Development demo Building a complete data driven site
15. Language INtegrated Query - LINQ Pronouced as “Link” A language construct Strongly typed query against objects Full intellisense support Can be used with any collection of objects that implements IEnumerable<T> Highly extensible LINQ to XML LINQ to SQL LINQ to Flickr! etc.
16. LINQ Benefits Simply put - avoiding having to learn and master many different domain languages, development or debugging environments in order to retrieve and manipulate data from different sources One language to query all. Deferred Execution Process queries only when foreach/ToList() is being called. Parallel Extensions help LINQ queries run in multiple processor cores in ASP.NET 4
18. Obtaining data source Query Expression Syntax: varallProducts = from p in products select p; Extension Method: No representation. productsis the collection of objects
19. Filtering Query Expression Syntax: varlowOnProducts = from p in products where p.UnitsInStock < 10 select p; Extension Method: products.Where(p => p.UnitsInStock < 10);
20. Ordering Query Expression Syntax: varlowOnProducts = from p in products where p.UnitsInStock < 10 orderbyp.Name ascending select p; Extension Method: products.Where(p => p.UnitsInStock < 10) .OrderBy(p => p.Name);
27. LINQ Query Provider Roll your own provider: YouTubeContextcontext = new YouTubeContext(); var query = (from v in context.Videos where v.Location == " Moghbazar " && v.SearchText == “Rail Crash" select v).IfNotViewedBy(“TanzimSaqib”); Building LINQ Provider series: http://bit.ly/LINQSeries
29. Dynamic Data Overview Build powerful data driven sites in a minute! Automatic creation of WebForms Controls and data binding Validation logic in place Metadata inferred from schema Easy and highly customizable Time saver and reusable
35. Routing Standard URL: http://yourcompany.com/Products/Edit.aspx Extensionless clean URL: http://yourcompany.com/Products/Edit No necessity to move files around Routing engine is being used by Dynamic Data ASP.NET MVC Attend the next session for deep dive into Routing and ASP.NET MVC
38. Futures - ASP.NET 4 Support for meta tags Page.Keywords, Page.Description Enabling ViewState for individual controls ViewStateMode property of the control Reading route values at Page level: Page.RouteData.Values[“param_name_here"] Reading route values from markup: <%$ RouteValue:param_name_here %> More precise and predictable ClientIDs
39. Futures - ASP.NET 4 (contd.) QueryExtender New server control Works with LinqDataSource and EntityDataSource More control over what is coming from Database Controls for nested use with QueryExtender SearchExpression RangeExpression PropertyExpression CustomExpression
40. Futures - ASP.NET 4 (contd.) Web.config transformation: Development settings: web.debug.config Production settings: web.release.config Dynamic Data New field template for URL, Email addresses Client Template and Live data binding Enables binding data source to HTML elements Implemented with Observer pattern Data changes from/to UI to/from Database notified