Tuesday, May 1, 2012

DropDownList value set By FindBy ASP.NET Example

In asp.net there are two ways to FindBy DropdownList. 1.FindByValue and 2.FindByText In FindByValue if more then one List Item text is same then it is working Properly also.
ddlDropDownList.Items.FindByValue(strSearchText).Selected = true;
In FindByText ASP.NET In FindByText if more then one List Item text is same then it is not working Properly also.
ddlDropDownList.Items.FindByText(strSearchText).Selected = true;
There is also other way to DropDownList Select Value through Text but this is Best Way. That's why I choose it.

Friday, March 9, 2012

unable to find the requested .net framework data provider. it may not be installed. sql ce 4.0

unable to find the requested .net framework data provider.
it may not be installed. sql ce 4.0
this error with asp.net mvc music store example.
you have install
in web.config


Monday, March 5, 2012

File Type Filter FileUpload Control

File Upload File Type Filter With ASP.NET
File Upload File Type Filter is not available in asp.net.
There is one way using that we can achieve our goal that is
File Dialogue of Window Desktop Application can filter type but is working only one window7, window xp or
other Microsoft OS only that is not working with Mac,Linux based system for we need to study their file system.  so that is not easy way.