Click here to Skip to main content
15,920,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SMS Sender ID Problem Pin
yogesh_kumar_agarwal5-Jan-10 0:59
yogesh_kumar_agarwal5-Jan-10 0:59 
GeneralRe: SMS Sender ID Problem Pin
sashidhar5-Jan-10 1:03
sashidhar5-Jan-10 1:03 
QuestionASP.net Forum Pin
jojoba20104-Jan-10 21:57
jojoba20104-Jan-10 21:57 
AnswerRe: ASP.net Forum Pin
saini arun5-Jan-10 0:55
saini arun5-Jan-10 0:55 
QuestionDataTable Select Query Pin
Mugdha_Aditya4-Jan-10 21:53
Mugdha_Aditya4-Jan-10 21:53 
AnswerRe: DataTable Select Query Pin
Mugdha_Aditya4-Jan-10 22:55
Mugdha_Aditya4-Jan-10 22:55 
AnswerRe: DataTable Select Query Pin
Abhishek Sur5-Jan-10 2:27
professionalAbhishek Sur5-Jan-10 2:27 
AnswerRe: DataTable Select Query Pin
Kaushal Arora5-Jan-10 20:44
Kaushal Arora5-Jan-10 20:44 
Hi,

I am doing this thing using the method:

<br />
for (int CountHoliday = 0; CountHoliday < 3; CountHoliday++)<br />
{<br />
string sqlFilter = "Holiday Day = '" + Convert.ToDateTime(Al[CountHoliday]).Day + "' and Holiday Month='" + Convert.ToDateTime(Al[CountHoliday]).Month + "' and Holiday Year='" + Convert.ToDateTime(Al[CountHoliday]).Year + "'";<br />
DataRow[] dtRow = dsHoliday.Tables[0].Select(sqlFilter);<br />
if (dtRow[0].ItemArray[4].ToString() != "")<br />
{<br />
iCounter++;<br />
}<br />
}<br />
<br />
You have to get the Day, Month and Year in the DataTable as columns and use the filter in that. If you will be using the full datetime value for comparison it would not help you as it throws the error in some cases. Also try to name the columns without space like "Holiday Day" or "Holiday Date" should be "HolidayDay" or "HolidayDate" or you can use Underscore in place of Space. <br />
<br />


Regards,
Kaushal Arora
AnswerRe: DataTable Select Query Pin
Jeneesh K. Velayudhan6-Jan-10 1:08
Jeneesh K. Velayudhan6-Jan-10 1:08 
QuestionGetting the URL from redirect variable Pin
meeram3954-Jan-10 20:48
meeram3954-Jan-10 20:48 
AnswerRe: Getting the URL from redirect variable Pin
Abhishek Sur4-Jan-10 21:05
professionalAbhishek Sur4-Jan-10 21:05 
GeneralRe: Getting the URL from redirect variable Pin
meeram3954-Jan-10 22:18
meeram3954-Jan-10 22:18 
AnswerRe: Getting the URL from redirect variable Pin
sashidhar5-Jan-10 0:14
sashidhar5-Jan-10 0:14 
GeneralRe: Getting the URL from redirect variable Pin
meeram3955-Jan-10 0:48
meeram3955-Jan-10 0:48 
QuestionEncrypt web.config file Pin
Rock Star.4-Jan-10 20:45
Rock Star.4-Jan-10 20:45 
AnswerRe: Encrypt web.config file Pin
Abhishek Sur4-Jan-10 21:12
professionalAbhishek Sur4-Jan-10 21:12 
GeneralRe: Encrypt web.config file Pin
Rock Star.4-Jan-10 21:20
Rock Star.4-Jan-10 21:20 
AnswerRe: Encrypt web.config file Pin
carlecomm6-Jan-10 19:05
carlecomm6-Jan-10 19:05 
Questionsession Pin
baselanfouqa4-Jan-10 19:53
baselanfouqa4-Jan-10 19:53 
AnswerRe: session Pin
rakeshs3124-Jan-10 19:59
rakeshs3124-Jan-10 19:59 
GeneralRe: session Pin
baselanfouqa4-Jan-10 20:02
baselanfouqa4-Jan-10 20:02 
AnswerRe: session Pin
nagendrathecoder4-Jan-10 20:03
nagendrathecoder4-Jan-10 20:03 
GeneralRe: session Pin
baselanfouqa4-Jan-10 20:04
baselanfouqa4-Jan-10 20:04 
GeneralRe: session Pin
Abhijit Jana4-Jan-10 20:10
professionalAbhijit Jana4-Jan-10 20:10 
GeneralRe: session Pin
nagendrathecoder4-Jan-10 20:11
nagendrathecoder4-Jan-10 20:11 

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.