Last post Dec 16, 2010 03:06 PM by chaepaei
Dec 16, 2010 11:15 AM|chaepaei|LINK
I am receiving a viewstate error when executing this code.
\\Dynamic imagebutton created
Dim imb as new imageButton
imb.imageUrl = "~/images/br_magglass.png"
imb.ID = "imb"
AddHandler imb.Click, Addressof imb_Click
Protected Sub imb_Click(ByVal sender As Object, ByVal As ImageClickEventArgs)
\\Execute a different Protected sub
<input type = "hidden" name="_VIEWSTATE" id="_VIEWSTATE" value="/wEPDw(the gibberish line goes on)
Dec 16, 2010 03:06 PM|chaepaei|LINK
Another thing to add is that the dynamic imagebutton is not in Page Load because the imagebutton has to be added to a cell control of a dynamic table. The dynamic imagebutton is within the creation of the dynamic table its assigned.