}
if(!(TextBox1.Text==""))
{
strwhere=strwhere+"pre_start_date>='"+TextBox1.Text+"' and ";
}
if(!(TextBox2.Text==""))
{
strwhere=strwhere+"pre_start_date<='"+TextBox2.Text+"' and ";
}
if(!(username.Items[username.SelectedIndex].Text==""))
{
strwhere=strwhere+"incept_man like '%"+username.Items[username.SelectedIndex].Text.ToString()+"%' and ";
}
else
{
strwhere=strwhere+"(incept_man like '%' or incept_man is null) and ";
strwhere=strwhere.Trim();
}
if(!(tasktype.Items[tasktype.SelectedIndex].Value==""))
{
strwhere=strwhere+" type='"+tasktype.Items[tasktype.SelectedIndex].Value+"' and ";