472,958 Members | 2,256 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 2628
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.