Re: Variables to use in more than one sub

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.




.



Relevant Pages

  • Re: Please help!!! OOP and ASP.Net Tutorial (desperate search)
    ... Dave has received so far, and I'm afraid my compassion for Big Dave compels ... false impression that ASP.net and OOP are un-related. ... which is the most fully-object-oriented programming ... Perhaps that is why you're having trouble finding tutorials that ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Variables to use in more than one sub
    ... The thing to keep in mind is small victories. ... I am following a tutorial that is making OOP make sense to me, ... is in a dll file. ... the asp.net quickstart tutorials are a great way to learn about ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Variables to use in more than one sub
    ... I am following a tutorial that is making OOP make sense to me, ... Is there any way to see what is in that dll file? ... the syntax behind OOP programming with .net. ... the asp.net quickstart tutorials are a great way to learn about ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Variables to use in more than one sub
    ... if i were you i would download Visual Web Developer (free version of Visual Studio) and then you don't need to worry about command line syntax etc. ... "I am very impressed by your tutorial as it finally allowed me to grasp the syntax behind OOP programming with .net. ... No luck. ... the asp.net quickstart tutorials are a great way to learn about asp.net. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Variables to use in more than one sub
    ... to learn the program AND the oop concept. ... I am following a tutorial that is making OOP make sense to me, ... there any way to see what is in that dll file? ... the asp.net quickstart tutorials are a great way to learn about ...
    (microsoft.public.dotnet.framework.aspnet)