@Master Directive
@Master Directive लगभग @Page Directive के समान ही है, लेकिन @Master Directive के लिए Specify किए जाने वाले Attributes .aspx Page पर Apply होते हैं। जहां @Master Directive को Specify करते समय हम हमारे Master-Page के लिए उन Attributes को Specify करते हैं, जिन्हें हम उस Master-Page से Associated सभी Content-Page पर समान रूप से Apply करना चाहते हैं।
हालांकि इन दोनों ही Directives के कई Attributes लगभग समान ही हैं और समान प्रकार से ही काम करते हैं, लेकिन फिर भी @Page Directive के सभी Attributes को @Master Directive के साथ Use नहीं किया जा सकता। @Master Directive के साथ Use किए जा सकने वाले विभिन्न Attributes की List निम्नानुसार है:
@Control Directive
@Control Directive भी@Page Directive के समान ही है, अन्तर केवल इतना है कि @Control Directive का प्रयोग ASP.NET आधारित User Control Create करने के लिए किया जाता है, जिसे किसी भी Master-Page या WebForm में Reuse किया जा सकता है। @Control Directive हमें ऐसी Properties Define करने की सुविधा देता है, जिन्हें User Control द्वारा Inherit किया जा सकता है।ये Values Webpage की Parsing व Compiling के दौरान User Control को Assign होती हैं।
@Control Directive के लिए उपलब्ध Attributes की संख्या @Page Directive की तुलना में काफी कम होती है, लेकिन इनमें से ज्यादातर को हमें अपना User Control Create करते समय Modify करने की जरूरत पडती है।
@Control Directive निम्नानुसार Exactly उन सभी Attributes को Support करता है, जिन्हें@Master Directive करता है:
ये Article इस वेबसाईट पर Selling हेतु उपलब्ध EBook Core ASP.NET WebForms with C# in Hindi से लिया गया है। इसलिए यदि ये Article आपके लिए उपयोगी रहा, तो निश्चित रूप से ये पुस्तक भी आपके लिए काफी उपयोगी साबित होगी।
Core ASP.NET WebForms in Hindi | Page:647 | Format: PDF