title: Shared Functions in VB.Net
body: <p>I have to send emails when a person receives a personal message on my website and for that I use a StringBuilder to create the HTML markup of the email.</p>
  
  <p>also since it is required at many other places as well I have made a Shared Function (I am using VB.NET). now my only concern is that since shared functions are  shared among all objects and maybe asp.net sessions, can it be possible that before one person email is being formed and another person access the same function, it would cause the data in the stringbuilder to be overwritten..</p>
  
  <p>Currently my site doesn't have many users but can this become an issue in the future... Please advise me on this... Is there any better way or standard procedure to follow when using shared functions?</p>
  
  <p>Also at one time I made the mistake of using a shared connection object and it would cause close if many people were to access it.</p>