K
Kjell Kristiansson
I am writing an applictaion consisting of several web pages and web forms.
In one file, A.vbs, I have defined several of my classes within Namespace
A.
Now I want to create another Namespace A.Util in another file.
Here I want to put utility functions that I need in a several places
within
some classe but also outside within the Page_load event.
Questions:
1) Is it possible to create just the utility functions in the file without
putting them within a class that I have to instansiate?
2) Within one of the functions I want to access Session-variables set by
an
ASP page.
Which is the simplest way to to access this information? What imports
do
I need?
3) I want, in one of the functions, do a transfer to another page like
using
server.transfer(xxx).
What is best practice? What imports do I need.
I have evertything working but I want a better structure of the source
code
and better reuse.
When I moved out code from the page I got problems with the session
variables and the server.transfer.
I have scanned my litterature and and the web but found few examples
covering code separated into several files.
Thanks
Kjell K.
In one file, A.vbs, I have defined several of my classes within Namespace
A.
Now I want to create another Namespace A.Util in another file.
Here I want to put utility functions that I need in a several places
within
some classe but also outside within the Page_load event.
Questions:
1) Is it possible to create just the utility functions in the file without
putting them within a class that I have to instansiate?
2) Within one of the functions I want to access Session-variables set by
an
ASP page.
Which is the simplest way to to access this information? What imports
do
I need?
3) I want, in one of the functions, do a transfer to another page like
using
server.transfer(xxx).
What is best practice? What imports do I need.
I have evertything working but I want a better structure of the source
code
and better reuse.
When I moved out code from the page I got problems with the session
variables and the server.transfer.
I have scanned my litterature and and the web but found few examples
covering code separated into several files.
Thanks
Kjell K.