• Login

Snippets


C Sharp - C#

 

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

[Read the rest of this article...]

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

[Read the rest of this article...]

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

[Read the rest of this article...]

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

[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, 1)...

[Read the rest of this article...]

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

[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...]

Functions
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.DateTime....

[Read the rest of this article...]

Date, Time
Posted in: C Sharp - C#
Page 4 of 4First   Previous   1  2  3  [4]  Next   Last