473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Gridview Displays duplicate Data

I have a web page which has a Update Panel within that I have an Panel (which has a User Control with Gridview control)
I am having an issue while browsing the application, if the data in the column to display is more than 2000 characters approximately the data in the gridrow is duplicating, but its not happening if the characters are less than 2000 characters.
Appreciate your inputs.
Here is the main panel html
Expand|Select|Wrap|Line Numbers
  1. <form id="forminitialImpact" runat="server">
  2. <asp:ScriptManager ID="ScriptManager1" runat="server" />
  3. <asp:UpdatePanel ID="UpdatePanelImitialImpact" runat="server" EnableViewState="True" UpdateMode="Conditional">
  4. <ContentTemplate>
  5. <asp:Panel ID="pnlContentArea" runat="server" Height="610px" HorizontalAlign="Left"
  6.  ScrollBars="Auto" Width="100%"> 
  7. <div id="mainDiv">
  8. <table>
  9. <tr>
  10.   <td colspan="2" class="contentarea">
  11. <ucComment:Comments ID="ucComments" runat="server" EnableViewState="true" />
  12.   </td>
  13. </tr></table>
  14. </asp:Panel>
  15. </ContentTemplate>
  16. </asp:UpdatePanel>
  17. </form>
  18.  
Here is the html of User Control:
Expand|Select|Wrap|Line Numbers
  1. <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Comments.ascx.cs" Inherits="Forms_Controls_Comments" %>
  2. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
  3. <link href="../StyleSheet/StyleSheet.css" rel="stylesheet" type="text/css" />
  4. <asp:Panel ID="Comment_HeaderPanel" runat="server" Style="cursor: pointer;">
  5.     <asp:ImageButton ID="Comment_ToggleImage" runat="server" ImageUrl="~/Images/collapse.jpg"
  6.         CausesValidation="false" AlternateText="Collapse" />
  7.     <span class="sectionHeader">Comments</span>
  8.     <ajaxToolkit:CollapsiblePanelExtender ID="cpComments" runat="server" TargetControlID="Comment_ContentPanel"
  9.         Collapsed="False" ExpandControlID="Comment_HeaderPanel" ImageControlID="Comment_ToggleImage"
  10.         CollapseControlID="Comment_HeaderPanel" ExpandDirection="Vertical" SuppressPostBack="true">
  11.     </ajaxToolkit:CollapsiblePanelExtender>
  12. </asp:Panel>
  13. <asp:Panel ID="Comment_ContentPanel" runat="server" Width="100%">
  14.     <table id="tblComments" width="100%">
  15.         <tr>
  16.             <td class="leftAlign">
  17.                 <asp:Label ID="lblMiComment" runat="server"></asp:Label></td>
  18.         </tr>
  19.         <tr>
  20.             <td class="leftAlign">
  21.                 <asp:GridView Width="100%" AutoGenerateColumns="False" ID="gvComments" runat="server" AllowPaging="True" OnPageIndexChanging="gvComments_PageIndexChanging" PageSize="3">
  22.                     <Columns>
  23.                         <asp:BoundField HeaderText="Comment" DataField="Comment">
  24.                             <HeaderStyle Font-Underline="True" VerticalAlign="Bottom" Wrap="True" />
  25.                             <ItemStyle HorizontalAlign="Left" Wrap="True" />
  26.                         </asp:BoundField>
  27.                     </Columns>
  28.                     <HeaderStyle Wrap="True" />
  29.                     <AlternatingRowStyle BackColor="#E0E0E0" />
  30.                 </asp:GridView>
  31.             </td>
  32.         </tr>
  33.         <tr>
  34.             <td class="leftAlign">
  35.                 <asp:Label ID="lblNewComent"  Text="Add Comment:" runat="server"></asp:Label><br />
  36.                 <asp:TextBox ID="txtCommentEdit" runat="server" TextMode="MultiLine" Width="50%"
  37.                     CssClass="textboxLeftAlign" Height="40px"></asp:TextBox></td>
  38.         </tr>
  39.     </table>
  40. </asp:Panel>
  41.  
Jan 19 '12 #1
0 1519

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Charles | last post by:
Hi MS Access & MS SQL Server Gurus ! I am trying to delete duplicate data from a LINKED SQL Server 2000 table (LinkedTable) and insert the result into a local (in Access) table. The following...
3
by: craig.brenizer | last post by:
I have a table of data that has duplicate values in the pagenumber field. How can I combine the data so that the page numbers of duplicate part numbers are on one record for that part number? ...
0
by: tom | last post by:
Hi, I have a datagrid which display the data like this: bookName Author ------------------ book1 Bob book1 Nancy book2 Tim ------------------
2
by: Mike Charney | last post by:
I have a temp table that has data I am inserting into a SQL DB table. There is a column in both tables called PAT_ID. I need to check the SQL table against the temp table for duplicate data in...
1
by: anjanareddy | last post by:
Hai, i am unable to inserting duplicate data into UNIQUE index column, Is there any other process, to insert duplicate data into UNIQUE index column? plz let me know.. Thanks & Regards...
1
by: oaklander | last post by:
I would like to make sure there are no duplicate data entries in my Oracle 9i table (called MainTable) which has an Id field that is the primary key, ValData with a varchar data type, Fid and Fid2...
2
by: wildman | last post by:
RE: Gridview textbox has data check without postback.. javascript? I have a gridview with a textbox. I can set the textbox to autopostback and check for a value in a prerender event to decide if...
3
by: killswitch101 | last post by:
I need to get all of the non-duplicate data out of 2 tables (ci and hi) i can't seem to work it out i think i need to use the minus command but that will only display the data for 1 table can...
2
by: =?Utf-8?B?bWFnZ2ll?= | last post by:
hi, I have a gridview that is based on parameters. When the select statement does not return any rows, I want to display a label that says 'nothing found'. It works the first time there is not...
1
by: Dave | last post by:
I'm having problems getting the GridView to reliably display a large amount of data (50,000+ rows). I am working my way through the excellent book “Real World ASP.NET Best Practices” by Farhan...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.