Help Please

barski

Well-known member
Joined
Apr 7, 2002
Messages
239
Location
Tennessee
Im slowly transistioning from vb6 to .net. During this transistion Ive started developing webforms and so far I love the changes. However I keep running into the same issues again and again. Here are a few that I think are simple but I havent figured out the right way to write it.


1. In webforms what is the equivalent of the isnull function in vb6

2. In datasets is there a way to determine what row you are looking at

3. In webforms how do you store a variable so you have access to it on all forms. In vb6 I would created a module declare a variable and it was there until I closed the application.


Ive come up with workarounds for all the above problems but there has to be a better way. any help would be greatly appreciated
 
1. If Object = Nothing Then Object is null

2. DataSets dont have rows. DataTables do. Either way, the current row youre looking is the current row youre looking at. If youre trying to determine the row number add a counter to your row enumeration.

3. If the value is constant store it in the applications web.config file. If it is variable, use a shared method of a class, imported to each page, to add, change and delete values to a database, session object or cookie.
 
Back
Top