Friday, May 27, 2011

How Select a perticular list item of a dropdownList

if (drpEMailListName.Items.FindByValue(Convert.ToString(dsData.Tables[0].Rows[0]["EmailListID"])) != null)
                    { drpEMailListName.Items.FindByValue(Convert.ToString(dsData.Tables[0].Rows[0]["EmailListID"])).Selected = true; }

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...