try that :
if(!String.IsNullOrEmpty(StartDate))
{
cmd.Parameters["@StartDate"].Value = StartDate;
}
if(!String.IsNullOrEmpty(EndDate))
{
cmd.Parameters["@EndDate"].Value = EndDate;
}
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |