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 2 2662
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.goo gle.com... 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
Thank you. This solves my problem.
Happy Programming,
Homa Wong
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message news:<OZ******* *******@TK2MSFT NGP12.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.goo gle.com... 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 != null) {
Trace.Write(e.Item.ItemType.ToString(), "---with data");
} else {
Trace.Write(e.Item.ItemType.ToString(), "---without data");
}
|
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 DataList, I have a PlaceHolder
control called phVariations. During the ItemDataBound event for dlProducts,
I dynamically create a few DropDownLists...
|
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 datalist is a radiobuttonlist. When this radiobuttonlist is checked, I would like it to iterate thru each row on the child grid and either select or...
|
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 have to add a
datalist control.
Using this datalist control I should be able to add edit, modify
and cancel the items listed in this control.
...
|
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 using an empty
table with X rows, and adding a new row to the table that the DataList
is bound to. However, I can't figure out a way to do this and...
| |
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 call databind
(sender.DataBind();
in NeedList_ItemCommand method). The error message is at the bottom of this
message...
|
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" runat="server"
SelectMethod="GetStageUsage" TypeName="SomeController">
</asp:ObjectDataSource>
<asp:DataList ID="dl" runat="server"...
|
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" ...
The datalist displays fine, but when I do a post back, the DataKeys
collection is empty.
|
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 that the controls are loaded/unloaded
based on the SelectionChanged event for the tab strip and again in Page load
because with a dynamic load...
|
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...
|
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...
| |
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...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |