473,396 Members | 1,608 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,396 software developers and data experts.

Partially Disable DataList ViewState

Hi,

I have a datalist with linkbuttons embedded within. In order for the
onClick event to fire, I need to have EnableViewState = true. But
since there are quite a lot of data, simply enable ViewState will tax
the page a lot. Is there a way to specifically disable the data
portion of the ViewState of the DataList?

What i have is an order history page, with each customer name a link
button so when I click on the name, it refresh the page to display all
order associate to that customer.

Best Regards,
Homa Wong
Nov 18 '05 #1
2 2647
Hi,

I don't have exact article to provide but here's same thing discussed
related to Datagrid, hopefully it helps a bit:

http://authors.aspalliance.com/jimro...agridDiet.aspx
http://authors.aspalliance.com/jimro...etPartTwo.aspx

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"Homa" <ho******@yahoo.com> wrote in message
news:a9**************************@posting.google.c om...
Hi,

I have a datalist with linkbuttons embedded within. In order for the
onClick event to fire, I need to have EnableViewState = true. But
since there are quite a lot of data, simply enable ViewState will tax
the page a lot. Is there a way to specifically disable the data
portion of the ViewState of the DataList?

What i have is an order history page, with each customer name a link
button so when I click on the name, it refresh the page to display all
order associate to that customer.

Best Regards,
Homa Wong

Nov 18 '05 #2
Thank you. This solves my problem.

Happy Programming,
Homa Wong

"Teemu Keiski" <jo****@aspalliance.com> wrote in message news:<OZ**************@TK2MSFTNGP12.phx.gbl>...
Hi,

I don't have exact article to provide but here's same thing discussed
related to Datagrid, hopefully it helps a bit:

http://authors.aspalliance.com/jimro...agridDiet.aspx
http://authors.aspalliance.com/jimro...etPartTwo.aspx

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"Homa" <ho******@yahoo.com> wrote in message
news:a9**************************@posting.google.c om...
Hi,

I have a datalist with linkbuttons embedded within. In order for the
onClick event to fire, I need to have EnableViewState = true. But
since there are quite a lot of data, simply enable ViewState will tax
the page a lot. Is there a way to specifically disable the data
portion of the ViewState of the DataList?

What i have is an order history page, with each customer name a link
button so when I click on the name, it refresh the page to display all
order associate to that customer.

Best Regards,
Homa Wong

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hardy Wang | last post by:
Hi all; I have a DataList with ItemCreated event like below: private void myList_ItemCreated(object sender , DataListItemEventArgs e) { DataRowView myRowView; DataRow myRow; if (e.Item.DataItem...
1
by: Scott Schluer | last post by:
Hello, I've got myself a small problem and I'm hoping someone can help. I have a DataList called dlProducts (displays products from a database). Within the <ItemTemplate> container of the...
1
by: wsyeager36 | last post by:
I have a datagrid inside a datalist. The datalist shows parent info and the datagrid shows the child info for that parent. There is a checkbox on each row of the child datagrid. Also inside the...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
0
by: bryanp10 | last post by:
I have a DataList on my page which contains multiple DropDownLists. My page defaults to showing six rows in the DataList. I want the ability to dynamically add rows if needed. Right now I'm just...
1
by: Craig | last post by:
This is killing me, I've been trying to figure this out for 2 days. When I click on the linkbutton, it executes the GetData(int) method to set the DataSource. The FAILURE is when it tries to...
1
by: Jules | last post by:
We have a problem setting, actually resetting, the SelectedItemTemplate of a DataList control. Below is the ObjectDataSource and the DataList in .ASPX: <asp:ObjectDataSource ID="mySource"...
2
by: cmay | last post by:
I am binding a List(Of T) to a DataList. In this case, T is a class Test, which has a property TestId. I am trying to use the DataKeyField with this <asp:DataList DataKeyField="TestId" ... ...
0
by: =?Utf-8?B?Y2luZHk=?= | last post by:
I have am dynamically loading a web user control based on the click of a tab strip I load the default control for the first tab in the page load event after checking page is not postback. After...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.