Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 15th, 2003, 11:03 AM
ducani
Guest
ASP Free Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
ASP.NET Programming with Microsoft’s ASP.NET Web Matrix

ASP.NET Programming with Microsoft’s ASP.NET Web Matrix

Like the year 2000, the introduction of Microsoft’s .NET initiative was met by many with mixed emotions: skepticism, excitement, and a fear of the end of civilization as we know it. Alright, so I can’t honestly say that I remember seeing anyone buying survivalist handbooks due to the introduction of .NET. Still, its introduction was a pretty monumental event, even outside of the Microsoft development community. Read the full article here.

Discuss this article in this thread.

Reply With Quote
  #2  
Old September 19th, 2003, 01:20 AM
EAServe EAServe is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 EAServe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Interesting....but I never really cared for Web Matrix.

Reply With Quote
  #3  
Old July 14th, 2004, 05:12 PM
a_soong a_soong is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 a_soong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Silly Newbie question

I followed the tutorial but for some reason, I can't get the _Click event to populate the results label. I can't even verify that the event even fires. Would someone please tell me where I went awry?

TIA,
ASoong

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
Response.Write("<B>How much would you have to pay for this beautiful car?</B>")
End Sub
Sub performCalc_Click(sender As Object, e As EventArgs)
'Specify Constant values
Const INTEREST_CALCS_PER_YEAR as Integer = 12
Const PAYMENTS_PER_YEAR as Integer = 12
'Create variables to hold the values entered by the user
Dim P as Double = autoLoanAmount.Text
Dim r as Double = rate.Text / 100
Dim t as Double = autoLoanLength.Text
Dim ratePerPeriod as Double
ratePerPeriod = r/INTEREST_CALCS_PER_YEAR
Dim payPeriods as Integer
payPeriods = t * PAYMENTS_PER_YEAR
Dim annualRate as Double
annualRate = Math.Exp(INTEREST_CALCS_PER_YEAR * Math.Log(1+ratePerPeriod)) - 1
Dim intPerPayment as Double
intPerPayment = (Math.Exp(Math.Log(annualRate+1)/payPeriods) - 1) * payPeriods
'Now, compute the total cost of the loadn
Dim intPerMonth as Double = intPerPayment / PAYMENTS_PER_YEAR
Dim costPerMonth as Double
costPerMonth = P * intPerMonth/(1-Math.Pow(intPerMonth+1,-payPeriods))
'Now display the results in the label Web Control
results.Text = "Your mortgage payment per month is $" & costPerMonth
End Sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<img src="mast_logo.gif" />
<p>
</p>
<p>
Value of car:
<asp:TextBox id="autoLoanAmount" runat="server" Width="129px"></asp:TextBox>
</p>
<p>
Interest Rate:
<asp:TextBox id="rate" runat="server"></asp:TextBox>
</p>
<p>
Auto Loan Length:
<asp:TextBox id="autoLoanLength" runat="server"></asp:TextBox>
</p>
<p>
<asp:Button id="performCalc" runat="server" Text="Figure out Your Monthly Payments"></asp:Button>
</p>
<p>
<asp:Label id="results" runat="server" width="272px" forecolor="Black" font-bold="True" tooltip="Hello World!"></asp:Label>
</p>
<p>
</p>
<p>
</p>
</form>
</body>
</html>

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherDevelopment Articles > ASP.NET Programming with Microsoft’s ASP.NET Web Matrix


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway