• Archives

    » VB
Nov
3

Simple Ajax with .NET

Adding Ajax to an application is simple and easy! Ajax is a powerful tool and can make your application look and feel great!
First let’s start by adding a “Script Manager” to the page, now we only have to add this once so it’s best placed in your Master page. The Script Manager needs to be [...]

Oct
23

Web User Controls

Using the user controls may be one of the best moves you will make when developing an application in .NET. The user control will allow you to separate your reusable logic and keep it in one place. For many developers this is a great thing! Many of us have to re-create items over and over, [...]

Oct
18

Select Case in VB

For the few still wondering how to do a Select case in VB here you go! Below is your basic select case in a function returning a true or false boolean.

Public Function CheckStatus(ByVal Status As Boolean) As Boolean
Select Case Status
[...]

Oct
6

Functions in VB

Something that i picked up on was that functions in VB and functions in PHP are a lot alike! This is great news, VB does not have the huge learning curve when stepping in from PHP.
Below i have created a simple function inside if a class:

Public Class Core
Public Function HelloWorld(AVar)
[...]

Sep
26

InsertCommand .NET Date

So, i have been messing with .NET more and more. Just wanted to make a note just in case there is another developer out there looking for this solution. So the problem was i needed to place a date into the database but had no idea. So in the “asp:SqlDataSource” i edited the InsertCommand.

InsertCommand=”INSERT INTO [...]