T
Trust Me; I'm from the government
I have an employee class - in my page, when it loads, it gets all the
employee data, including the employee Number.
I have
Dim emp As New Employee (at the top of the page, so it's global to the page)
emp.empno=Datareader("empno") - and yes, it does get populated, correctly,
at page Load
Here's what I need, and isn't working:
I have a button on that page, which does a Server.Transfer to another page,
using that number, so I do something like this:
Server.Transfer("secondpage.aspx?empno=" & emp.empno, False) - I've tried
True also
however, at this point, emp.empno shows as '0' - not the real number
Is this the correct way to use class properties?
How long is a (Public) property like this available in the page?
What am I missing?
employee data, including the employee Number.
I have
Dim emp As New Employee (at the top of the page, so it's global to the page)
emp.empno=Datareader("empno") - and yes, it does get populated, correctly,
at page Load
Here's what I need, and isn't working:
I have a button on that page, which does a Server.Transfer to another page,
using that number, so I do something like this:
Server.Transfer("secondpage.aspx?empno=" & emp.empno, False) - I've tried
True also
however, at this point, emp.empno shows as '0' - not the real number
Is this the correct way to use class properties?
How long is a (Public) property like this available in the page?
What am I missing?