Question 105Asked in DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)How to write the dot net server control?
- A<asp:controlType ID="ControlID" runin="server" Property1=value1 [Property2=value2] />
- B<asp:controlType ID="ControlID" runas="server" Property1=value1 [Property2=value2] />
- C<asp:controlType ID="ControlID" run="server" Property1=value1 [Property2=value2] />
- 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.