Thursday, May 26, 2011

Check drop down list is that value is present or not in list in c#

if (ddlUserType.Items.FindByValue("someValue") != null)   
{    
ddlUserType.SelectedValue = "someValue";     
}  

No comments:

SQL Optimization

  SQL Optimization  1. Add where on your query  2. If you remove some data after the data return then remove the remove condition in the sel...