viewState!!!!!! pls help me.........
hi, i disable a view state for the listbox, inside the listbox, there is some list to let user choose on it... when the user click on a button, i set the listbox's view state to true, then create a cookies and store the LbReportList.Selecteditem.Text to it..... but it show me error "object reference not set to an instance of an object"....
im facing problem with viewstate man.... if i let view state to default... it will show me invalid view state!!!!!! any 1 can help me on this... i still have few pages that facing view state error.... pls...
sub btView_Click(Sender as Object, e as EventArgs)
LbReportList.EnableViewState = True
Response.Cookies("TimeIn").Value = LbReportList.SelectedItem.Text
Response.Redirect("CustInfo-ServiceReport.aspx")
end sub
<asp:Listbox id="LbReportList" EnableViewState="False" runat="server" DataTextField="TimeIn" >
best regards
life's Ng
|