Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm slowly transistioning from vb6 to .net. During this transistion I've 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 haven't 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.

 

 

I've come up with workarounds for all the above problems but there has to be a better way. any help would be greatly appreciated

  • *Gurus*
Posted

1. If Object = Nothing Then 'Object is null

 

2. DataSets don't have rows. DataTables do. Either way, the current row you're looking is the current row you're looking at. If you're trying to determine the row number add a counter to your row enumeration.

 

3. If the value is constant store it in the application's 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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...