Results 1 to 12 of 12

Thread: VB.NET with ASP.NET

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Thumbs down VB.NET with ASP.NET

    Hi,

    I made an ASP.NET app using code in vb which shows me how long a computer is been on.

    Now I kept a link of it on my webpage and then I told my friend to try it and he got my computer's up time not his.

    I understand that it needed to be run on client and I think my one runs on server which is my computer and shows my time.

    Is there anyway to specify that that page or what whole app should run on client..? Do I need to do that in VB code...???

    Cheers.

  2. #2

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    * BUMP *

  3. #3
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    ASP.NET is a server side technology, not client-side.

  4. #4

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    Is there anyway that I can use it to get client's computer time..??

  5. #5
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    If you want the current time the clock on the users computer says it is then you need to run something on the client side like JavaScript. If you want to know how long their computer has been on, then make a Windows Forms VB application and have your friend install it. The code needs to run on his machine one way or another.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  6. #6

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    Originally posted by blindlizard
    If you want the current time the clock on the users computer says it is then you need to run something on the client side like JavaScript. If you want to know how long their computer has been on, then make a Windows Forms VB application and have your friend install it. The code needs to run on his machine one way or another.
    I already have a windows application. What I want is a small button on my website which says know how long ur computer is ON and when they click on it they get their computer's on time. I know nothing about JAVA and java scripting.

  7. #7
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    The user would have to install your program on their machines. The code you run in an asp.net application runs on the server. Think of it as the old mainframe environment with a little extra. The code all runs on the server except for some javascript that runs on the users machine. The client side javascripting is limited in what it can do because of security reasons. To do what you want requires compiled code installed on the users machine regardless of what you write it in VB6, VB.net, C++, Java, etc...
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  8. #8

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    You mean kinda active x component and then it will install it on user's machine. Do I have to Digitally Sign it...???

    Cheers.

  9. #9
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    Exactly. I have no idea how to go about it in .Net though as I am just starting to learn it
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  10. #10

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    Originally posted by blindlizard
    Exactly. I have no idea how to go about it in .Net though as I am just starting to learn it
    Which one are you planning to learn. I mean VB, C#, J# or C++

    I am sure that in VB 6 there was an option of making an active x control while we open a new project. I hope it's same in VB.NET though.

    Cheers.

  11. #11
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    I started playing with it about a year ago. I was determined to learn C#. It seemed to be the way everyone was going, but I got to busy on stuff with VB6. I still use it every day, and can get stuff done quickly in it. Just in the last week or so I decided it was time to really dive into .Net. This time I am going VB. I think the learning curve will be less, and hopfully keep my interest long enough to get an actual client project done with it.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  12. #12

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    Originally posted by blindlizard
    I started playing with it about a year ago. I was determined to learn C#. It seemed to be the way everyone was going, but I got to busy on stuff with VB6. I still use it every day, and can get stuff done quickly in it. Just in the last week or so I decided it was time to really dive into .Net. This time I am going VB. I think the learning curve will be less, and hopfully keep my interest long enough to get an actual client project done with it.
    Just to let you know that it's a good choice.

    I have a very close friend who is MCT and trains for MCSD, MCSD.NET in VB and C# both.

    When I asked him that should I keep my MCSD in VB 6 and go for MCSD.NET in VB or C#. His openion was if I already know VB then I should go for VB.NET since VB.NET and C# are pretty much the same and only syntex changes and remaining are same and they both are true object oriented this time so I also decided to go with VB.NET and just started a week ago but I am also stuck with a stuff in VB 6 and may be my boss wants me to learn Delphi.

    Cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width