Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to generate bill screen
1.1st page should get the number of products to be billed.

2.2nd page should display the number of rows according to
the number of products given in the first page.

3.Each row should have a text box for
a.product name
b.quantity
c.unit price
d.item price = quantity x unit price

This should be automatically calculated not to be
entered by the user.

4.After entering the products calculate sales-tax for the
total amount which 8.25%.

5.After entering these values you have to generate the bill
in the next page with a unique number for the bill.

can anyone solve this problem..i am in need to solve this
problem..pls help me

Answer Posted / megha

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<script type="text/javascript">
function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
m=checkTime(m);
s=checkTime(s);
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
t=setTimeout('startTime()',500);
}

function checkTime(i)
{
if (i<10)
{
i="0" + i;
}
return i;
}

function product(a,b)
{
return a*b;
}

</script>

</head>

<body onload="startTime()">
<div id="txt"></div>
<script type="text/javascript">

function CalculateTotal(id1, id2,id3) {
alert("display");
var txt1 = parseFloat(document.getElementById(id1).value);
var txt2 = parseFloat (document.getElementById(id2).value);

var total = txt1 * txt2;
document.getElementById(id3).value = parseFloat(total);
}
</script>




<table border="1">
<tr>

<th>Rate</th>
<th>Quantity</th>
<th>Total</th>
</tr>
<tr>
<td ><input type="text" id="txtBox" /></td>

<td><input type="text" id="txtBox0" /></td>
<td><input type="text" /></td>
</tr>
<tr>
<td ><input type="text" id="txtBox1" /></td>

<td><input type="text" id="txtBox2" /></td>
<td><input type="text" id="total" onclick="CalculateTotal('txtBox1',' txtBox2')" /></td>
</tr>
<tr>
<td ><input type="text" id="txtBox3" /></td>

<td><input type="text" id="txtBox4" /></td>
<td><input type="text" id="total1" onclick="CalculateTotal('txtBox3', 'txtBox4')" /></td>
</tr>
<tr>
<td ><input type="text" id="txtBox5" /></td>

<td><input type="text" id="txtBox6" /></td>
<td><input type="text" id="total2" onclick="CalculateTotal('txtBox5', 'txtBox6')" /></td>
</tr>
<tr>
<td ><input type="text" id="txtBox7" /></td>

<td><input type="text" id="txtBox8" /></td>
<td><input type="text" id="total3" onclick="CalculateTotal('txtBox7', 'txtBox8')" /></td>
</tr>
<tr>
<th>
colspan="2">TOTAL</th>
<td><input type="text" id="txtBox9" /></td>
</tr>


</table>
</body>
</html>

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the IP address of the client/user in PHP?

950


How to enable error reporting in php?

1049


What is the name of the scripting engine that powers PHP?

1222


How do you display the output directly to the browser?

909


Does php support multithreading?

1040


How to write a program to make chess?

1023


What are the new features in php 7?

988


What is the purpose of the '.myi' file extension? What do thes file contain?

944


Write a php script to get the largest key in an array?

1014


What is php date function?

1058


Do loops php?

977


What is the major php security hole? How to avoid?

982


What is the use of htmlentities in php?

963


How do I update php?

1016


Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?

962