Click here to Skip to main content
14,874,239 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Rant[REPOST] RDLC report header row visiblility issue .. Pin
Richard Deeming30-Sep-16 2:22
mveRichard Deeming30-Sep-16 2:22 
QuestionGetting a HARD URL for Your own Action Pin
TheOnlyRealTodd29-Sep-16 20:49
professionalTheOnlyRealTodd29-Sep-16 20:49 
AnswerRe: Getting a HARD URL for Your own Action Pin
F-ES Sitecore30-Sep-16 1:12
mveF-ES Sitecore30-Sep-16 1:12 
QuestionSum all values in datalist control Pin
Otekpo Emmanuel27-Sep-16 11:49
MemberOtekpo Emmanuel27-Sep-16 11:49 
QuestionRe: Sum all values in datalist control Pin
ZurdoDev29-Sep-16 5:42
professionalZurdoDev29-Sep-16 5:42 
AnswerRe: Sum all values in datalist control Pin
Otekpo Emmanuel29-Sep-16 10:37
MemberOtekpo Emmanuel29-Sep-16 10:37 
GeneralRe: Sum all values in datalist control Pin
ZurdoDev29-Sep-16 12:50
professionalZurdoDev29-Sep-16 12:50 
AnswerRe: Sum all values in datalist control Pin
Vincent Maverick Durano7-Oct-16 8:23
professionalVincent Maverick Durano7-Oct-16 8:23 
Handle ItemDataBound event to do the calculation. Here's a quick example for your reference:

int total = 0;
protected void DataList1_ItemDataBound(Object sender, DataListItemEventArgs e)
{
      if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem){
            //access the Amount values here
            //for example, if you are displaying it in a Label control
            Label lbAmount = (Label) e.Item.FindControl("YourLabelControlID");
            total += Convert.ToInt32(lbAmount.Text);
      }
      else if (e.Item.ItemType == ListItemType.Footer){
                //Find the total label in the Footer
                Label lblTotal = (Label)e.Item.FindControl("YourLabelControlID");
                lblTotal.Text = total.ToString();
      }  
}


Note: If your Amount value contains a dollar symbol, then you may need to trim that value first before doing a Convert.
Questionchart from datatable in asp.net c# Pin
26s112424-Sep-16 20:53
Member26s112424-Sep-16 20:53 
AnswerRe: chart from datatable in asp.net c# Pin
Richard MacCutchan25-Sep-16 1:24
mveRichard MacCutchan25-Sep-16 1:24 
GeneralRe: chart from datatable in asp.net c# Pin
26s112425-Sep-16 18:36
Member26s112425-Sep-16 18:36 
QuestionRe: chart from datatable in asp.net c# Pin
Richard MacCutchan25-Sep-16 21:37
mveRichard MacCutchan25-Sep-16 21:37 
AnswerRe: chart from datatable in asp.net c# Pin
26s112425-Sep-16 23:32
Member26s112425-Sep-16 23:32 
GeneralRe: chart from datatable in asp.net c# Pin
Richard MacCutchan26-Sep-16 0:13
mveRichard MacCutchan26-Sep-16 0:13 
AnswerRe: chart from datatable in asp.net c# Pin
26s112426-Sep-16 0:53
Member26s112426-Sep-16 0:53 
GeneralRe: chart from datatable in asp.net c# Pin
Vincent Maverick Durano27-Sep-16 5:43
professionalVincent Maverick Durano27-Sep-16 5:43 
AnswerRe: chart from datatable in asp.net c# Pin
User 418025425-Sep-16 3:54
MemberUser 418025425-Sep-16 3:54 
QuestionWhat is sub domain and its usage Pin
Tridip Bhattacharjee23-Sep-16 2:34
professionalTridip Bhattacharjee23-Sep-16 2:34 
AnswerRe: What is sub domain and its usage Pin
Richard MacCutchan23-Sep-16 4:12
mveRichard MacCutchan23-Sep-16 4:12 
GeneralRe: What is sub domain and its usage Pin
John C Rayan29-Sep-16 1:27
professionalJohn C Rayan29-Sep-16 1:27 
GeneralRe: What is sub domain and its usage Pin
Tridip Bhattacharjee29-Sep-16 4:56
professionalTridip Bhattacharjee29-Sep-16 4:56 
GeneralRe: What is sub domain and its usage Pin
Rajesh Shirsagar30-Sep-16 0:29
MemberRajesh Shirsagar30-Sep-16 0:29 
QuestionCan't get MP4 video to play on IIS 7.5 Pin
David Mujica21-Sep-16 8:29
MemberDavid Mujica21-Sep-16 8:29 
AnswerRe: Can't get MP4 video to play on IIS 7.5 Pin
Richard Deeming21-Sep-16 8:58
mveRichard Deeming21-Sep-16 8:58 
GeneralRe: Can't get MP4 video to play on IIS 7.5 Pin
David Mujica22-Sep-16 5:17
MemberDavid Mujica22-Sep-16 5:17 

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.