Click here to Skip to main content
15,879,239 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Repeater Template Desinging Pin
Member 1337195126-Sep-17 9:28
Member 1337195126-Sep-17 9:28 
GeneralRe: Repeater Template Desinging Pin
A_Griffin26-Sep-17 9:33
A_Griffin26-Sep-17 9:33 
GeneralRe: Repeater Template Desinging Pin
Member 1337195126-Sep-17 9:36
Member 1337195126-Sep-17 9:36 
GeneralRe: Repeater Template Desinging Pin
A_Griffin26-Sep-17 9:42
A_Griffin26-Sep-17 9:42 
GeneralRe: Repeater Template Desinging Pin
Member 1337195126-Sep-17 9:44
Member 1337195126-Sep-17 9:44 
AnswerRe: Repeater Template Desinging Pin
Rollin Shultz28-Sep-17 2:08
Rollin Shultz28-Sep-17 2:08 
QuestionHow can I properly use the Trace.Write() method inside of my for loop to print month and future values? Pin
Dorakta21-Sep-17 12:36
Dorakta21-Sep-17 12:36 
AnswerRe: How can I properly use the Trace.Write() method inside of my for loop to print month and future values? Pin
Richard Deeming22-Sep-17 2:11
mveRichard Deeming22-Sep-17 2:11 
Dorakta wrote:
... in order for a user to see ...

Trace output is intended to help the developer when building the site. It should never be shown to the end user.

If you want to show something to the user, then you need to add it to the page somewhere.

Markup:
<dl>
    <asp:placeholder id="futureValueList" runat="server" />
</dl>
Code:
C#
for (int i = 0; i < months; i++)
{
    futureValue = (futureValue + monthlyInvestment) * (1 + monthlyInterestRate);
    
    // Developer-only output:
    Trace.Write(string.Format("{0}: {1:C}", i, futureValue));
    
    // User output:
    var dt = new HtmlGenericControl("dt");
    dt.InnerText = string.Format("{0} months", i);
    futureValueList.Controls.Add(dt);
    
    var dd = new HtmlGenericControl("dd");
    dd.InnerText = futureValue.ToString("C");
    futureValueList.Controls.Add(dd);
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionSystem.ServiceModel.FaultException`1 occurred Pin
jkirkerx21-Sep-17 12:05
professionaljkirkerx21-Sep-17 12:05 
AnswerRe: System.ServiceModel.FaultException`1 occurred Pin
jkirkerx22-Sep-17 6:29
professionaljkirkerx22-Sep-17 6:29 
AnswerUPS Rate SOAP WSDL Errors in VS2017 Service Reference, An exception has been raised as a result of client data. Pin
jkirkerx22-Sep-17 11:07
professionaljkirkerx22-Sep-17 11:07 
QuestionRepeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex20-Sep-17 4:38
samflex20-Sep-17 4:38 
AnswerRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming20-Sep-17 10:15
mveRichard Deeming20-Sep-17 10:15 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex21-Sep-17 3:50
samflex21-Sep-17 3:50 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming21-Sep-17 5:12
mveRichard Deeming21-Sep-17 5:12 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex21-Sep-17 6:33
samflex21-Sep-17 6:33 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming21-Sep-17 6:39
mveRichard Deeming21-Sep-17 6:39 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex21-Sep-17 7:26
samflex21-Sep-17 7:26 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming21-Sep-17 7:32
mveRichard Deeming21-Sep-17 7:32 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex21-Sep-17 8:32
samflex21-Sep-17 8:32 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming21-Sep-17 8:55
mveRichard Deeming21-Sep-17 8:55 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex21-Sep-17 9:39
samflex21-Sep-17 9:39 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming21-Sep-17 9:47
mveRichard Deeming21-Sep-17 9:47 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex21-Sep-17 10:03
samflex21-Sep-17 10:03 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming22-Sep-17 1:52
mveRichard Deeming22-Sep-17 1:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.