Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2003, 11:46 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default 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


 
Old September 17th, 2003, 05:05 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

hi.... everything is work fine with PC and laptop..... but it show "invalid viewstate error" when i use PDA to browse it.... im sorry i dint make it clear... i very blurr alrd... thanks u guys

best regards
life's Ng






Similar Threads
Thread Thread Starter Forum Replies Last Post
ViewState Wervis C# 1 December 3rd, 2005 11:35 AM
Viewstate Wervis BOOK: ASP.NET Website Programming Problem-Design-Solution 0 November 30th, 2005 09:42 AM
ViewState abdul_owiusa General .NET 0 October 18th, 2005 04:37 PM
ViewState burhan ASP.NET 1.0 and 1.1 Basics 4 June 6th, 2004 04:25 AM
how do i get the first viewstate of the page ... alyeng2000 ASP.NET 1.0 and 1.1 Basics 5 January 19th, 2004 03:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.