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:
- Text Box & Drop Down List
- Label & Button
- Drop Down Selected Index Change
Output:
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;
}
}