Hi everyone,
I have a datagrid to display search results. The search results at this
stage we only return the first 500 records to speed up the search. The
problem is, if I turn the EnableViewState on, the search regularly failed
with a message that says tempdb is full... It does not however happens all
the time. I have tried to turn the EnableViewState off, that seems to do the
trick but causes another problem, the datagrid's paging does not work for
hidden pages (example, we only 5 pages, numbered 1, 2,.., 5 with the rest can
be accessed by clicking the ... after the 5. After clicking the ... after the
5, the numbers 6 - 10 are displayed but if I click on any number from 7 to
10, it goes back to pages 1 - 5). HELP!!!!
Is there a size limit to the contents that can be displayed on an IE6 browser?
Has anyone experienced the same problem or is it just me?
Reducing the number of records returned is an alternative but it would be
much better if someone has a work around.
Any suggestion is greatly appreciated.
Calvin 2 3083
Hello,
Disable viewstate for each row after binding the data. Paging works without it
BindTheData();
foreach (DataGridItem item in dg.Items)
{
item.EnableView State = false;
}
--
Milosz Skalecki
MCP, MCAD
"Calvin KD" wrote: Hi everyone, I have a datagrid to display search results. The search results at this stage we only return the first 500 records to speed up the search. The problem is, if I turn the EnableViewState on, the search regularly failed with a message that says tempdb is full... It does not however happens all the time. I have tried to turn the EnableViewState off, that seems to do the trick but causes another problem, the datagrid's paging does not work for hidden pages (example, we only 5 pages, numbered 1, 2,.., 5 with the rest can be accessed by clicking the ... after the 5. After clicking the ... after the 5, the numbers 6 - 10 are displayed but if I click on any number from 7 to 10, it goes back to pages 1 - 5). HELP!!!! Is there a size limit to the contents that can be displayed on an IE6 browser? Has anyone experienced the same problem or is it just me? Reducing the number of records returned is an alternative but it would be much better if someone has a work around. Any suggestion is greatly appreciated. Calvin
Thanks so much Milosz. It worked like a charm.
Cheers.
Calvin
"Milosz Skalecki" wrote: Hello,
Disable viewstate for each row after binding the data. Paging works without it
BindTheData(); foreach (DataGridItem item in dg.Items) { item.EnableView State = false; } -- Milosz Skalecki MCP, MCAD
"Calvin KD" wrote:
Hi everyone, I have a datagrid to display search results. The search results at this stage we only return the first 500 records to speed up the search. The problem is, if I turn the EnableViewState on, the search regularly failed with a message that says tempdb is full... It does not however happens all the time. I have tried to turn the EnableViewState off, that seems to do the trick but causes another problem, the datagrid's paging does not work for hidden pages (example, we only 5 pages, numbered 1, 2,.., 5 with the rest can be accessed by clicking the ... after the 5. After clicking the ... after the 5, the numbers 6 - 10 are displayed but if I click on any number from 7 to 10, it goes back to pages 1 - 5). HELP!!!! Is there a size limit to the contents that can be displayed on an IE6 browser? Has anyone experienced the same problem or is it just me? Reducing the number of records returned is an alternative but it would be much better if someone has a work around. Any suggestion is greatly appreciated. Calvin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andla Rand |
last post by:
Hi,
Could you help me to understand how datagrid works.
I'm trying to make a datagrid editable. Now most of the tutorials I read
says that i should turn the Enable ViewState off. Why is that?
If i turn this off then i need to support building the datagrid because
the datagrid is not persistant.
Right?
|
by: A.M |
last post by:
Hi,
I want to refresh my DataGrid data on every postback.
I have following code in Page_Load event, but after first page load, the
DataGrid never gets refresh.
Here is the code i have in Page_load (it works at first page_load):
Dim DS As DataSet
Dim MyConnection As System.Data.SqlClient.SqlConnection
|
by: Syed Sami R. Shah |
last post by:
hi all,
i am having problem with using itemcommand of datagrid by way of asp:image
button.
i have put an image button in a datagrid item template and have set
CommandName="DeleteRecord" and have coded a switch to handle the event.
I have done this vb.net and it works fine..put in c# i can not catch the
item command..i stepped into code
via debug mode.. its just doest enter the dgrCaseType_ItemCommand...
I AM TOTALLY CLULESS.....WHAT AM I...
|
by: sonic |
last post by:
Hi,
I am experimenting with different viewstate management ideas for large
datagrids, and found a microsoft suggestion to turn it off, and only
store relevant information by manually accessing viewstate. as per some
helpful suggestins in MSDN "Common DataGrid Mistakes"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-commondatagridmistakes.asp
they suggest disabling datagrid viewstate and adding...
|
by: Mortar |
last post by:
i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.
is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript...
| |
by: Sue |
last post by:
I'm missing something very simple here, and I need an answer fairly quick if
possible. I'm behind on this project now because of this...
Code examples below question...
I have a datagrid (DG) that I've pared down to the bare essentials. The two
controls involved (MyButton and MyValue) are created in the DG_ItemCreated
sub and added to the two placeholders in the datagrid.
If the button is clicked, the DG_ItemCommand grabs the button's
|
by: Jeff User |
last post by:
Hello
..NET 1.1, VS 2003, C# & asp.net
I have tried to follow msdn instructions and samples but I can not get
an event to fire for this button on the datagrid.
There has to be something obvious missing here, but after 2 days I am
ready to explode ! Please help.
To create the Delete button I selected the grid in design view,
clicked the "Columns" property and added the Delete button in the
|
by: jigsawcube1 |
last post by:
I am trying to accept two input strings and concatinate and display the result in a datagrid. Following is the HTML and code. ItemCommand does not get fired what is that I am missing?
<body bgColor="#99ccff" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:datagrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 288px; POSITION: absolute; TOP: 80px"
runat="server" BackColor="Silver" ForeColor="Blue"...
|
by: slinky |
last post by:
I found the following code to transfer datagrid data to an Excel file.
Is this written in C#?... I'm a vb.netter. I'm just not sure where to
place the code to experiment on it. Should I place it in the event
handler for a form button. Is there other ways to accomplish this? I
looked at some on the web and usergroups, but was confused as to the
functioning. BTW my datagrid is enclosed in a <div></divfor ease of
scrolling if that would...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |