Test
Test
(1) Which of the following languages can be used to write server side scripting in ASP.NET? A) C# B) VB C) C++ D) Both (A) and (B) (2) The Asp.net server control, which provides an alternative way of displaying text on web page, is A) <Asp:Label> B)<Asp:Panel> C)<Asp:TextBox> D) All of the above (3) The first event to be triggered in an aspx page is. A) Page_Load() B)Page_Init() C)Page_Click (4) What is the extension of a web user control file? A).asmx B).ascx C).aspx (5) Select the control which does not have any visible interface. a) ListView b) DropdownList c) Repeater d) Datagrid
(6) Write The Extension of the Following: A) Web Form :---------------------------B) Web User Control-----------------------C) Custom User Control--------------------D) Web Configuration File-------------------E) Global Application File---------------------F) Master Page--------------------------(7) __________________________________enables caching of individual Web pages. A)Page Output Caching B)Post-Cache Substitution C) Add() Method D)None Of The Above (8) ASP.NET Web sites can be hosted under IIS A) True B) False (9)What will be the Output Web form part: <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> Code Behind Part:protected void Button1_Click(object sender, EventArgs e) { Response.Write(Convert.ToString((Label1.Text==TextBox1.Text))); } Ans:---------------------(10) Write Down simple programme to show time current time on a label.