15,885,051 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Deepthi Aravind (Top 25 by date)
Deepthi Aravind
6-Jul-11 7:33am
View
Sorry...pls check the solution now...
Deepthi Aravind
4-Jul-11 4:16am
View
my 5...
Deepthi Aravind
7-Jun-11 3:40am
View
Please post the error .which occured in this code..
Deepthi Aravind
7-Jun-11 2:46am
View
You want t o bind data coming from datatable to grid view???
Deepthi Aravind
6-Jun-11 6:04am
View
please clarify your question..
Deepthi Aravind
6-Jun-11 0:50am
View
I tried it..bt its not wrking..
Deepthi Aravind
3-Jun-11 5:33am
View
yes...button2 is the id of button..
Deepthi Aravind
3-Jun-11 3:36am
View
Wht's the pbm?
Deepthi Aravind
3-Jun-11 3:20am
View
Nidish..
Please read the question..I need to set the textbox properties( required or not and cssclass) based on the selected value of dropdown
Deepthi Aravind
2-Jun-11 8:29am
View
I think you dont understand my requirement..
please read the question carefully...
Deepthi Aravind
2-Jun-11 2:11am
View
I solved this issue using javascript....
Deepthi Aravind
2-Jun-11 1:41am
View
Thanks for your reply..I am using 3.5...
Deepthi Aravind
1-Jun-11 6:07am
View
This is my code
<pre>
Decimal Interest = 0;
EMICalculatorList ECL = new EMICalculatorList();
ProjectXBL.Config.EMICalculator EC;
int month = ddlMonth.SelectedValue.ToNonNullInt32() - 1;
Decimal Intr = 0;
Decimal Mth = txtPrinciple.Text.ToNonNullDecimal() / txtLoanDurationInMonths.Text.ToNonNullDecimal();
Decimal principalAmt = txtPrinciple.Text.ToNonNullDecimal();
Decimal ROI = txtAnnualInterestRate.Text.ToNonNullDecimal();
Decimal months = txtLoanDurationInMonths.Text.ToNonNullDecimal();
Decimal F = 1200;
for (int i = 0; i < txtLoanDurationInMonths.Text.ToNonNullInt32(); i++)
{
Intr = Intr + ((principalAmt * ROI) / F);
principalAmt = principalAmt - Mth;
}
Decimal Avg = Intr.ToNonNullDecimal() / txtLoanDurationInMonths.Text.ToNonNullDecimal();
Decimal MonthlyPayment = ((txtPrinciple.Text.ToNonNullDecimal() / txtLoanDurationInMonths.Text.ToNonNullDecimal()) + Avg).ToNonNullDecimal();
lblMonthlypaymentsText.Text = string.Empty;
lblMonthlypaymentsText.Text = Math.Round(MonthlyPayment, 2).ToString();
lblAnnulLoanPaymentsText.Text = string.Empty;
lblAnnulLoanPaymentsText.Text = Math.Round((MonthlyPayment * 12), 2).ToString();
Decimal Ending = 0;
Decimal Ints = 0;
Decimal Prnc = 0;
Decimal CumPrinc = 0;
Decimal CumIntr = 0;
Decimal principal = txtPrinciple.Text.ToNonNullDecimal();
for (int i = 0; i < txtLoanDurationInMonths.Text.ToNonNullInt32(); i++)
{
EC = new ProjectXBL.Config.EMICalculator();
//No,Month And Year
EC.No = i + 1;
if (month == 0)
{
EC.Year = txtYear.Text;
}
if (month == 12)
{
month = 0;
EC.Year = (txtYear.Text.ToNonNullInt32() + 1).ToString();
}
EC.Month = ddlMonth.Items[month].Text;
month++;
//
EC.Payment = MonthlyPayment;
Decimal monthly = principal / months;//Monthly payable without interest
EC.Interest = (principal * ROI) / 1200;
Ints = EC.Interest;
principal = principal - monthly;
Interest = Interest + EC.Interest;
EC.Principal = MonthlyPayment - EC.Interest;
Prnc = EC.Principal;
if (i == 0)
{
EC.BeginningBalance = txtPrinciple.Text.ToNonNullDecimal();
EC.CumulativePrinciple = EC.Principal;
EC.CumulativeInterest = EC.Interest;
}
else
{
EC.BeginningBalance = Ending;
EC.CumulativePrinciple = CumPrinc + Prnc;
EC.CumulativeInterest = CumIntr + Intr;
}
EC.Ending = EC.BeginningBalance - EC.Principal;
Ending = EC.Ending;
CumPrinc = EC.CumulativePrinciple;
CumIntr = EC.CumulativeInterest;
ECL.Add(EC);
}
lstEMI.DataSource = ECL;
lstEMI.DataBind();
</pre>
Deepthi Aravind
31-May-11 2:40am
View
function TextBoxFocus()
{
$("[id$=_txtName_txt]").focus();
}
please try this script..
Deepthi Aravind
27-May-11 3:51am
View
please clarify your question
Deepthi Aravind
26-May-11 7:32am
View
My 5...
Good solution...
Deepthi Aravind
26-May-11 4:21am
View
please post your source
Deepthi Aravind
25-May-11 7:43am
View
pls accept this solution if its works fine...
Deepthi Aravind
23-May-11 7:12am
View
sorry..its my mistake..
Deepthi Aravind
23-May-11 7:01am
View
pls write this line after binding the drop down list...
Deepthi Aravind
19-May-11 7:39am
View
Then Wht abt query string????
Deepthi Aravind
27-Apr-11 7:44am
View
Hi Anvas,
Finally i found it. Its wrkng fine..
Thank u very much ...
My 5 for u...
Deepthi Aravind
22-Apr-11 6:26am
View
ya..
I hv added this line to my buttin click event
string messageFromDatabase = "Are you sure you want to do this?";
StringBuilder javaScript = new StringBuilder();
javaScript.Append("<script type=\"text/javascript\">\n");
javaScript.Append("function doConfirm(){\n");
javaScript.Append("\tif (confirm('");
javascript.Append(messageFromDatabase);
javaScript.Append("'){\n");
javaScript.Append("\t\t// code when the user clicks OK\n");
javascript.Append("\t} else {\n");
javaScript.Append("\t\t// code when the user clicks cancel\n");
javascript.Append("\t}\n");
javaScript.Append("}\n");
javaScript.Append("</script>\n");
and added the clientscript also..
Deepthi Aravind
22-Apr-11 5:32am
View
in this solution y can i get the result,ie,Ok or cancel
Deepthi Aravind
22-Apr-11 5:30am
View
hi Eduard.
I cant get the solution...
My actual requirement is,
In my page, On clicking of search button i need to show this confirmation message.This message is from database.
After that i want to know user clicked is yes or no.
if user clicked yes,i want to retrieve list of items from database
Show More