Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM Interoperability Pin
Christian Graus4-Oct-07 20:41
protectorChristian Graus4-Oct-07 20:41 
GeneralRe: COM Interoperability Pin
KrunalC4-Oct-07 20:48
KrunalC4-Oct-07 20:48 
Questionpicking data(row) from database with cycling form Pin
syibu4-Oct-07 18:16
syibu4-Oct-07 18:16 
QuestionExtending xsd.exe generated classes Pin
Rafferty Uy4-Oct-07 17:59
Rafferty Uy4-Oct-07 17:59 
AnswerRe: Extending xsd.exe generated classes Pin
Rob Philpott4-Oct-07 22:58
Rob Philpott4-Oct-07 22:58 
GeneralRe: Extending xsd.exe generated classes Pin
Rafferty Uy10-Oct-07 23:58
Rafferty Uy10-Oct-07 23:58 
QuestionClickOnce - How to get the list of modules that need to be updated Pin
Michael Sync4-Oct-07 17:14
Michael Sync4-Oct-07 17:14 
Questionplz hepl me to validate date on datagrid template. .....Y no one to help? Pin
P_Elza4-Oct-07 16:52
P_Elza4-Oct-07 16:52 
hi all
plz help me
i am inserting date to the text box on the datagrid template.There is 2 column for that. one receive date and the other due date. due date should be greater than receive date. and the date format is dd/mm/yyyy. how to validate this. since the date format is dd.mm.yyyy, am not able to compare it with different month.plz help me to solve this. am doing this from past 4 days. but didnt end up with a solution
sample code is given below
if(((TextBox)(dgDetailData.Items[total].Cells[7].Controls[1])).Text != "")
{
     try
     {
	DateTime txt=Convert.ToDateTime(((TextBox)(dgDetailData.Items[total].Cells[6].Controls[1])).Text);
	DateTime tst=Convert.ToDateTime(((TextBox)(dgDetailData.Items[total].Cells[7].Controls[1])).Text);
	string date=month+"/"+day+"/"+year;
	if(DateTime.Compare(txt,tst)>0)
        {
		lblmsg.Text="error";
		lbl1.Text=date.ToString();

	} 
else
{	
     lbl1.Text=txt.ToString();					
     InsertParam[9].Value=Production.FORMATYMONDTIME(((TextBox)(dgDetailData.Items[total].Cells[7].Controls[1])).Text);
}
}
catch(Exception err)
{
RegisterStartupScript("startup","<script>window.alert('1.Error:"+err.ToString()+"')</script>");
}
}
else
{
         InsertParam[9].Value=DBNull.Value;
}

In this code the error occuring is if the received date is 01/10/2007 n due date id 30/09/2007, it is inserting value. if it is of same month it is working properly. ie 01/10/2007 n 10/10/2007 it accept and if it is 10/10/2007 n 01/10/2007 it is not accepting.
QuestionCustom Tooltips in C# Pin
Astro the Space Duck4-Oct-07 15:51
Astro the Space Duck4-Oct-07 15:51 
AnswerRe: Custom Tooltips in C# Pin
PIEBALDconsult4-Oct-07 16:22
mvePIEBALDconsult4-Oct-07 16:22 
GeneralRe: Custom Tooltips in C# Pin
Astro the Space Duck4-Oct-07 17:39
Astro the Space Duck4-Oct-07 17:39 
AnswerRe: Custom Tooltips in C# Pin
Scott Dorman4-Oct-07 16:52
professionalScott Dorman4-Oct-07 16:52 
GeneralRe: Custom Tooltips in C# Pin
Astro the Space Duck4-Oct-07 17:40
Astro the Space Duck4-Oct-07 17:40 
AnswerRe: Custom Tooltips in C# Pin
Astro the Space Duck5-Oct-07 6:24
Astro the Space Duck5-Oct-07 6:24 
GeneralRe: Custom Tooltips in C# Pin
Astro the Space Duck5-Oct-07 7:06
Astro the Space Duck5-Oct-07 7:06 
QuestionTextbox C# Pin
OlieColie4-Oct-07 13:47
OlieColie4-Oct-07 13:47 
AnswerRe: Textbox C# Pin
Colin Angus Mackay4-Oct-07 14:06
Colin Angus Mackay4-Oct-07 14:06 
AnswerRe: Textbox C# Pin
Christian Graus4-Oct-07 14:37
protectorChristian Graus4-Oct-07 14:37 
AnswerRe: Textbox C# Pin
Anthony Mushrow4-Oct-07 14:52
professionalAnthony Mushrow4-Oct-07 14:52 
GeneralRe: Textbox C# Pin
PIEBALDconsult4-Oct-07 15:14
mvePIEBALDconsult4-Oct-07 15:14 
AnswerRe: Textbox C# Pin
Malcolm Smart4-Oct-07 20:53
Malcolm Smart4-Oct-07 20:53 
AnswerRe: Textbox C# Pin
taranjotk4-Oct-07 21:30
taranjotk4-Oct-07 21:30 
QuestionC# Textbox Pin
OlieColie4-Oct-07 13:34
OlieColie4-Oct-07 13:34 
AnswerRe: C# Textbox Pin
Luc Pattyn4-Oct-07 13:37
sitebuilderLuc Pattyn4-Oct-07 13:37 
AnswerRe: C# Textbox Pin
taranjotk4-Oct-07 21:32
taranjotk4-Oct-07 21:32 

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.