- , 59, 439, 521, 532 HTML tag, 13 Menu, 250, 253 underline, 726 uniform resource locator (URL), 240 absolute, 242 aspx, 461 default documents, 243 extension-less, 261–263 friendly, 10 IIS, 739, 740 relative, 241–242 server-side redirects, 267 strongly typed data-bound controls, 524 uniqueidentifier, 426, 434 Universal Providers, 592, 609 Universal selector, 70–71, 380 unload phase, ASP.NET page life cycle, 208 unnamed instance, 782 unobtrusive JavaScript, 397–401 unordered lists, 59, 439, 771 Untitled Page, 206, 207 UPDATE, 424, 770 DropDownList, 478 GridView, 459 hand-coding data access code, 572 SQL, 422 WHERE, 425 Update, 477 UpdateCommand, 446, 476, 578 UpdateDateTime, 469, 474, 477, 501 default value, 430 hand-coding data access code, 571 tables, 429 UpdateMethod, 505 UpdateMode, 343 UpdatePanel, 349, 350–351, 767 AJAX, 340–344, 564 exception handling, 669 URL-rewrite scenarios, 267 user controls, 273–297 caveats, 282–284 ClientID, 282–283 ClientIDMode, 283–284 content pages, 277–280 creating, 274–277 logic, 284–295 master pages, 277–280 practical tips, 295 properties data types, 284–289 sitewide registration, 280–282 tags, 277–278 View State properties, 289–295 Web.config, 280–282 user input exception throwing, 301 GET, 300 POST, 300 validation, 299–335 e-mail, 321–327 Web Forms, 301–320 userContext, 355 userMessage, 667 userName, 325 Users, 597 users, 621 UsersInRoles, 617 V ValidateRequestMode, 321 validation client-side, 302, 766 DetailsView, 476 HTML5 data types, 305–308 jQuery, 397–401 practical tips, 333 processing data at server, 321–332 request, 320–321 server-side, 302 SQL, 416 Standard controls, 308–309 text files, 327–332 user input, 299–335 e-mail, 321–327 Web Forms, 301–320 823 www.it-ebooks.info bindex.indd 823 25-02-2014 10:45:53 validation controls – View State validation controls, 123, 207, 301–320 See also specific controls ValidationGroup, 309, 320 ValidationSummary, 308, 314–320 Value, 113, 114, 457 value, 172 Value Providers, 510 values CSS, 69, 74–75 declarations, 69 ValueToCompare, 311 var, 494 varbinary, 426 varchar, 426 variables ASP.NET programming, 137–147 backing, 180–181 C#, 139–140 camel case, 138 debugging, 687–688 NET Framework, 139–140 range, 496 reference, 168 VB.NET, 139–140 VaryByParam, 577 vb, 43 VB.NET, 139 access modifiers, 189 anonymous identification, 656 anonymous types, 499, 500, 502 arithmetic operators, 148–150 Array.Resize, 144 base page, 212 Cache API, 581, 583, 584–585 casting data types, 141–142 classes, 179 comments, 176–178 comparison operators, 151–152 concatenation operators, 152–153 constructors, 184–186 cookies, 224–225 custom error pages, 676–678 CustomValidator, 319 DataPager, 531, 532, 533 debugging, 685 DetailsView, 468, 474 EF, 488, 491 e-mail, 326–327 event handling, 551, 552 events, 190–191 exception handling, 668–674 fields, 180 generics, 146–147 hand-coding data access code, 567–568, 571, 572–574 inheritance, 186–188 Inherits, 461 LINQ, 486 LINQ queries, 494 Model Binding, 508 ListView, 514, 515–516, 517, 519, 520, 521, 528 logic errors, 666 logical operators, 154–155 ManagePhotoAlbum, 651, 652 Me, 212 methods, 183–184 functions, and subroutines, 167–169 namespaces, 173–175 NavigateUrl, 293 objects, 179 OnTick, 351 OperationMethod, 360 Optional, 553 Profile, 633, 634, 635, 636, 637–638, 642, 643, 644, 645, 657 programmatic caching, 579, 580 programmatically checking roles, 623, 633 properties, 180–183 read-only and write-only properties, 183 Reviews, 647 roles, 622 RowDataBound, 556, 557, 559, 560 syntax errors, 665 templates, 215 themes, 231 tracing, 704, 709 value, 172 variables, 139–140 WCF, 353, 355, 358 Web.config, 720, 721, 723 WebConfigurationManager, 719 vbproj, 35 VerticalAlign, 542 VerticalPanel, 768 , 13 Vieira, Robert, 420 View menu, Notification window, 17 View Page Source, 9, 116, 202, 397 View Source, 9, 116, 202, 397 View State ASP.NET page life cycle, 207 ASP.NET Server Controls, 129–130 controls, 760 performance, 130–131 properties, user controls, 289–295 state engine, 128 ViewState, 764 Wizard, 120 V V _ V v v v V V V V V 824 www.it-ebooks.info bindex.indd 824 25-02-2014 10:45:53 ViewDetails.aspx – Visual Studio Express 2013 for Web (VSEW) ViewDetails.aspx, 580, 582–583, 585, 647 ViewState, 764 VIEWSTATE, 128, 130, 342, 760 ViewStateMode, 130–131 virtual, 188 virtualFolder, 529 visibility, 74 Visible, 107, 115, 469, 477, 704 exception handling, 673 programmatically checking roles, 634 tracing, 704 VisibleWhenLoggedIn, 599 Visual Basic, 52, 113, 172, 211, 287 Visual Basic.NET, Visual Studio (VS) AJAX, 338 ASP.NET, Server Controls, 101, 106 ASP.NET 1.0, base page, 210 Browser Link, 702–704 class, 93 code snippets, 303 comments, 87 content pages, 203 CSS, 84–96 properties, 74 styles, 93–96 text editor, 85–89 data tips, 690 debugging, 684 Design View, 48 DetailsView, 473 DropDownList, 457 editors, 48 event handling, 491 expression syntax, 717 File Explorer, 215, 220 GridView, 457 HTML, 56 IDE, 31 IIS, 737 inline style sheets, 96 IntelliSense, 50, 363–364 jQuery, 393 keyboard shortcuts, 28 , 79 LINQ to ADO.NET, 487 Markup View, 92, 508 NuGet, 369–373 Panel, 116 practical tips, 30–31 result, 356 shorthand declarations, 90 style sheets, 759 , 59 tables, 445 , 59 templates, 215 text, 56 themes, 220 Toolbox, 109 ListView, 514 UpdatePanel, 341 user controls, 274 , 59 Untitled Page, 207 user controls, 280 WCF, 357 web deployment, 727–730 Web Forms, 48 Web.sitemap, 245 Windows Explorer, 45 WSAT, 614 Visual Studio 2005, Visual Studio 2008, Visual Studio 2013, creating websites, 34–41 opening existing websites, 40–41 Web Application Projects, 34–35 Web Site Projects, 34 website templates, 35–37 Visual Studio 2013 IDE, 16–29 customization, 23–29 development area, 16–22 development profiles, 17 Document Window, 19–20 customization, 26–27 Error List, 22 Find Results window, 23 informational windows, 22–23 keyboard shortcuts, customization, 28 Main menu, 17 Notification window, 17 Output window, 22 Properties Grid, 19 resetting changes, 28–29 Server Explorer, 18–19 Solution Explorer, 18 Start Page, 20 Team Explorer, 19 toolbar area, 17–18 customization, 27 Toolbox, 18 modifying, 24–26 resetting, 28 Visual Studio Express 2013, 2, 139 Visual Studio Express 2013 for Web (VSEW), 2–5, 17 825 www.it-ebooks.info bindex.indd 825 25-02-2014 10:45:53 Visual Studio.NET – Web.config Visual Studio.NET, Visual Web Developer (VWD), 63 VS See Visual Studio VSEW See Visual Studio Express 2013 for Web VWD See Visual Web Developer W W3C See World Wide Consortium Warn, 709 Watch window, 687–688, 693 WCF See Windows Communication Foundation WCF Services, 43 Web API, 35 Web Application Projects, 34–35 web applications caching, 576–585 configuration, 609–612 Profile, 630–631 roles, 618–622 security, 609–612 Web Deploy, 728 Web Deploy Package, 728 web deployment, 715–755 bundling, 723–727 checklist, 751–753 expression syntax, 717–718 IIS, 727, 734–747 minification, 723–727 preparing, 727–734 publishing, 727–730 remote server, 747–751 VS, 727–730 Web.config, 717, 719–723 Web.config Transformations, 730–734 WebConfigurationManager, 718–719 Web Essentials, 704 Web Forms, adding with code, 49–53 application services, 592 ASP.NET, 47–61 ASP.NET Server Controls, 101 aspx, 42 Code Behind, 49–53, 61, 509, 556 CSS, 66 DetailsView, 465 Document Window, 27, 47 Format menu, 61 Global.asax, 678 hand-coding data access code, 565 HTML, 48–49, 61 inline code, 49–53 jQuery, 369 LINQ queries, Model Binding, 505 Panel, 115 POST, 128 practical tips, 61 programmatic redirection, 265 RowDataBound, 556 ScriptManager, 360 Signup.aspx, 595 state engine, 128 Table menu, 61 user input validation, 301–320 VS, 48 Web Application Projects, 34 Web Site Projects, 34 Web Forms Site, 36 Web Pages, 36 Web Platform Installer (WPI), 3, 736 web server IIS, 735–747 troubleshooting, 745–747 web services AJAX, 351–365 creating, 357–365 Web Site Administration Tool (WSAT), 613–618 Web Site Projects, 169 opening websites, 40 Profile, 631, 635 Visual Studio 2013, 34 Web User Control, 42 Web.config, 42, 723 application services, 793 , 398, 717 authentication, 598 , 595, 598 bundling, 725, 727 caching, 576 connection strings, 449–451 , 449–451, 595, 771 , 745 debugging, 751 enabled, 710–711 exception handling, 670 expression syntax, 718 IIS, 739, 740 jQuery validation, 397, 400 Management, 618, 620, 621 ManagePhotoAlbum, 651 NTFS settings, 744 Page Inspector, 697 , 221, 762 Profile, 631, 633, 634, 635, 636 , 631, 634 Profile service, 630 ProviderName, 445 Release, 739, 740 W W W W W W W W W w W W W W W w W w W W w W W 826 www.it-ebooks.info bindex.indd 826 25-02-2014 10:45:54 Web.config Transformations – zero-based RequiredFieldValidator, 304–305 ResponseRedirect, 679 runtime, 780 ScriptManager, 363 SMTP, 325 Solution Explorer, 39 SQL Server Authentication, 791 styles, 546 , 322 , 777 themes, 218, 219 tracing, 707, 708 unobtrusive JavaScript, 397, 400 user controls, 280–282 WCF, 357, 362 web deployment, 717, 719–723, 752 WSAT, 617 XML, 44 Web.config Transformations, 730–734, 752 WebConfigurationManager, 718–719 Web.Debug.config, 39 WebException, 671 WebForms, 399 WebParts controls, 124 WebResource.axd, 250–251 WebServices, 358 WebServices.aspx, 362 website templates, 35–37 Web.sitemap, 244–246, 255, 533 Web.To local disk.config, 732 WHERE, 418, 425, 770 SelectParameters, 455 SQL, 413–414 Where, 486, 493, 496, 515, 650, 774 While loop, 165–166 whitespace, 76 Width, 107, 470, 542, 640 width, 73, 76, 84 Window menu, 28 Windows, 598 windows, debugging, 687–693 Windows Authentication, 782–783, 791–792 Windows Communication Foundation (WCF) AJAX, 339, 352–365, 767 JSON, 359 client-side code, 354–355 complex objects, 355–360 IntelliSense, 363–364 JSON, 357 metadata, 359 serialization, 357 VS, 357 Web.config, 357, 362 Windows Event Viewer, 745 Windows Explorer, 45, 758 Windows Regional Settings, Wizard, 117–121 Smart Tasks panel, 118 Toolbox, 117 WizardStep, 118 World Wide Consortium (W3C), 66 WPI See Web Platform Installer Wrap, 542 Write, 710 WriteAllText, 328 WriteMessage, 553 write-only properties, 183 WSAT See Web Site Administration Tool X XHTML, 14 XML, 44, 250, 255 See also Asynchronous JavaScript and XML; LINQ to XML caching, 578 comments, 177–178 e-mail, 322 LINQ to XML, 487 XML, 122 xml, 44 XmlDataSource, 440 XMLHttpRequest, 339 Y Yellow Screen of Death, 564, 667, 680, 780 Z zero-based, 143 827 www.it-ebooks.info bindex.indd 827 25-02-2014 10:45:54 Try Safari Books Online FREE for 15 days and take 15% off for up to Months* Gain unlimited subscription access to thousands of books and videos With Safari Books Online, learn without limits from thousands of technology, digital media and professional development books and videos from hundreds of leading publishers With a monthly or annual unlimited access subscription, you get: • Anytime, anywhere mobile access with Safari To Go apps for iPad, iPhone and Android • Hundreds of expert-led instructional videos on today’s hottest topics • Sample code to help accelerate a wide variety of software projects • Robust organizing features including favorites, highlights, tags, notes, mash-ups and more • Rough Cuts pre-published manuscripts START YOUR FREE TRIAL TODAY! Visit: www.safaribooksonline.com/wrox *Discount applies to new Safari Library subscribers only and is valid for the first consecutive monthly billing cycles Safari Library is not available in all countries www.it-ebooks.info badvert.indd 828 2/21/2014 10:50:20 AM Programmer to Programmer™ Connect with Wrox Participate User Group Program Take an active role online by participating in our P2P forums @ p2p.wrox.com Become a member and take advantage of all the benefits Wrox Blox Wrox on Download short informational pieces and code to keep you up to date and out of trouble Follow @wrox on Twitter and be in the know on the latest news in the world of Wrox Join the Community Wrox on Sign up for our free monthly newsletter at newsletter.wrox.com Join the Wrox Facebook page at facebook.com/wroxpress and get updates on new books and publications as well as upcoming programmer conferences and user group events Wrox.com Browse the vast selection of Wrox titles, e-books, and blogs and find exactly what you need Contact Us We love feedback! Have a book idea? Need community support? Let us know by e-mailing wrox-partnerwithus@wrox.com www.it-ebooks.info www.it-ebooks.info ... ffirs.indd 25-02-2014 10:44:30 Beginning ASP.NET 4.5.1 www.it-ebooks.info ffirs.indd 25-02-2014 10:44:30 www.it-ebooks.info ffirs.indd 25-02-2014 10:44:30 Beginning ASP.NET 4.5.1 in C# and VB Imar... Introducing Web.config Transformations Running Your Site Under IIS Installing and Configuring the Web Server Installing and Configuring ASP.NET Understanding Security in IIS NTFS Settings for... team during the development process and I am certain he will continue to be so even in the future In Beginning ASP.NET 4.5.1: in C# and VB he starts slow, goes deep, builds concepts, and covers