Login  Register 
Home
 
Applications
 
Consulting
 
Design
 
Business Links
 
Support
 
Contact
  Search
Search
 
 SupportKnowledge BaseC Sharp - C#     February 7, 2012  
Snippets

C Sharp - C#

 

06
Converting a textbox money field value ($1,250.00) to a double value . . . double MyDoubleValue = double.Parse(txtMoneyAmount.Text, NumberStyles.Cur...

[Read the rest of this article...]

19
Check to verify if an e-mail address has been previously registered: public bool LookupEmail(string EmailAddress) {  try  {   ...

[Read the rest of this article...]

19
public void NameSplit(string name) {  if (name.Length > 0)  {   // Check for a comma   if (name.IndexOf(",") >...

[Read the rest of this article...]

02
Get a list of states using the DNN Lists public void GetDropDownList-States() {  try  {   // Get State Dropdown from DNN List...

[Read the rest of this article...]

05
string emailAddress = "email1@domain.com;address2@another.com;myaccount@somewhere.com"; string[] valuePair = emailAddress.Split(new char[] { ';' }); ...

[Read the rest of this article...]

Posted in: C Sharp - C#
01
Populate a credit card expiration month DropDownList for (int i = 1; i <= 12; i++) {     DateTime month = new DateTime(2011, i,...

[Read the rest of this article...]

Posted in: C Sharp - C#
29
List files in a folder . . .     private void ListFiles()     {         DirectoryI...

[Read the rest of this article...]

Posted in: C Sharp - C#
27
Public string ReplaceWithBR(string target) {  Regex regex = new Regex(@"(\r\n|\r|\n)+"); string newText = regex.Replace(target, "<br />...

[Read the rest of this article...]

Posted in: C Sharp - C#
19
Get the date and time in C#   vDate = Convert.ToString(System.DateTime.Today.Date.ToShortDateString()); vTime = Convert.ToString(System.DateTi...

[Read the rest of this article...]

Posted in: C Sharp - C#
 

P.O. BOX 2342 ~ BREWSTER, MA 02631
PHONE & FAX: (508) 714-0678

 
 Copyright 2012 by Global Internet Business Solutions   Terms Of Use  Privacy Statement