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

C#

 
QuestionRe: Multicast Delegates Event Driven Architecture is there a way? Pin
led mike6-Aug-08 8:53
led mike6-Aug-08 8:53 
AnswerRe: Multicast Delegates Event Driven Architecture is there a way? Pin
danielgmx6-Aug-08 9:05
danielgmx6-Aug-08 9:05 
GeneralRe: Multicast Delegates Event Driven Architecture is there a way? Pin
led mike7-Aug-08 5:31
led mike7-Aug-08 5:31 
AnswerRe: Multicast Delegates Event Driven Architecture is there a way? Pin
Joe Woodbury6-Aug-08 10:36
professionalJoe Woodbury6-Aug-08 10:36 
GeneralRe: Multicast Delegates Event Driven Architecture is there a way? Pin
danielgmx6-Aug-08 11:50
danielgmx6-Aug-08 11:50 
QuestionC# & webservice on Multiple servers Pin
balu123456-Aug-08 6:26
balu123456-Aug-08 6:26 
AnswerRe: CP Member Ignore - Repost Pin
Abhijit Jana6-Aug-08 17:59
professionalAbhijit Jana6-Aug-08 17:59 
QuestionProblem with Date Validation Pin
Verghese6-Aug-08 6:16
Verghese6-Aug-08 6:16 
Below pasted is the piece of code where I want to display records based on the date range.

Let's say I have a startDate(01/15/2007) and an endDate(01/15/2008):

Can anyone give me some inputs as how to handle date validation in this code. I mean the place where I'm concatenating those 4 columns and getting a single date column row by row, I want to have this date validation. If it falls within this range, it shud add to the DataSet as a new row or else no.


DataSet newPDS = new DataSet();
DataRow row = new DataRow();


<code>//ADM_DATE is DateTime field in DataSet</code>

<code>//Checking whether column is already created or not</code>
if (newPDS.Tables[0].Columns["ADM_DATE"]== null) 

{					
	DataColumn dCol = new DataColumn(newPDS.Tables[0].Columns.Add("ADM_DATE", typeof(DateTime), "").ToString());
}
				

for(Int32 i = 0; i < newPDS.Tables[0].Rows.Count; i++)
{
	row = newPDS.Tables[0].Rows[i];	
        <code>//Concatenating 4 columns and filling up a date column (ADM_DATE) row by row</code>
	row["ADM_DATE"] = row["CADMMM"] + "/" + row["CADMDD"] + "/" + row["CADMHH"] + row["CADMYY"];
}


Any help would be appreciated. Thanking you in anticipation.

modified on Wednesday, August 6, 2008 3:34 PM

AnswerRe: Problem with Date Validation Pin
Guffa6-Aug-08 10:04
Guffa6-Aug-08 10:04 
GeneralRe: Problem with Date Validation Pin
Verghese6-Aug-08 10:54
Verghese6-Aug-08 10:54 
GeneralRe: Problem with Date Validation Pin
Kjetil Svendsen6-Aug-08 23:18
Kjetil Svendsen6-Aug-08 23:18 
Question.NET DLL fails when called from Excel by restricted user Pin
Vikram A Punathambekar6-Aug-08 5:43
Vikram A Punathambekar6-Aug-08 5:43 
AnswerRe: .NET DLL fails when called from Excel by restricted user Pin
vikas amin6-Aug-08 10:55
vikas amin6-Aug-08 10:55 
QuestionGetting bitmap data from System.Windows.Shapes object Pin
AmitDey6-Aug-08 5:43
AmitDey6-Aug-08 5:43 
AnswerRe: Getting bitmap data from System.Windows.Shapes object Pin
Mark Salsbery6-Aug-08 6:10
Mark Salsbery6-Aug-08 6:10 
GeneralRe: Getting bitmap data from System.Windows.Shapes object Pin
AmitDey6-Aug-08 6:30
AmitDey6-Aug-08 6:30 
GeneralRe: Getting bitmap data from System.Windows.Shapes object Pin
Mark Salsbery6-Aug-08 6:40
Mark Salsbery6-Aug-08 6:40 
GeneralRe: Getting bitmap data from System.Windows.Shapes object Pin
AmitDey6-Aug-08 6:47
AmitDey6-Aug-08 6:47 
GeneralRe: Getting bitmap data from System.Windows.Shapes object Pin
Mark Salsbery6-Aug-08 7:07
Mark Salsbery6-Aug-08 7:07 
GeneralRe: Getting bitmap data from System.Windows.Shapes object Pin
AmitDey6-Aug-08 7:17
AmitDey6-Aug-08 7:17 
GeneralRe: Getting bitmap data from System.Windows.Shapes object Pin
led mike6-Aug-08 7:26
led mike6-Aug-08 7:26 
QuestionAccessViolationException - mciGetErrorString - DllImport("winmm.dll") [modified] Pin
Steven D. Foster6-Aug-08 5:17
Steven D. Foster6-Aug-08 5:17 
AnswerRe: AccessViolationException - mciGetErrorString - DllImport("winmm.dll") Pin
Steven D. Foster6-Aug-08 5:56
Steven D. Foster6-Aug-08 5:56 
GeneralRe: AccessViolationException - mciGetErrorString - DllImport("winmm.dll") Pin
Jimmanuel6-Aug-08 9:16
Jimmanuel6-Aug-08 9:16 
QuestionRe: AccessViolationException - mciGetErrorString - DllImport("winmm.dll") Pin
Steven D. Foster6-Aug-08 10:03
Steven D. Foster6-Aug-08 10:03 

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.