Click here to Skip to main content
15,892,927 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Restarting Session,. Pin
Herman<T>.Instance3-Aug-10 0:22
Herman<T>.Instance3-Aug-10 0:22 
GeneralRe: Restarting Session,. Pin
Hema Bairavan3-Aug-10 1:50
Hema Bairavan3-Aug-10 1:50 
AnswerRe: Restarting Session,. Pin
T M Gray3-Aug-10 5:16
T M Gray3-Aug-10 5:16 
GeneralRe: Restarting Session,. Pin
Hema Bairavan3-Aug-10 6:40
Hema Bairavan3-Aug-10 6:40 
AnswerRe: Restarting Session,. Pin
Rajendra Prasad Panchati18-Aug-10 1:39
Rajendra Prasad Panchati18-Aug-10 1:39 
Questiondiplaying problem in repeaters [modified] Pin
Dhyanga2-Aug-10 9:02
Dhyanga2-Aug-10 9:02 
AnswerRe: diplaying problem in repeaters Pin
T M Gray2-Aug-10 10:46
T M Gray2-Aug-10 10:46 
GeneralRe: diplaying problem in repeaters Pin
Dhyanga3-Aug-10 2:56
Dhyanga3-Aug-10 2:56 
rep1 is the parent repeater and inside this, there are two child repeaters rep2 and rep3. i used rep2 to show the information of the items along with its amount. I used rep3 to show the total amount of the items.

code is still look like this:
<asp:Repeater runat="server" id="rep1">
    <HeaderTemplate><b>Books</b><br /></HeaderTemplate>
    <ItemTemplate>
       <b><%# DataBinder.Eval(Container.DataItem, "Mathematics") %>
        <asp:Repeater id="rep2" runat="server">
        <HeaderTemplate>
        <asp:Table ID="tblLists" runat="server">
        <asp:TableRow>
        <asp:TableCell>BookName</asp:TableCell>
        <asp:TableCell>Amount</asp:TableCell>
        </asp:TableRow>
           </asp:Table>
        </HeaderTemplate>
        <ItemTemplate>
        <asp:Table ID="tblListItems" runat="server">
        <asp:TableRow>
        <asp:TableCell><%# DataBinder.Eval(Container.DataItem, "BookName")%></asp:TableCell>
        <asp:TableCell>$<%# DataBinder.Eval(Container.DataItem,"Amount")%></asp:TableCell> 
        </asp:TableRow>
           </asp:Table>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Repeater ID="rep3" runat="server">
            <ItemTemplate>
             <asp:Table ID="tblTotal" runat="server">
        <asp:TableRow>
        <asp:TableCell></asp:TableCell>
        <asp:TableCell></asp:TableCell>
        <asp:TableCell></asp:TableCell>
        <asp:TableCell>$<%# DataBinder.Eval(Container.DataItem, "TotalAmount") %></asp:TableCell>
        </asp:TableRow>
           </asp:Table>
            </ItemTemplate>
        </asp:Repeater>
    </ItemTemplate> 
    <FooterTemplate> 
    </FooterTemplate>
          <separatortemplate>
          <br /><br /><br />
           </separatortemplate>
        </asp:Repeater>



I wanted to show something like this:

Books

BookName Amount
Eng Math $25
basic Math $40
Inter Math $60
$125

But it is showing like this:

Books

$
BookName Amount
Eng Math $25
basic Math $40
Inter Math $60
$125
$
$
$

Well, If i take out "$" from the code, display doesn't have any problem but I need to show that "$" sign before the amount and it gives that display problem. I tried to show total amount table of rep3 in its headerTemplate but that doesn't sound good. Any ideas on this kind of error ?
suchita

GeneralRe: diplaying problem in repeaters Pin
T M Gray3-Aug-10 5:07
T M Gray3-Aug-10 5:07 
GeneralRe: diplaying problem in repeaters Pin
Dhyanga3-Aug-10 5:39
Dhyanga3-Aug-10 5:39 
GeneralRe: diplaying problem in repeaters Pin
T M Gray3-Aug-10 6:07
T M Gray3-Aug-10 6:07 
GeneralRe: diplaying problem in repeaters Pin
Dhyanga3-Aug-10 7:03
Dhyanga3-Aug-10 7:03 
QuestionFindAndReplace method applied for Word 2007 in C#.net Windows Application not running in Windows Server 2003 Pin
raghvendrapanda2-Aug-10 8:17
raghvendrapanda2-Aug-10 8:17 
Questioniframe in an apsx page Pin
Member 42602702-Aug-10 5:32
Member 42602702-Aug-10 5:32 
AnswerRe: iframe in an apsx page Pin
daveyerwin2-Aug-10 7:21
daveyerwin2-Aug-10 7:21 
AnswerRe: iframe in an apsx page Pin
T M Gray2-Aug-10 9:41
T M Gray2-Aug-10 9:41 
AnswerRe: iframe in an apsx page Pin
Prosanta Kundu online4-Aug-10 20:24
Prosanta Kundu online4-Aug-10 20:24 
QuestionGoogle Calender integration with my asp.net application Pin
Amit Patel19851-Aug-10 22:40
Amit Patel19851-Aug-10 22:40 
QuestionshowModalDialog with calendar Pin
C#Coudou1-Aug-10 20:23
C#Coudou1-Aug-10 20:23 
AnswerRe: showModalDialog with calendar Pin
Keith Barrow2-Aug-10 5:00
professionalKeith Barrow2-Aug-10 5:00 
AnswerRe: showModalDialog with calendar Pin
T M Gray2-Aug-10 8:45
T M Gray2-Aug-10 8:45 
GeneralRe: showModalDialog with calendar Pin
C#Coudou2-Aug-10 14:35
C#Coudou2-Aug-10 14:35 
Questionneed ur help Pin
Abdulhafeezo1-Aug-10 3:43
Abdulhafeezo1-Aug-10 3:43 
AnswerRe: need ur help PinPopular
daveyerwin1-Aug-10 4:58
daveyerwin1-Aug-10 4:58 
GeneralRe: need ur help Pin
Keith Barrow1-Aug-10 5:15
professionalKeith Barrow1-Aug-10 5:15 

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.