Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
AnswerRe: Run a screensaver from a C# .NET Framework 3.5 2008 Console Application Pin
Jimmanuel14-Nov-08 1:37
Jimmanuel14-Nov-08 1:37 
Questionhow to call javascript from codebehind file asp.net(c#.net) Pin
B.Balachandhar14-Nov-08 0:01
B.Balachandhar14-Nov-08 0:01 
AnswerRe: how to call javascript from codebehind file asp.net(c#.net) Pin
Dave Kreskowiak14-Nov-08 4:06
mveDave Kreskowiak14-Nov-08 4:06 
AnswerRe: how to call javascript from codebehind file asp.net(c#.net) Pin
Wael Al Wirr16-Nov-08 1:24
Wael Al Wirr16-Nov-08 1:24 
QuestionHow to identify Date in a String Pin
K V Sekhar13-Nov-08 23:23
K V Sekhar13-Nov-08 23:23 
AnswerRe: How to identify Date in a String Pin
Simon P Stevens13-Nov-08 23:28
Simon P Stevens13-Nov-08 23:28 
AnswerRe: How to identify Date in a String Pin
sph3rex13-Nov-08 23:58
sph3rex13-Nov-08 23:58 
AnswerRe: How to identify Date in a String Pin
#realJSOP14-Nov-08 5:34
professional#realJSOP14-Nov-08 5:34 
Based on the string you provided...

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;

namespace TestConsole
{
	class Program
	{
		static void Main(string[] args)
		{
			string myString = "hj/dfsks jh/f12/353 @@2df 23/11/2008 kjdl jf\\ioi jr4398 rjeo i";
			string[] parts = myString.Split(' ');
			DateTime dateFound;
			CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
			DateTimeStyles styles = DateTimeStyles.None;

			foreach (string part in parts)
			{
				DateTime date;
				if (DateTime.TryParseExact(part, "dd/MM/yyyy", culture, styles, out date))
				{
					dateFound = date;
					break;
				}
			}

		}
	}
}



"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


QuestionHow to call function with optional parameter in C#? Pin
am 200913-Nov-08 22:46
am 200913-Nov-08 22:46 
AnswerRe: How to call function with optional parameter in C#? Pin
Simon P Stevens13-Nov-08 22:48
Simon P Stevens13-Nov-08 22:48 
GeneralRe: How to call function with optional parameter in C#? Pin
am 200913-Nov-08 23:05
am 200913-Nov-08 23:05 
GeneralRe: How to call function with optional parameter in C#? Pin
Simon P Stevens13-Nov-08 23:16
Simon P Stevens13-Nov-08 23:16 
GeneralRe: How to call function with optional parameter in C#? Pin
Simon P Stevens13-Nov-08 23:24
Simon P Stevens13-Nov-08 23:24 
GeneralRe: How to call function with optional parameter in C#? Pin
leppie13-Nov-08 23:15
leppie13-Nov-08 23:15 
GeneralRe: How to call function with optional parameter in C#? Pin
Simon P Stevens13-Nov-08 23:22
Simon P Stevens13-Nov-08 23:22 
AnswerRe: How to call function with optional parameter in C#? Pin
Wael Al Wirr16-Nov-08 1:28
Wael Al Wirr16-Nov-08 1:28 
QuestionDateTimePicker in C#.net Windows application Pin
Justin Jose13-Nov-08 19:59
Justin Jose13-Nov-08 19:59 
AnswerRe: DateTimePicker in C#.net Windows application Pin
Deflinek13-Nov-08 21:28
Deflinek13-Nov-08 21:28 
GeneralRe: DateTimePicker in C#.net Windows application Pin
Justin Jose14-Nov-08 0:19
Justin Jose14-Nov-08 0:19 
QuestionHow to go particular previous page without losing gridview data in that page [modified] Pin
B.Balachandhar13-Nov-08 19:30
B.Balachandhar13-Nov-08 19:30 
AnswerRe: How to go particular previous page without losing gridview data in that page Pin
Dave Kreskowiak14-Nov-08 4:04
mveDave Kreskowiak14-Nov-08 4:04 
QuestionHow to cancel System from Shutdown using C#.net Pin
K V Sekhar13-Nov-08 19:15
K V Sekhar13-Nov-08 19:15 
AnswerRe: How to cancel System from Shutdown using C#.net Pin
Vimalsoft(Pty) Ltd13-Nov-08 19:43
professionalVimalsoft(Pty) Ltd13-Nov-08 19:43 
GeneralRe: How to cancel System from Shutdown using C#.net Pin
K V Sekhar13-Nov-08 22:15
K V Sekhar13-Nov-08 22:15 
GeneralRe: How to cancel System from Shutdown using C#.net Pin
Dave Kreskowiak14-Nov-08 3:56
mveDave Kreskowiak14-Nov-08 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.