none
asp.net RRS feed

  • Question

  • hello pls i have these design codes for display my users purchase history and i found out it displays dulpicate datas sometimes. i want to eliminate the dupliation below are the design codes

    <asp:GridView ID="gridCart" runat="server" AutoGenerateColumns="False" 

            DataSourceID="dsCart" DataKeyNames="order_id" Width="100%">

     

            <AlternatingRowStyle BackColor="LightGray" />

     

            <Columns>

                <asp:BoundField DataField="order_datetime" HeaderText="Date" 

                    SortExpression="order_datetime" HeaderStyle-HorizontalAlign="Left" />

                <asp:BoundField DataField="order_payment_type" HeaderText="Payment Type" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" 

                    SortExpression="order_payment_type" />

                <asp:BoundField DataField="order_amount" HeaderText="Amount" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" 

                    SortExpression="order_amount" />            

                <asp:TemplateField ItemStyle-Width="1px">

                    <ItemTemplate>

                        <asp:Button ID="cmdView" runat="server" Text="View" CommandArgument='<% #Eval("order_id") %>' />

                    </ItemTemplate>

                </asp:TemplateField>

            </Columns>

        </asp:GridView>

     

     

     

    <asp:SqlDataSource ID="dsCart" runat="server" 

            ConnectionString="<%$ ConnectionStrings:ConnStr %>" 

            SelectCommand="SELECT * FROM tblOrder WHERE order_user_id = @order_user_id">

            <SelectParameters>

                <asp:SessionParameter Name="order_user_id" SessionField="user_id" />

            </SelectParameters>

        </asp:SqlDataSource>

    • Moved by Liliane Teng Thursday, July 8, 2010 10:33 AM Please repost on appropriate forums for better support (From:Visual Basic General)
    Thursday, July 8, 2010 4:13 AM

Answers

  • Hi,

    Please use the Microsoft ASP.Net forum site.>> http://forums.asp.net/

     

    This forum is intended for VB.Net questions, largely for Windows Forms based projects,

    Console Applications and CLASS Library ( DLL ) projects.


    Do you want Netherlands ( Holland ) or Spain to win the 2010 World Cup? Give a reason if you want to. :-)
    Thursday, July 8, 2010 4:57 AM

All replies

  • Hi,

    Please use the Microsoft ASP.Net forum site.>> http://forums.asp.net/

     

    This forum is intended for VB.Net questions, largely for Windows Forms based projects,

    Console Applications and CLASS Library ( DLL ) projects.


    Do you want Netherlands ( Holland ) or Spain to win the 2010 World Cup? Give a reason if you want to. :-)
    Thursday, July 8, 2010 4:57 AM
  • Hello hjs49,
    Thanks for your post.
    This forum is for VB.NET questions only. I have moved your question to Off-topic forum, please repost on ASP.NET forum as John suggested for better and quicker support because experts live there.
    Best regards,
    Liliane
    Please mark the replies as answers if they help and unmark them if they provide no help. Thanks
    Thursday, July 8, 2010 10:33 AM