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¬¬¬¬ 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¬¬¬¬
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¬¬¬¬
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¬¬¬¬
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¬¬¬¬
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¬¬¬¬
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¬¬¬¬ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |