Click here to Skip to main content
15,888,816 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How do I hide some operation contract methods for particular user in WCF? Pin
F-ES Sitecore4-Jun-15 21:25
professionalF-ES Sitecore4-Jun-15 21:25 
GeneralOff topic Pin
OriginalGriff5-Jun-15 0:53
mveOriginalGriff5-Jun-15 0:53 
GeneralRe: Off topic Pin
F-ES Sitecore5-Jun-15 1:02
professionalF-ES Sitecore5-Jun-15 1:02 
GeneralRe: Off topic Pin
OriginalGriff5-Jun-15 1:10
mveOriginalGriff5-Jun-15 1:10 
GeneralRe: Off topic Pin
F-ES Sitecore5-Jun-15 1:21
professionalF-ES Sitecore5-Jun-15 1:21 
GeneralRe: Off topic Pin
Richard MacCutchan5-Jun-15 2:34
mveRichard MacCutchan5-Jun-15 2:34 
GeneralRe: Off topic Pin
Richard MacCutchan5-Jun-15 2:34
mveRichard MacCutchan5-Jun-15 2:34 
QuestionGrid view total Pin
Mahima Singh4-Jun-15 0:51
professionalMahima Singh4-Jun-15 0:51 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class plrsmkt_calculation : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
            }

    int totalrs = 0;
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            totalrs += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "rs"));
        }
        else if (e.Row.RowType == DataControlRowType.Footer)
        {
            e.Row.Cells[1].Text = "Total";
            e.Row.Cells[1].Font.Bold = true;

            e.Row.Cells[2].Text = totalrs.ToString();
            e.Row.Cells[2].Font.Bold = true;

            e.Row.Cells[3].Text = totalrs.ToString();
            e.Row.Cells[3].Font.Bold = true;

        }


    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {

    }
}


The above coding display me Total of a column with display of all rows as per database

but now i want to display total of same column(without rows) on other page of my web site. Can u help me

modified 4-Jun-15 13:48pm.

SuggestionRe: Grid view total Pin
Richard MacCutchan4-Jun-15 0:58
mveRichard MacCutchan4-Jun-15 0:58 
AnswerRe: Grid view total Pin
jkirkerx5-Jun-15 8:36
professionaljkirkerx5-Jun-15 8:36 
Questionthe usual annoying absurdity Pin
tiwal3-Jun-15 22:51
tiwal3-Jun-15 22:51 
AnswerRe: the usual annoying absurdity Pin
F-ES Sitecore3-Jun-15 23:51
professionalF-ES Sitecore3-Jun-15 23:51 
AnswerRe: the usual annoying absurdity Pin
Richard Deeming4-Jun-15 0:34
mveRichard Deeming4-Jun-15 0:34 
QuestionC# PDF Printing Pin
El Developer3-Jun-15 4:54
El Developer3-Jun-15 4:54 
AnswerRe: C# PDF Printing Pin
F-ES Sitecore3-Jun-15 5:01
professionalF-ES Sitecore3-Jun-15 5:01 
GeneralRe: C# PDF Printing Pin
El Developer3-Jun-15 5:09
El Developer3-Jun-15 5:09 
GeneralRe: C# PDF Printing Pin
F-ES Sitecore3-Jun-15 5:18
professionalF-ES Sitecore3-Jun-15 5:18 
AnswerRe: C# PDF Printing Pin
Richard MacCutchan3-Jun-15 5:20
mveRichard MacCutchan3-Jun-15 5:20 
QuestionExecuteNonQuery SQL injection error from concatanating C# client values into a hard coded SQL string making a call to a SQL server. Pin
Stephen Holdorf3-Jun-15 4:43
Stephen Holdorf3-Jun-15 4:43 
AnswerRe: ExecuteNonQuery SQL injection error from concatanating C# client values into a hard coded SQL string making a call to a SQL server. Pin
Richard Deeming3-Jun-15 4:52
mveRichard Deeming3-Jun-15 4:52 
QuestionAzure storage-blob for basic asp.net MVC5 dynamic Website? Pin
apoxe3-Jun-15 4:37
apoxe3-Jun-15 4:37 
QuestionRunning MP4 video from the web. app. Pin
esb772-Jun-15 3:26
esb772-Jun-15 3:26 
GeneralRe: Running MP4 video from the web. app. Pin
Richard MacCutchan2-Jun-15 5:23
mveRichard MacCutchan2-Jun-15 5:23 
AnswerRe: Running MP4 video from the web. app. Pin
F-ES Sitecore2-Jun-15 5:31
professionalF-ES Sitecore2-Jun-15 5:31 
QuestionA bit lost here... Pin
Kornfeld Eliyahu Peter2-Jun-15 1:22
professionalKornfeld Eliyahu Peter2-Jun-15 1:22 

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.