Asp.Net Tutorial Assignment no 3 – 22 Lectures List

Get ASP.Net Assignment and Solved Answer for Program. All Collage Assignment Solved Availalbe for Engineer Students. Computer Classes can Also take advantages For ASP.NET Solved Assignment and Tutorials. GenronTech help IT Student for Assignment Solution. Do share with Your Friends.

[ResponsiveRect]

Lecture 2

Asp.Net Programming Assignment no 3 – ASP Tutorial for Beginners

Objective:

Write a program to Calculate Total amount of a particular product purchased by customers.

Controls, Methods, Properties & Event Used:

  1. Text Box & Drop Down List
  2. Label & Button
  3. Drop Down Selected Index Change

Output:

ASP.NET Assignment no 3 tutorial

Program:

[LinkVer]

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class frmDropdownListExample : System.Web.UI.Page
{
protected void btnTotal_Click(object sender, EventArgs e)
{
lbTotal.Text = “Total is ” + Convert.ToInt32(ddProduct.SelectedValue) * Convert.ToInt32(txtQuantity.Text) ;
}
protected void ddProduct_SelectedIndexChanged(object sender, EventArgs e)
{
txtPrice.Text = ddProduct.SelectedValue;
}
}

Read : How to Install Dual Whatsapp on Single Phone

Leave a Comment