Re: Variables to use in more than one sub
- From: "dancer" <dancer@xxxxxxxxxxxxx>
- Date: Fri, 21 Sep 2007 11:40:41 -0400
Thanks for replying.
I looked here www.developerfusion.co.uk/vbnet/288/ - from the google page
you suggested.
I was trying the tutorial. It was making a lot of sense. But then I hit a
snag. The same snag that somebody else hit.
This is a question posed by another student, but it was not answered:
"I am very impressed by your tutorial as it finally allowed me to grasp the
syntax behind OOP programming with .net.
Only what I did not understand is how and where do I complile the .cs to a
dll? I cannot do it on the server. Do I do it on my local computer and then
upload? "
Would you know the answer to this question? I tried doing it from my
command prompt. I tried doing it from my localhost. No luck. I tried
putting the .cs code directly in my aspx file. Still no luck. What am I
missing?
"Tim Mackey" <tim.mackey@xxxxxxxxxxxxxxxx> wrote in message
news:B9E030F5-5E3C-43C3-AB5F-41BF7225610C@xxxxxxxxxxxxxxxx
hi
since you are in asp.net, i am guessing that the code you are writing will
be in a page. Every page in asp.net is a class. if you put your
variables inside the class declaration, all the subroutines can share the
variables. if you are in visual studio, the 'class' is defined in the
code-behind file.
the asp.net quickstart tutorials are a great way to learn about asp.net.
http://samples.gotdotnet.com/quickstart/aspplus/
you will need to learn about OOP to get good at .net so it will be well
worth your time. here is another link to a VB.Net OOP introduction:
http://www.codeproject.com/vb/net/OOPS_In_VBNET.asp
plenty more on http://www.google.com/search?q=vb.net%20OOP
hope this helps
tim
"dancer" <dancer@xxxxxxxxxxxxx> wrote in message
news:O3NQRm4%23HHA.4568@xxxxxxxxxxxxxxxxxxxxxxx
Using ASP.net 1.1 and VB.Net
What is the SIMPLEST way to have 2 subroutines use the same variables (59
of them)? I don't know much about OOP. I need a way that uses very few
concepts until I get a grasp of the process.
.
- Follow-Ups:
- Re: Variables to use in more than one sub
- From: dancer
- Re: Variables to use in more than one sub
- References:
- Variables to use in more than one sub
- From: dancer
- Variables to use in more than one sub
- Prev by Date: Re: SQL Connection
- Next by Date: Re: GridView RowUpdating(...) event. How to get the updated row values?
- Previous by thread: Re: Variables to use in more than one sub
- Next by thread: Re: Variables to use in more than one sub
- Index(es):
Relevant Pages
|