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

Problem with viewstate when many rows in datagrid

Hi. I have come across a strange error with datagrids only when I have about
15 rows or more in there. Each row has a link button on it that gets posted
back to the server. This works fine for less than 15 rows but any more and
nothing happens on the client - I get a JavaScript error.

After some hacking of the web page I tracked the problem down to the
viewstate data. It seems that it gets corrupted or something.

Has anyone seen this?

--
McGeeky
http://mcgeeky.blogspot.com

Nov 28 '05 #1
2 975
This is really weird now. It works with Firefox but not with Internet
Explorer! It seems like something strange is going on in the browser and it
is just strange.

Anyone seen anything like this?

--
McGeeky
http://mcgeeky.blogspot.com
"McGeeky" <an**@anon.com> wrote in message
news:un*************@TK2MSFTNGP15.phx.gbl...
Hi. I have come across a strange error with datagrids only when I have
about 15 rows or more in there. Each row has a link button on it that gets
posted back to the server. This works fine for less than 15 rows but any
more and nothing happens on the client - I get a JavaScript error.

After some hacking of the web page I tracked the problem down to the
viewstate data. It seems that it gets corrupted or something.

Has anyone seen this?

--
McGeeky
http://mcgeeky.blogspot.com

Dec 1 '05 #2
I have hacked away at the HTML page that gets created and have reduced it to
the HTML text that follows. Cut and paste it into IE and see if you get a
JavaScript error. I do. Why I don't know - its bizarre. Removing 1 or more
of the hidden view state fields stops the error.

Please help!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
</HEAD>
<body>
<form name="Form1" method="get" action="" id="Form1">
<input type="hidden" name="__VIEWSTATE1"
value="dDwtNTQxNTMyNzYzO3Q8O2w8aTwxPjs+O2w8dDw7bDx pPDU+O2k8OT47aTwxMz47aTwxNz47aTwxOT47aTwzMT47PjtsP HQ8cDxwPGw8VGV4dDs+O2w8XGU7Pj47Pjs7Pjt0PHA8cDxsPFR leHQ7PjtsPFxlOz4+Oz47Oz47dDxwPHA8bDxUZXh0Oz47bDw5N zcwOTU5ODMzMDk3MDU7Pj47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ic3BcO09yZGVyczs+Pjs+Ozs+Oz4+Oz4+Oz4+Oz4+O3Q8O 2w8aTwzPjs+O2w8dDxwPHA8bDxUZXh0Oz47bDxMb2dnZWQgaW4 gYXMgQ09SUFxcSmVmZnJleV9NOz4+Oz47Oz47Pj47Pj47Pj47b DxEYXRhR3JpZDE6X2N0bDI6Q2hlY2tCb3hSb3dTZWxlY3RlZDt EYXRhR3JpZDE6X2N0bDM6Q2hlY2tCb3hSb3dTZWxlY3RlZDtEY XRhR3JpZDE6X2N0bDQ6Q2hlY2tCb3hSb3dTZWxlY3RlZDtEYXR hR3JpZDE6X2N0bDU6Q2hlY2tCb3hSb3dTZWxlY3RlZDtEYXRhR 3JpZDE6X2N0bDY6Q2hlY2tCb3hSb3dTZWxlY3RlZDtEYXRhR3J pZDE6X2N0bDc6Q2hlY2tCb3hSb3dTZWxlY3RlZDtEYXRhR3JpZ DE6X2N0bDg6Q2hlY2tCb3hSb3dTZWxlY3RlZDtEYXRhR3JpZDE 6X2N0bDk6Q2hlY2tCb3hSb3dTZWxlY3RlZDtEYXRhR3JpZDE6X 2N0bDEwOkNoZWNrQm94Um93U2VsZWN0ZWQ7RGF0YUdyaWQxOl9 jdGwxMTpDaGVja0JveFJvd1NlbGVjdGVkOz4+"
/>
<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
theform = document.Form1;
theform.submit();
}
// -->
</script>

<a class="LinkButton" href="javascript:__doPostBack('a','')"
style="text-decoration:underline;">Click Me</a>
</form>
</body>
</HTML>
--
McGeeky
http://mcgeeky.blogspot.com
"McGeeky" <an**@anon.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
This is really weird now. It works with Firefox but not with Internet
Explorer! It seems like something strange is going on in the browser and
it is just strange.

Anyone seen anything like this?

--
McGeeky
http://mcgeeky.blogspot.com
"McGeeky" <an**@anon.com> wrote in message
news:un*************@TK2MSFTNGP15.phx.gbl...
Hi. I have come across a strange error with datagrids only when I have
about 15 rows or more in there. Each row has a link button on it that
gets posted back to the server. This works fine for less than 15 rows but
any more and nothing happens on the client - I get a JavaScript error.

After some hacking of the web page I tracked the problem down to the
viewstate data. It seems that it gets corrupted or something.

Has anyone seen this?

--
McGeeky
http://mcgeeky.blogspot.com


Dec 1 '05 #3

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

Similar topics

4
by: Stephen | last post by:
I have the following code working in order to create an array list and populate a datagrid however everytime i click my button the first item in the array and the first row in the datagrid are...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
1
by: Sky | last post by:
Although I've been using C# for the last month or so, and accepting out of blind faith the ViewState, I do have some nagging questions about it... can you help verify the following statements? ...
2
by: ddaniel | last post by:
I have read many posts and seen many papers on the different techniques for sort and filtering datagrids. Many do re-queries against the dB ala Fritz Onion. I am trying to leverage the Dataview....
2
by: ven | last post by:
Hello i have a dynamic datatable in my page. I wanna to write data to textboxes and after click on button "ADD data" i want to refresh datagrid on page... Here is my code : ' Insert page code...
2
by: Bill Yeager | last post by:
I have a grid that I databind with a strongly typed dataset which contains thousands of records retrieved from a database. After the dataset is retrieved from the database, I place it in...
1
by: Graham | last post by:
I have created a server control that reads data from an xml file and renders either a datagrid of entries from a database or group of form controls to allow editing of an individual entry from the...
6
by: hlubocky | last post by:
I thought I had a good grasp of the problem related to dynamically creating controls, but it appears that as my application grew in complexity, the problem has resurfaced. As I understand it, in...
7
by: Alex Maghen | last post by:
I have a DataGrid where all the columns can be clicked to sort by that column. A very strange thing is happening: When the page is first displayed with my default sort order, a click on one of...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...
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.