Home »
MCQs »
ASP.Net MCQs
What is the correct syntax to create ASP.NET Calendar control?
54. What is the correct syntax to create ASP.NET Calendar control?
- < asp:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04"></asp:Calendar>
- < asp:Cal ID="Calendar1" runat="server" SelectedDate="2022-09-04" ></asp:Cal>
- < asp_net:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04" ></asp_net:Calendar>
- < asp:Calendar CAL_ID="Calendar1" runat="server" SelectedDate="2022-09-04" ></asp:Calendar>
Answer: A) < asp:Calendar ID="Calendar1" runat="server" SelectedDate="2022-09-04"></asp:Calendar>
Explanation:
The first syntax is correct to create an ASP.NET Calendar control.