Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2006, 06:46 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Incomplete Data Showing

Hi all,

I am new in this forum,

I have some trouble in Microsoft visual c# 2003 and Oracle 8i.

I have made a program in visual c# to read content from Oracle 8i database and show it in datagrid on the webpage.

But whenever i read content from the database and there is any repeatation of data is coming then it makes repeated data incomplete or garbage,

below is the code which i am using in it.

Code:

DataGrid on aspx file --

<asp:datagrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True" CellPadding="3">

<ItemStyle Font-Size="12px" Font-Names="Arial" ForeColor="#4E4421" BackColor="#DCE9FB"></ItemStyle>

<HeaderStyle Font-Size="12px" Font-Names="Arial" Font-Bold="True" ForeColor="#FFFFFF" BorderColor="#D0C7B3" BackColor="#708EBA"></HeaderStyle>

<Columns>

<asp:HyperLinkColumn DataNavigateUrlField="Quotation Number" DataNavigateUrlFormatString="QuoteDetails.aspx?{0} "

DataTextField="Quotation Number" SortExpression="Quotation Number" HeaderText="Quotation Number">

<ItemStyle Width="150px"></ItemStyle>

</asp:HyperLinkColumn>

<asp:BoundColumn DataField="Date" SortExpression="Date" HeaderText="Date">

<ItemStyle Width="150px"></ItemStyle>

</asp:BoundColumn>

<asp:BoundColumn DataField="City of Delivery" SortExpression="City of Delivery" HeaderText="City of Delivery">

<ItemStyle Width="175px"></ItemStyle>

</asp:BoundColumn>

<asp:BoundColumn DataField="status" SortExpression="status" HeaderText="Status">
<ItemStyle Width="225px"></ItemStyle>

</asp:BoundColumn>

</Columns>

<PagerStyle HorizontalAlign="Center" Mode="NumericPages"></PagerStyle>

</asp:datagrid>

Function to fill DataGrid in cs (code behind) file --

public void fillDg()
{
DataSet ds=new DataSet();
Cache["DataTable"]="";
ds=objClientInfo.GetQuotes(Session["Email"].ToString());
Cache["DataTable"]=ds.Tables[0];
DataGrid1.DataSource=ds;
DataGrid1.DataBind();
ds.Dispose();
}



Please help me to sort this error.

Regards
Ramesh Jha







Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal not showing data tgraham Crystal Reports 4 September 9th, 2009 02:46 AM
Same data showing in PDF artarasan ASP.NET 2.0 Basics 1 July 3rd, 2007 01:10 AM
MSChart : A chart that needs incomplete data point sanjib VB Components 0 February 22nd, 2005 03:33 AM
DataList Is not showing Data using ASP.NET and C# kmazumdar ADO.NET 5 August 20th, 2004 10:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.