Potrzebuje pomocy z w ASP NET - napisac aplikacje.
Mam napisac cos takiego:
Rozliczenie spłaty kredytu w malejących ratach płatności R
Kod tego progreamy wygląda tak:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="WebChart" Namespace="WebChart" TagPrefix="Web" %>
<!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>Radek Bartnicki Credit Aspects</title>
</head>
<body>
<form id="Form1" runat="server">
<table>
<tbody>
<tr>
<td colspan="4">
<p align="center">
<strong><font size="2">Rozliczenie spłaty kredytu w malejących ratach płatności R</font></strong>
</p>
</td>
</tr>
<tr>
<td>
<em><font size="1">Wysokość kredytu K</font></em></td>
<td>
<asp:TextBox id="input_K" runat="server" Width="120px"></asp:TextBox>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
<em><font size="1">Liczba lat spłaty kredytu n</font></em></td>
<td>
<asp:DropDownList id="input_n" runat="server" Width="120px" AutoPostBack="True" OnSelectedIndexChanged="input_n_SelectedIndexChanged">
<asp:ListItem Value="0,23" Selected="True">1 rok</asp:ListItem>
<asp:ListItem Value="0,235">2 lata</asp:ListItem>
<asp:ListItem Value="0,237">3 lata</asp:ListItem>
<asp:ListItem Value="0,239">4 lata</asp:ListItem>
<asp:ListItem Value="0,240">5 lat</asp:ListItem>
</asp:DropDownList>
</td>
<td>
<asp:Label id="LabelStopaRoczna" runat="server" visible="False" font-size="XX-Small" font-italic="True">Roczna
stopa procentowa p</asp:Label></td>
<td>
<asp:TextBox id="output_p" runat="server" Width="60px" Enabled="False" Visible="False"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<em><font size="2"><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: PL; mso-fareast-language: PL; mso-bidi-language: AR-SA">Liczba
wpłacanych rat w roku m</span></font></em></td>
<td>
<asp:ListBox id="input_m" runat="server" AutoPostBack="True" OnSelectedIndexChanged="input_m_SelectedIndexChanged" Rows="3">
<asp:ListItem Value="1" Selected="True">Raz w roku</asp:ListItem>
<asp:ListItem Value="2">Co pół roku</asp:ListItem>
<asp:ListItem Value="4">Co kwartał</asp:ListItem>
<asp:ListItem Value="6">Co dwa miesiace</asp:ListItem>
<asp:ListItem Value="12">Co miesiac</asp:ListItem>
</asp:ListBox>
</td>
<td>
<asp:Label id="LabelStopaOkresu" runat="server" visible="False" font-size="XX-Small" font-italic="True">Stopa
procentowa dla pojedynczego okresu spłaty kredytu</asp:Label></td>
<td>
<asp:TextBox id="output_Po" runat="server" Width="60px" Enabled="False" Visible="False"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">
<asp:Button id="cmdRozlicz" onclick="cmdRozlicz_Click" runat="server" Font-Bold="True" Text="Rozlicz spłatę kredytu" Font-Size="X-Small"></asp:Button>
</p>
</td>
<td colspan="2">
<div align="center">
<asp:Button id="cmdResetuj" onclick="cmdResetuj_Click" runat="server" Font-Bold="True" Text="RESETUJ" Font-Size="X-Small"></asp:Button>
</div>
</td>
</tr>
<tr>
<td colspan="2">
</td>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">
<em><font size="1">Wysokość raty kapitałowej Rk</font></em></p>
</td>
<td colspan="2">
<asp:TextBox id="output_R" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="4">
<p align="center">
<strong><font size="2">Tabela rozliczenia spłaty kredytu w ratach malejących M</font></strong>
</p>
</td>
</tr>
<tr>
<td colspan="4">
<p align="center">
<asp:GridView ID="output_TSK" runat="server"
OnPageIndexChanging = "output_TSK_PageIndexChanging" AllowPaging="True" PageSize="5" AutoGenerateColumns="False" HorizontalAlign="Center">
<Columns>
<asp:BoundField DataField="Numer raty" DataFormatString="{0:d3}" HeaderText="Numer raty" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="Stan spłaty kredytu na początku okresu" DataFormatString="{0:F2}"
HeaderText="Stan spłaty kredytu na początku okresu" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="Rata odsetkowa Ro" DataFormatString="{0:F2}"
HeaderText="Rata odsetkowa Ro" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="Rata laczna R" DataFormatString="{0:F2}"
HeaderText="Rata laczna R" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="Stan spłaty kredytu po wplaceniu raty R" DataFormatString="{0:F2}"
HeaderText="Stan spłaty kredytu po wpłaceniu raty R" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
</Columns>
</asp:GridView>
</p>
</td>
</tr>
</tbody>
</table>
<!-- Insert content here -->
</form>
<p>
</p>
</body>
</html>
Jak zmienić go na wersję dla malejących danych?
