Click here to Skip to main content
14,742,134 members
Home » Discussions » ASP.NET
   

ASP.NET

 
GeneralRe: HttpCookie vs Cookie, and multi-value HttpCookie Pin
jkirkerx5-Apr-18 13:24
professionaljkirkerx5-Apr-18 13:24 
QuestionNeed to loop through Kendo grid to get the selected value of all the Dropdowns in the Grid Pin
indian14320-Mar-18 15:09
Memberindian14320-Mar-18 15:09 
AnswerRe: Need to loop through Kendo grid to get the selected value of all the Dropdowns in the Grid Pin
Vincent Maverick Durano20-Mar-18 18:40
professionalVincent Maverick Durano20-Mar-18 18:40 
GeneralRe: Need to loop through Kendo grid to get the selected value of all the Dropdowns in the Grid Pin
indian14320-Mar-18 21:44
Memberindian14320-Mar-18 21:44 
GeneralRe: Need to loop through Kendo grid to get the selected value of all the Dropdowns in the Grid Pin
Richard Deeming21-Mar-18 10:24
mveRichard Deeming21-Mar-18 10:24 
GeneralRe: Need to loop through Kendo grid to get the selected value of all the Dropdowns in the Grid Pin
indian14321-Mar-18 11:07
Memberindian14321-Mar-18 11:07 
GeneralRe: Need to loop through Kendo grid to get the selected value of all the Dropdowns in the Grid Pin
indian14321-Mar-18 8:29
Memberindian14321-Mar-18 8:29 
Questionhow to find a running total in a gridView templateField Pin
Member 933127820-Mar-18 13:40
MemberMember 933127820-Mar-18 13:40 
I have a gridview with a score column (4).
I am trying to get the total score.
Thanks anyone..please

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID,EP,supEmail" DataSourceID="SQLDuties" OnPreRender="GridView1_PreRender" OnRowDataBound="GridView1_RowDataBound">
                        <Columns>
                            <asp:CommandField ShowEditButton="True" />
                            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" Visible="False" />
                            <asp:TemplateField HeaderText="Duties" SortExpression="Duties">
                                <EditItemTemplate>
                                    
                                    <asp:Label ID="EditDuties" runat="server" Text='<%# Bind("Duties") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Duties") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Agreed" SortExpression="Agreed">
                                <EditItemTemplate>
                                    
                                    <asp:Label ID="EditTargets" runat="server" Text='<%# Bind("Agreed") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("Agreed") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Score (1-5)" SortExpression="Score">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtScore" runat="server" Text='<%# Bind("Score") %>' TextMode="Number"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFVScore" runat="server" ErrorMessage="Score Require" ControlToValidate="txtScore" ForeColor="red"></asp:RequiredFieldValidator>
                                    <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="1 to 5" MaximumValue="5" MinimumValue="1" ControlToValidate="txtScore" ForeColor="red"></asp:RangeValidator>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("Score") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Comment" HeaderText="Comment" SortExpression="Comment" />
                            <asp:BoundField DataField="EP" HeaderText="EP" SortExpression="EP" Visible="False" />
                            <asp:BoundField DataField="supEmail" HeaderText="supEmail" SortExpression="supEmail" Visible="False" />
                        </Columns>
                        <EmptyDataTemplate>
                            <br />
                              </EmptyDataTemplate>
                    </asp:GridView>


protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
       {
           int total = 0;
           if (e.Row.RowType == DataControlRowType.DataRow)
           {
               total = total +  Convert.ToInt32( e.Row.Cells[4].Text.ToString());
           }
           Response.Write(total.ToString());

       }

AnswerRe: how to find a running total in a gridView templateField Pin
Vincent Maverick Durano20-Mar-18 18:35
professionalVincent Maverick Durano20-Mar-18 18:35 
QuestionPage.RegisterStartupScript Method Pin
A_Griffin16-Mar-18 3:23
MemberA_Griffin16-Mar-18 3:23 
AnswerRe: Page.RegisterStartupScript Method Pin
Richard Deeming16-Mar-18 3:46
mveRichard Deeming16-Mar-18 3:46 
GeneralRe: Page.RegisterStartupScript Method Pin
A_Griffin16-Mar-18 3:54
MemberA_Griffin16-Mar-18 3:54 
AnswerRe: Page.RegisterStartupScript Method Pin
F-ES Sitecore19-Mar-18 1:24
mveF-ES Sitecore19-Mar-18 1:24 
QuestionSCHEDULER IN VISUAL STUDIOS Pin
Faisal716-Mar-18 2:26
MemberFaisal716-Mar-18 2:26 
AnswerRe: SCHEDULER IN VISUAL STUDIOS Pin
Vincent Maverick Durano20-Mar-18 18:57
professionalVincent Maverick Durano20-Mar-18 18:57 
GeneralRe: SCHEDULER IN VISUAL STUDIOS Pin
Faisal721-Mar-18 4:00
MemberFaisal721-Mar-18 4:00 
GeneralRe: SCHEDULER IN VISUAL STUDIOS Pin
Charlie brown 7113-Apr-18 1:35
MemberCharlie brown 7113-Apr-18 1:35 
QuestionDomain driven design pattern and onion architecture is same or different Pin
Mou_kol13-Mar-18 23:05
MemberMou_kol13-Mar-18 23:05 
AnswerRe: Domain driven design pattern and onion architecture is same or different Pin
Bohdan Stupak20-Mar-18 5:48
professionalBohdan Stupak20-Mar-18 5:48 
AnswerRe: Domain driven design pattern and onion architecture is same or different Pin
anmolgoranga22-Mar-18 2:41
Memberanmolgoranga22-Mar-18 2:41 
QuestionDifference between Open ID and OAuth Pin
Mou_kol13-Mar-18 5:14
MemberMou_kol13-Mar-18 5:14 
AnswerRe: Difference between Open ID and OAuth Pin
Vincent Maverick Durano18-Mar-18 22:39
professionalVincent Maverick Durano18-Mar-18 22:39 
GeneralRe: Difference between Open ID and OAuth Pin
Mou_kol20-Mar-18 0:20
MemberMou_kol20-Mar-18 0:20 
GeneralRe: Difference between Open ID and OAuth Pin
Vincent Maverick Durano20-Mar-18 18:17
professionalVincent Maverick Durano20-Mar-18 18:17 
QuestionArchitecture similar to asp.net boilerplate Pin
Charlie brown 71112-Mar-18 21:47
MemberCharlie brown 71112-Mar-18 21:47 

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.