473,398 Members | 2,368 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,398 software developers and data experts.

LoadViewState datagrid

LoadViewState is taking a long time on a page, the bigger the dataset the
longer the wait and also it takes longer on remote server than local host.

EnableViewState is FALSE and when I examine the viewstate size for the
datagrid in trace it is ZERO.

But the view state string is very long :|

What the heck is going on here ? ViewState gurus neeeded.

TIA

--
¬¬¬¬nergal¬¬¬¬
Nov 18 '05 #1
6 1909
By disabling viewstate in datagrid doesnt reduce the size of viewstate to
zero. Other controls in the page will have view state enabled, so it will
have viewstate of those controls. If you disable viewstate at page level
also, you will have viewstate string in the page but with only few
characters length. If you dont want that also, you need to remove form tag
with runat=server from your page.

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Nergal" <kj****@jfskj.com> wrote in message
news:Xn****************************@207.46.248.16. ..
LoadViewState is taking a long time on a page, the bigger the dataset the
longer the wait and also it takes longer on remote server than local host.

EnableViewState is FALSE and when I examine the viewstate size for the
datagrid in trace it is ZERO.

But the view state string is very long :|

What the heck is going on here ? ViewState gurus neeeded.

TIA

--
¬¬¬¬nergal¬¬¬¬

Nov 18 '05 #2
I appreciate your point but I am not worried about a few things being in
view state, in fact it's essential.

But this datagrid is causing LoadViewState to take 10-20 SECONDS and that
really is a problem and I can't understand why its doing it.

Cheers.

"Saravana" <sa******@sct.co.in> wrote in
news:r_****************@news.cpqcorp.net:
By disabling viewstate in datagrid doesnt reduce the size of viewstate
to zero. Other controls in the page will have view state enabled, so
it will have viewstate of those controls. If you disable viewstate at
page level also, you will have viewstate string in the page but with
only few characters length. If you dont want that also, you need to
remove form tag with runat=server from your page.


--
¬¬¬¬nergal¬¬¬¬
Nov 18 '05 #3
I think Saravana's point is you should make sure no other controls are
contributing significantly to your viewstate.

Eliyahu

"Nergal" <kj****@jfskj.com> wrote in message
news:Xn****************************@207.46.248.16. ..
I appreciate your point but I am not worried about a few things being in
view state, in fact it's essential.

But this datagrid is causing LoadViewState to take 10-20 SECONDS and that
really is a problem and I can't understand why its doing it.

Cheers.

"Saravana" <sa******@sct.co.in> wrote in
news:r_****************@news.cpqcorp.net:
By disabling viewstate in datagrid doesnt reduce the size of viewstate
to zero. Other controls in the page will have view state enabled, so
it will have viewstate of those controls. If you disable viewstate at
page level also, you will have viewstate string in the page but with
only few characters length. If you dont want that also, you need to
remove form tag with runat=server from your page.


--
¬¬¬¬nergal¬¬¬¬

Nov 18 '05 #4
No, nothing out of the ordinary.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in
news:eB**************@TK2MSFTNGP10.phx.gbl:
I think Saravana's point is you should make sure no other controls are
contributing significantly to your viewstate.

Eliyahu

"Nergal" <kj****@jfskj.com> wrote in message
news:Xn****************************@207.46.248.16. ..
I appreciate your point but I am not worried about a few things being
in view state, in fact it's essential.

But this datagrid is causing LoadViewState to take 10-20 SECONDS and
that really is a problem and I can't understand why its doing it.

Cheers.

"Saravana" <sa******@sct.co.in> wrote in
news:r_****************@news.cpqcorp.net:
> By disabling viewstate in datagrid doesnt reduce the size of
> viewstate to zero. Other controls in the page will have view state
> enabled, so it will have viewstate of those controls. If you
> disable viewstate at page level also, you will have viewstate
> string in the page but with only few characters length. If you dont
> want that also, you need to remove form tag with runat=server from
> your page.
>


--
¬¬¬¬nergal¬¬¬¬



