I am trying to pass values between pages. I have a large table I am building dynamically to display my data. The table contains and ItemNumber Textbox and an ItemID textbox with visible set to false.
Problem #1 is, I want to populate the ItemID Textbox from a popup window where the user chooses a value, but since the TextBox is not visible, this doesn't work.
Problem #2 is, how do I retrieve the value of the ItemID textbox on a postback? When I try to access the page's viewstate (Page.ViewState), I get the following error:
---------------
Compiler Error Message: BC30390: 'System.Web.UI.Control.Protected Overridable ReadOnly Property ViewState() As System.Web.UI.StateBag' is not accessible in this context because it is 'Protected'
---------------
What does this error mean in this context and what can I do about it? Can I not access the viewstate info?
What's the most efficient way to pass a large number of values between postbacks? If anyone could provide specific examples, that would be a huge help as I am moving from and ASP to an ASP.Net environment.
Thanks!!
Problem #1 is, I want to populate the ItemID Textbox from a popup window where the user chooses a value, but since the TextBox is not visible, this doesn't work.
Problem #2 is, how do I retrieve the value of the ItemID textbox on a postback? When I try to access the page's viewstate (Page.ViewState), I get the following error:
---------------
Compiler Error Message: BC30390: 'System.Web.UI.Control.Protected Overridable ReadOnly Property ViewState() As System.Web.UI.StateBag' is not accessible in this context because it is 'Protected'
---------------
What does this error mean in this context and what can I do about it? Can I not access the viewstate info?
What's the most efficient way to pass a large number of values between postbacks? If anyone could provide specific examples, that would be a huge help as I am moving from and ASP to an ASP.Net environment.
Thanks!!