473,466 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

page-level vs control-level enableViewState

Joe
Hello all:

From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
events for the datagrid require that the datagrid's enableVireState property
is set to true. Does the page-level enableViewState property affect the
control's enableViewState property?

I am trying to understand this result: when I have the page's
enableViewState turned off and the control's enableViewState turned on, the
ItemCommand event never fires whereas if the page's enableViewState property
is turned on, the ItemCommand event does fire.

Does anyone understadn this?

TIA,
--
Joe

VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation
Nov 19 '05 #1
3 1620
Joe,

Yes, if you turn off viewstate for a page it is also turned off for every
control placed on the page no matter what the control itself is set to.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Joe" <jo******@donotspam.yahoo.com> wrote in message
news:1B**********************************@microsof t.com...
Hello all:

From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
events for the datagrid require that the datagrid's enableVireState
property
is set to true. Does the page-level enableViewState property affect the
control's enableViewState property?

I am trying to understand this result: when I have the page's
enableViewState turned off and the control's enableViewState turned on,
the
ItemCommand event never fires whereas if the page's enableViewState
property
is turned on, the ItemCommand event does fire.

Does anyone understadn this?

TIA,
--
Joe

VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation

Nov 19 '05 #2
Joe
Justin,

Thank you very much.

--
Joe

VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation
"S. Justin Gengo" wrote:
Joe,

Yes, if you turn off viewstate for a page it is also turned off for every
control placed on the page no matter what the control itself is set to.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Joe" <jo******@donotspam.yahoo.com> wrote in message
news:1B**********************************@microsof t.com...
Hello all:

From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
events for the datagrid require that the datagrid's enableVireState
property
is set to true. Does the page-level enableViewState property affect the
control's enableViewState property?

I am trying to understand this result: when I have the page's
enableViewState turned off and the control's enableViewState turned on,
the
ItemCommand event never fires whereas if the page's enableViewState
property
is turned on, the ItemCommand event does fire.

Does anyone understadn this?

TIA,
--
Joe

VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation


Nov 19 '05 #3
Joe,

Anytime.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Joe" <jo******@donotspam.yahoo.com> wrote in message
news:D7**********************************@microsof t.com...
Justin,

Thank you very much.

--
Joe

VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation
"S. Justin Gengo" wrote:
Joe,

Yes, if you turn off viewstate for a page it is also turned off for every
control placed on the page no matter what the control itself is set to.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Joe" <jo******@donotspam.yahoo.com> wrote in message
news:1B**********************************@microsof t.com...
> Hello all:
>
> From what I understand the ItemCommand, UpdateCommand, SortCommand, etc
> events for the datagrid require that the datagrid's enableVireState
> property
> is set to true. Does the page-level enableViewState property affect
> the
> control's enableViewState property?
>
> I am trying to understand this result: when I have the page's
> enableViewState turned off and the control's enableViewState turned on,
> the
> ItemCommand event never fires whereas if the page's enableViewState
> property
> is turned on, the ItemCommand event does fire.
>
> Does anyone understadn this?
>
> TIA,
> --
> Joe
>
> VB.NET/C#/ASP.NET/ASP/VB/C++/Web and DB development/VBA Automation


Nov 19 '05 #4

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

Similar topics

0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
1
by: Lenard Gunda | last post by:
Hi! I have the following problem. From my main page, when someone clicks a button, it uses client side javascript to open another .aspx page. This page displays content, based on what the...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
8
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
0
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and...
1
by: CaptainDahlin | last post by:
I know the basics about access reports and putting page totals in the page footers. What I can't figure out is along with the current page total to display the previous page total: At the bottom...
3
by: laryten | last post by:
Hi, Is there a way to update the same web page instead of getting a new page each time we click the submit button? The simplest thing to do is to delete the current page (or go back to the...
7
by: Schmidty | last post by:
Okay...I have another 'newbie' question; I have a function that loads a page and the action is $_SERVER; In the form that is in a function(method?) within a class a variable is passed back to...
17
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this...
3
by: Mesut | last post by:
I have written a form in with radio buttons the name is set to orderby and the value is set to KundeVorName and the next value is KundeNachName and it goes so on. I wanna modify my query according...
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
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...
1
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,...
0
isladogs
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.