--
¬¬¬¬nergal¬¬¬¬
Nov 18 '05 #5
Can you post your aspx code.

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Nergal" <kj****@jfskj.com> wrote in message
news:Xn****************************@207.46.248.16. ..
I appreciate your point but I am not worried about a few things being in
view state, in fact it's essential.

But this datagrid is causing LoadViewState to take 10-20 SECONDS and that
really is a problem and I can't understand why its doing it.

Cheers.

"Saravana" <sa******@sct.co.in> wrote in
news:r_****************@news.cpqcorp.net:
By disabling viewstate in datagrid doesnt reduce the size of viewstate
to zero. Other controls in the page will have view state enabled, so
it will have viewstate of those controls. If you disable viewstate at
page level also, you will have viewstate string in the page but with
only few characters length. If you dont want that also, you need to
remove form tag with runat=server from your page.


--
¬¬¬¬nergal¬¬¬¬

Nov 18 '05 #6
You stated "But the view state string is very long :|" This means
something is being stored in it if you are convinced it is not the
datagrid pull it off the page and see what happens.

Sorry that does not much help.

Nergal <kj****@jfskj.com> wrote in message news:<Xn****************************@207.46.248.16 >...
No, nothing out of the ordinary.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in
news:eB**************@TK2MSFTNGP10.phx.gbl:
I think Saravana's point is you should make sure no other controls are
contributing significantly to your viewstate.

Eliyahu

"Nergal" <kj****@jfskj.com> wrote in message
news:Xn****************************@207.46.248.16. ..
I appreciate your point but I am not worried about a few things being
in view state, in fact it's essential.

But this datagrid is causing LoadViewState to take 10-20 SECONDS and
that really is a problem and I can't understand why its doing it.

Cheers.

"Saravana" <sa******@sct.co.in> wrote in
news:r_****************@news.cpqcorp.net:

> By disabling viewstate in datagrid doesnt reduce the size of
> viewstate to zero. Other controls in the page will have view state
> enabled, so it will have viewstate of those controls. If you
> disable viewstate at page level also, you will have viewstate
> string in the page but with only few characters length. If you dont
> want that also, you need to remove form tag with runat=server from
> your page.
>

--
¬¬¬¬nergal¬¬¬¬


Nov 18 '05 #7

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

Similar topics

0
by: Christian | last post by:
Hi, I have a Webform with 1 submit button and 1 label code behind : public class MainWebForm: System.Web.UI.Page { protected System.Web.UI.WebControls.Label lblFName; protected override...
0
by: Christian | last post by:
Hi, I have a Webform with 1 submit button and 1 label code behind : public class MainWebForm: System.Web.UI.Page { protected System.Web.UI.WebControls.Label lblFName; protected override...
0
by: SSW | last post by:
Hi: In aspx.cs page i had written the code below. I only have TextBox and Button Control. LoadViewStateis Never called But when we put datagrid/DataList It works. Can any one, please tell where...
2
by: SSW | last post by:
Hi: In aspx.cs page i had written the code below. I have a button control and only create TextBox Control dynamically. LoadViewState is Never called. But when we put datagrid/DataList it...
5
by: William F. Robertson, Jr. | last post by:
I am having difficulty in diagnosing this problem and was throwing it out for some other eyes. I have derived my own Page class from System.Web.UI.Page and have overridden the LoadViewState...
2
by: Devin Fensterheim | last post by:
Does anyone know of an issue with a control's viewstate not persisting when dynamically adding custom controls to a web form using AddAt? If a control is added to an HTML form directly using the...
0
by: Ferret | last post by:
I've found what seems to be a nasty bug in the DataGrid and Repeater classes. If CreateChildControls gets called before LoadViewState, ViewState fails to map and you end up with nothing on a...
0
by: J. | last post by:
Hello, I'm trying to override the LoadViewState-method of a simple page using the .NET Framework 2.0. However, the LoadViewState-method in the code below never gets executed. The...
0
by: Anand Saha | last post by:
In case you are creating your own control dynamically and need to re-create them on LoadViewState, only to discover that this function is not being called by the framework, reason and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.