Click here to Skip to main content
15,910,009 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: NOOB Question: using LIKE in SelectParameter Pin
Figmo25-Oct-10 7:12
Figmo25-Oct-10 7:12 
GeneralRe: NOOB Question: using LIKE in SelectParameter Pin
Electron Shepherd5-Oct-10 8:11
Electron Shepherd5-Oct-10 8:11 
QuestionHow to present the link more elegant(ASP.Net,C#.Net) [modified] Pin
Jayadheer Reddy5-Oct-10 3:40
Jayadheer Reddy5-Oct-10 3:40 
AnswerRe: How to present the link more elegant(ASP.Net,C#.Net) Pin
Brij5-Oct-10 4:56
mentorBrij5-Oct-10 4:56 
QuestionGridview with rows calcul Pin
amina895-Oct-10 3:11
amina895-Oct-10 3:11 
AnswerRe: Gridview with rows calcul Pin
NeverHeardOfMe5-Oct-10 3:37
NeverHeardOfMe5-Oct-10 3:37 
AnswerRe: Gridview with rows calcul Pin
Brij5-Oct-10 4:06
mentorBrij5-Oct-10 4:06 
QuestionRe: Gridview with rows calcul Pin
amina895-Oct-10 23:41
amina895-Oct-10 23:41 
Thanks all ;

I still have the same error.


I forgot to say that the gridview is in edit mode for columns -exam_mark1 ,-exam_mark2 and I do not know if this is the cause.

  <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"<br />
            BackColor="White" BorderColor="#CCCCCC" BorderWidth="1px" CellPadding="4" CssClass="th"<br />
            DataKeyNames="NUM_INSCRIPTION" Width ="60%"  Height="9%" PagerStyle-CssClass="note" Style="position: absolute; left: 126px; top: 159px;"<br />
           ><br />
            <FooterStyle BackColor="White" ForeColor="#000066" /><br />
            <RowStyle ForeColor="#000066" /><br />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /><br />
            <PagerStyle BackColor="White" CssClass="note" ForeColor="#000066" HorizontalAlign="Left" /><br />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /><br />
           <br />
<br />
<br />
 <Columns><br />
                <asp:TemplateField HeaderText="IDStudent"><br />
                    <ItemStyle CssClass="td00" /><br />
                    <ItemTemplate><br />
                        <asp:Label ID="lblUserID1" runat="server" Text='<%# Eval("NUM_INSCRIPTION") %>'></asp:Label><br />
                        <itemstyle cssclass="td00" /><br />
                    </ItemTemplate><br />
                </asp:TemplateField><br />
<br />
<br />
    <asp:TemplateField HeaderText="StudentName"><br />
                    <ItemStyle CssClass="td01" /><br />
                    <ItemTemplate><br />
                        <asp:Label ID="lblUserID2" runat="server" Text='<%# Eval("NOM_PRENOM_ETUDIANT_ARABE") %>'></asp:Label><br />
                    </ItemTemplate><br />
                </asp:TemplateField><br />
               <br />
<br />
<br />
 <asp:TemplateField HeaderText="mark1"><br />
                    <ItemTemplate><br />
                            <asp:Label ID="lblLastName1" runat="server" Text='<%# Eval("111") %>' Visible='<%# !(bool) IsInEditMode %>'></asp:Label><br />
                            <asp:TextBox ID="moyt1" runat="server" Text='<%# Eval("111") %>' Visible='<%# IsInEditMode %>'></asp:TextBox><br />
                    </ItemTemplate><br />
                </asp:TemplateField><br />
<br />
<br />
<br />
  <asp:TemplateField HeaderText="mark2"><br />
                     <ItemStyle CssClass="td02" /><br />
                    <ItemTemplate><br />
                        <asp:Label ID="lblLastName" runat="server" Text='<%# Eval("112") %>' Visible='<%# !(bool) IsInEditMode %>'></asp:Label><br />
                        <asp:TextBox ID="validt1" runat="server" Text='<%# Eval("112") %>' Visible='<%# IsInEditMode %>'></asp:TextBox><br />
                    </ItemTemplate><br />
                </asp:TemplateField> <br />
<br />
<br />
<br />
 <asp:TemplateField HeaderText="average"><br />
                    <ItemStyle CssClass="td01" /><br />
                    <ItemTemplate><br />
                        <asp:Label ID="lblUserID4" runat="server" Text='<%# Eval("NOTE_MODULE") %>'></asp:Label><br />
                    </ItemTemplate><br />
                </asp:TemplateField><br />
                <br />
                <br />
                </Columns><br />




when the teacher populated the gridview he clicks insert button to insert the marks in the database and then clicks on the button average whose code is the top one.
if I use sql to calculate the average. the sql query becomes long because the pivot.if I use RowDataBound I calculate the average row by row?
thanks
QuestionXML Problem Pin
InderK5-Oct-10 1:37
InderK5-Oct-10 1:37 
AnswerRe: XML Problem Pin
torken25-Oct-10 2:16
professionaltorken25-Oct-10 2:16 
AnswerCross post Pin
Not Active5-Oct-10 2:24
mentorNot Active5-Oct-10 2:24 
QuestionPrevent upload of renamed and Password protected file in asp.net C# Pin
Arokiamary5-Oct-10 1:27
Arokiamary5-Oct-10 1:27 
AnswerRe: Prevent upload of renamed and Password protected file in asp.net C# Pin
Not Active5-Oct-10 2:22
mentorNot Active5-Oct-10 2:22 
AnswerRe: Prevent upload of renamed and Password protected file in asp.net C# Pin
NeverHeardOfMe5-Oct-10 3:23
NeverHeardOfMe5-Oct-10 3:23 
Questionquery string question Pin
swjam4-Oct-10 23:28
swjam4-Oct-10 23:28 
AnswerRe: query string question Pin
Gamzun5-Oct-10 0:24
Gamzun5-Oct-10 0:24 
GeneralRe: query string question Pin
swjam5-Oct-10 0:59
swjam5-Oct-10 0:59 
GeneralRe: query string question Pin
Not Active5-Oct-10 1:18
mentorNot Active5-Oct-10 1:18 
GeneralRe: query string question Pin
swjam5-Oct-10 1:46
swjam5-Oct-10 1:46 
GeneralRe: query string question Pin
Not Active5-Oct-10 2:20
mentorNot Active5-Oct-10 2:20 
QuestionCalling multiple Page Methods in parallel Pin
Raheem MA4-Oct-10 22:54
Raheem MA4-Oct-10 22:54 
QuestionConsume the Siebel On Demand web service in .Net console application. Pin
Anurag_sriv4-Oct-10 21:33
Anurag_sriv4-Oct-10 21:33 
AnswerRe: Consume the Siebel On Demand web service in .Net console application. Pin
Anurag_sriv7-Oct-10 23:37
Anurag_sriv7-Oct-10 23:37 
QuestionRequest.Cookies.Add Vs Response.Cookies.Add Pin
Gamzun4-Oct-10 21:16
Gamzun4-Oct-10 21:16 
Questionhtml table in mobile web Pin
behzadcp4-Oct-10 20:23
professionalbehzadcp4-Oct-10 20:23 

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.