tailieunhanh - Beginning Ajax with ASP.NET- P15

Beginning Ajax with P15:Thank you for purchasing Beginning Ajax with . We know that you have a lot of options when selecting a programming book and are glad that you have chosen ours. We’re sure you will be pleased with the relevant content and high quality you have come to expect from the Wrox Press line of books. | Chapter 8 Listing 8-3 continued 38. if 0 39. RegisterClientScriptBlock page .prototype 40. script type text javascript src prototypeJs script 41. 42. if 0 43. RegisterClientScriptBlock page .core 44. script type text javascript src coreJs script 45. 46. if 0 47. RegisterClientScriptBlock page .converters 48. script type text javascript src convertersJs script 49. 50. 51. if 52. 53. RegisterClientScriptBlock page .token 54. script type text javascript CurrentAjaxToken script 55. 56. Being as flexible as possible the library allows you to set these property values with additional entries. The only thing you ve done so far in the is to wire up the Ajax Pro page handler. The library has defined a custom section that you can use in your . This is processed by the found in the Configuration file. Try It Out Adding Custom Sections to Your File Fortunately has framework calls that make it really easy to add custom sections to your file. Listing 8-4 shows a sample entry in your to override the several default property and actions of the Pro library. Listing 8-5 shows how the library reads those overridden values. Listing 8-4 configSections Sample configuration . 01. configSections 02. sectionGroup name ajaxNet 03. section name ajaxSettings type AjaxPro 04. requirePermission false 05. restartOnExternalChanges true 06. sectionGroup 07. configSections 08. 186 Anatomy of Pro Library 09. ajaxNet 10. ajaxSettings 11. urlNameSpaceMappings 12. add namespace AssemblyName path MyPath 13. urlNameSpaceMappings 14. jsonConverters 15. -- remove type Assembly 16. add type Assembly 17. --

TỪ KHÓA LIÊN QUAN