An easy way to model an invalid ViewState?

Is there an easy way to simulate an invalid ViewState?

+1


source to share


3 answers


Of course: just add a simple javascript function to the page to change the hidden __VIEWSTATE input.



+7


source


You can also use fiddler



It can simulate postback very easily and you can modify this post.

+2


source


Here's a jQuery way to implement Joel's suggestion:

<script language="javascript">
$(document).ready(function() {
    jQuery('input[@name=__VIEWSTATE]').val("this is now bad");
});

      

+2


source







All Articles