Q1. Code Webform1.Aspx: Id Runat Style Height Width
Q1. Code Webform1.Aspx: Id Runat Style Height Width
Code
WebForm1.aspx
<body>
<form id="form1" runat="server">
<div style="height: 171px; width: 719px;">
<p>
Click on any of the first three images to display it at the bottom</p>
<p>
Click on the bottom image to clear it</p>
</div>
<div style="height: 192px">
<asp:ImageButton ID="ImageButton1" runat="server"
ImageUrl="~/Chrysanthemum.jpg" onclick="ImageButton1_Click" Width="105px" />
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Desert.jpg"
Width="124px" onclick="ImageButton2_Click" />
<asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/index.jpg"
onclick="ImageButton3_Click" Width="109px" />
</div>
<div>
<hr />
<asp:ImageButton ID="ImageButton4" runat="server"
onclick="ImageButton4_Click" Height="50px" Width="50px" />
</div>
</form>
</body>
WebForm1.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Q3. Code
.aspx file
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<p> <asp:Label ID="Label1" runat="server" Text="CourseWork Feedback
form"></asp:Label></p>
</br>
<asp:Label ID="Label4" runat="server" Text="Select
Course"></asp:Label><asp:DropDownList
ID="DropDownList1" runat="server">
<asp:ListItem Text="Select Course"></asp:ListItem>
<asp:ListItem Text="ASP-XML"></asp:ListItem>
<asp:ListItem Text="DOY-NET"></asp:ListItem>
<asp:ListItem Text="JAVAPro"></asp:ListItem>
<asp:ListItem Text="Unix"></asp:ListItem>
<asp:ListItem Text="C"></asp:ListItem>
<asp:ListItem Text="C++"></asp:ListItem>
</asp:DropDownList></br>
<asp:Label ID="Label5" runat="server" Text="Technical
Coverage:"></asp:Label></br>
</p>
</div>
</form>
</body>
</html>
.aspx.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication3
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Q4. Code
.aspx file
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 459px">
</div>
</form>
</body>
</html>
.aspx.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication4
{
public partial class WebForm1 : System.Web.UI.Page
{
// int j;
protected void Page_Load(object sender, EventArgs e)
{
}
}
Q5.
.aspx
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 358px">
</br>
<asp:Label ID="Label4" runat="server" Text="Qty"></asp:Label>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>
.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication5
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Text = "10";
TextBox2.Text = "Wheat";
TextBox3.Text = "14.25";
TextBox4.Text = "1000";
}
}
Q7.
Q8.
.ASPX FILE
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 195px">
</div>
</form>
</body>
</html>
.aspx.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication7
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Q9.
.aspx
Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="WebApplication8.WebForm1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 356px">
<br />
<asp:Label ID="Label3" runat="server" Text="Select Operation"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="124px">
<asp:ListItem Text="Select Operation"></asp:ListItem>
<asp:ListItem Text="Add"></asp:ListItem>
<asp:ListItem Text="Subtract"></asp:ListItem>
</asp:DropDownList>
<br />
<br />
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Show Result"
onclick="Button1_Click" />
</br>
</br>
<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
.axpx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication8
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Q10.