Storing custom event messages in sql table

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 1
Reputation: robjens is an unknown quantity at this point 
Solved Threads: 0
robjens robjens is offline Offline
Newbie Poster

Storing custom event messages in sql table

 
0
  #1
Aug 1st, 2008
Hi I have a small question. I'm building a website and I would like to make custom message strings that I can later put in a sql database. Is the following idea the correct way to go?

File: SystemMessages.vb

  1. Select Case EventID
  2.  
  3. Case 100
  4. msg = "New user" & username & "added to the database."
  5.  
  6. Case 101
  7. msg = "User " & username & "has been deleted."
  8.  
  9. End Select

I'm guessing in the end I will have about 50 messages. I used to take this approach in VBA but since Im new to VB.NET I'm not sure if this is the right approach. I'm thinking it's an option to store the strings in a XML file but I have no idea how to go about. Please advice!

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 306 | Replies: 0
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC