SSC IMD SA Mock 01 – Question 195

Question:

How to write the dot net server control?

डॉट नेट सर्वर कंट्रोल (.NET server control) कैसे लिखा जाता है?

Options:

  • <asp:controlType ID=”ControlID” runin=”server” Property1=value1 [Property2=value2] />
  • <asp:controlType ID=”ControlID” runas=”server” Property1=value1 [Property2=value2] />
  • <asp:controlType ID=”ControlID” run=”server” Property1=value1 [Property2=value2] />
  • <asp:controlType ID=”ControlID” runat=”server” Property1=value1 [Property2=value2] />
  • <asp:controlType ID=”ControlID” runin=”server” Property1=value1 [Property2=value2] />
  • <asp:controlType ID=”ControlID” runas=”server” Property1=value1 [Property2=value2] />
  • <asp:controlType ID=”ControlID” run=”server” Property1=value1 [Property2=value2] />
  • <asp:controlType ID=”ControlID” runat=”server” Property1=value1 [Property2=value2] />

Correct Answer: d)

Explanation:

In ASP.NET, web server controls require the runat="server" attribute so the server parses and executes them dynamically before producing HTML to the client browser. Syntax: <asp:controlType ID="ControlID" runat="server" Property1=value1 [Property2=value2] />.

ASP.NET में सर्वर कंट्रोल्स के लिए runat="server" एट्रिब्यूट अनिवार्य है ताकि ASP.NET रनटाइम उन्हें सर्वर पर प्रोसेस कर सके। सही सिंटैक्स है: <asp:controlType ID="ControlID" runat="server" Property1=value1 [Property2=value2] />।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top