confused on property
-
How do you go about doing something like this? i want to keep a record of the current page number i know i could use a session but I wanted to try the property method as a different way. Here is what I have came up with Pageload() if NOT ispostback() pagenumber =1 end if Public Property pagenumber() Get Return value ' not sure what to put here if i need to declare an integer or what? End Get Set(ByVal value) dim myvalue = value ' confused on this if thats what i need to do? or not. End Set End Property thanks for the help just confused on this one. couldn't find an answer on google but probably not looking in the right place :( MeterMan "Live life to its fullest because, you never know when it will be taken away."
-
How do you go about doing something like this? i want to keep a record of the current page number i know i could use a session but I wanted to try the property method as a different way. Here is what I have came up with Pageload() if NOT ispostback() pagenumber =1 end if Public Property pagenumber() Get Return value ' not sure what to put here if i need to declare an integer or what? End Get Set(ByVal value) dim myvalue = value ' confused on this if thats what i need to do? or not. End Set End Property thanks for the help just confused on this one. couldn't find an answer on google but probably not looking in the right place :( MeterMan "Live life to its fullest because, you never know when it will be taken away."
Here is what I have came up with but for some reason the code doesn't hold the current pagenumber it resets it every time to 1 according to debugger. I have it is not ispostback so this has me puzzled. Please look at code and advise thanks :) http://pastebin.com/662278 thanks alot MeterMan "Live life to its fullest because, you never know when it will be taken away."
-
Here is what I have came up with but for some reason the code doesn't hold the current pagenumber it resets it every time to 1 according to debugger. I have it is not ispostback so this has me puzzled. Please look at code and advise thanks :) http://pastebin.com/662278 thanks alot MeterMan "Live life to its fullest because, you never know when it will be taken away."