Question 105Asked in DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)

How to write the dot net server control?

  1. A<asp:controlType ID="ControlID" runin="server" Property1=value1 [Property2=value2] />
  2. B<asp:controlType ID="ControlID" runas="server" Property1=value1 [Property2=value2] />
  3. C<asp:controlType ID="ControlID" run="server" Property1=value1 [Property2=value2] />
  4. D<asp:controlType ID="ControlID" runat="server" Property1=value1 [Property2=value2] />
Show answerHide answer

Correct answer: (D) <asp:controlType ID="ControlID" runat="server" Property1=value1 [Property2=value2] />

Explanation

ASP.NET server controls must carry runat="server", for example <asp:Button ID="b1" runat="server" />. Without it they are not processed on the server.

From DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM)

This is question 105 of DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.