473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

appendtext not a member of system.web.ui.webcontrols.textbox

geo039
47
I have a mortage calculator in vb.net. I am trying to transferring it into asp.net. Most of everything works from cut and paste except appendtext. I am not sure what to use in place of the appendtext. This snip displays the monthly payments, interest, balance etc

Expand|Select|Wrap|Line Numbers
  1. For intMonth = 1 To intNumberPayments
  2.  
  3.             'calculate interest paid and balance   
  4.             Dim dblInterestPaid As Double
  5.             Dim dblBalance As Double
  6.  
  7.             dblInterestPaid = dblLoanAmount * dblIntRate
  8.             dblBalance = dblLoanAmount + dblInterestPaid - dblPaymentAmt
  9.  
  10.             'display calculated details in currency format
  11.             txtSchedule.appendtext(intMonth & ControlChars.Tab & String.Format("{0:C}", dblLoanAmount) _
  12.             & ControlChars.Tab & String.Format("{0:C}", dblInterestPaid) & ControlChars.Tab & _
  13.             String.Format("{0:C}", dblBalance) & vbCrLf)
  14.  
  15.  
  16.             dblLoanAmount = dblBalance ' update principal
  17.  
  18.         Next
Thanks for your assistance
Apr 30 '07 #1
3 2617
kenobewan
4,871 Expert 4TB
Could you explain what you mean by using asp.net instead of vb.net?
May 1 '07 #2
geo039
47
I had done a mortgage calculator in another class i took in vb.net. I am now trying to learn asp.net and the requirements call for a similar calculator done in asp.net. I have most of the functionality working by using most of the same code, however the appendtext does not work in asp.net it gives me
appendtext not a member of system.web.ui.webcontrols.textbox

in the line i use to display the list of payments. I just can't not find a lead on how i can accomplish the same thing in asp.net in replacement of appendtext since that doesn't appear to be something i can use in asp.net
May 1 '07 #3
Frinavale
9,735 Expert Mod 8TB
I had done a mortgage calculator in another class i took in vb.net. I am now trying to learn asp.net and the requirements call for a similar calculator done in asp.net. I have most of the functionality working by using most of the same code, however the appendtext does not work in asp.net it gives me
appendtext not a member of system.web.ui.webcontrols.textbox

in the line i use to display the list of payments. I just can't not find a lead on how i can accomplish the same thing in asp.net in replacement of appendtext since that doesn't appear to be something i can use in asp.net
Appendtext is not a function that textboxes support.
Could you use this instead?
Expand|Select|Wrap|Line Numbers
  1. txt_example.text = txt_example.text + "stuff to append"
  2.  
Cheers

-Frinny
May 1 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: akadiri4 | last post by:
I am trying to bind a textbox to a dataset using VB.Net but it doesn't seem to work Here is the code: DS = New DataSet DA = New SqlDataAdapter(StrSQL, StrConn) DA.Fill(DS, "StrSQL")...
0
by: muralidharan | last post by:
WebForm1.aspx Code: <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <ComponentArt:TreeView id="TreeView1" Height="520"...
0
by: Harry F. Harrison | last post by:
Here's the situation...Context - Using an Inherited WebControl object as a base for server custom controls. In a web custom control, whenever I create a child control and add it to the Controls...
3
by: Luis Esteban Valencia | last post by:
A page let of work for me I commented almost all lines but nothing the code is this
3
by: Patrick.O.Ige | last post by:
I'm loading an Array below but getting the error "Object reference not set to an instance saying 'ItemNumber = CType(Args.Item.FindControl("ItemNumber"), TextBox).Text' is the error line. I DON'T...
7
by: Andrew | last post by:
VB .NET 2003, WinXP Pro: Adding text to a text box with the TextBox.AppendText method limits the amount of text in the textbox to 32K. I have a short program that uses the GetFiles function of...
2
by: dc15 | last post by:
I am trying to write an application, taking input from various text boxes and appending it to a text file.... it was working, then I had to create various sub procedures to reflect limits set in...
1
by: thithi | last post by:
Please help me " System.Data.SqlClient.SqlException: Prepared statement '(@Name varchar(100),@Describes varchar(100),@Money char(10))Upda' expects parameter @Describes, which was not supplied. at...
1
by: differentsri | last post by:
THIS IS AN ASP.NET 1.1 APPLICATION IAM TRYING TO UPDATE THE FIELD BUT I AM NOT ABLE TO UPDATE IT? CAN U TELL THE REASON ? IT IS GIVING THE FOLLOWING ERROR BELOW I HAVE ALSO GIVEN THE CODE OF...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.