ASP.NET Error – The state information is invalid for this page and might be corrupted
I ran into this error a second time in the last couple of years and totally forgot how I fixed it, so i’ll blog what my situation and resolution was as a reminder and hopefully to help others.
I have an ASP.NET “default.aspx” page with a form text field with
Popularity: 6% [?]
Read MoreQuick Ajax Example Using jQuery
About 2 years ago I posted an article called “Quick Ajax Example Using Prototype.js” and some visitors commented that my instructions weren’t clear so I just wanted to post a quick follow up. This is basically the same example using the more efficient jQuery library.
- Create a file named ShowTime.aspx that will display the current time when the page is called. Follow steps 1-4 from my old article.
- Create a ShowTime.html file with a link
click to see updated time without page refreshand ato display the updated time when the link is clicked. - Call jQuery library from google between your tags like this
- Now add this jQuery script inside the
tags after calling jQuery library.1 2 3 4 5 6 7 8 9
<code> $(function(){ $("#gettime").click(function(){ $("#time").load("http://dev.hostreaction.net/examples/showtime.aspx"); }); }); </code>
- Check out the demo and view source to get the exact HTML and jQuery.
- To briefly explain what’s going on in step 4: everything between the
$(function(){ ... });loads as soon as the DOM is loaded. Then we attach a “click” event to the “gettime” link (notice the # sign corresponding to the link ID attribute, jQuery uses CSS selectors). Inside the “click” event we run the.loadfunction which is an ajax call to “showtime.aspx” and we tell it to display it toelement.
Popularity: 46% [?]
Read More
![[del.icio.us]](http://stevenng.net/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://stevenng.net/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://stevenng.net/wp-content/plugins/bookmarkify/facebook.png)
![[LinkedIn]](http://stevenng.net/wp-content/plugins/bookmarkify/linkedin.png)
![[MySpace]](http://stevenng.net/wp-content/plugins/bookmarkify/myspace.png)
![[StumbleUpon]](http://stevenng.net/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Twitter]](http://stevenng.net/wp-content/plugins/bookmarkify/twitter.png)
![[Windows Live]](http://stevenng.net/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://stevenng.net/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://stevenng.net/wp-content/plugins/bookmarkify/email.png)