Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 20th, 2006, 06:46 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
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


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 02:33 AM
DataList Is not showing Data using ASP.NET and C# kmazumdar ADO.NET 5 August 20th, 2004 10:18 AM



All times are GMT -4. The time now is 05:39 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.