How to bind Dropdownlist with Image in ASP NET Using JQuery

preview_player
Показать описание
In this video :
1.First to create a database table with two column.
2. First item of dropdownlist is country name and second column of dropdown is country flag.
3. Before the dropdown item put the image before the item of dropdown.
4.Do this task using Jquery.
Рекомендации по теме
Комментарии
Автор

Hello Narendra,

I really like your video, but I am trying to implement that on my website it does not work. I follow every step and downloaded the dd script as well the 1.6.1 js.


Here is backend code, do you have any idea why it does not work?

string qry = @"SELECT [ImgID], convert(varchar, [ImgID]) +'-'+ [ImgPath] as ViewField
, [ImgPath]
FROM [HSMDB].[dbo].[STAFFIMAGES]
where IsDeleted ='false'";
c.Open();
SqlDataAdapter ad = new SqlDataAdapter(qry, c);
DataSet ds = new DataSet();
c.Close();

ad.Fill(ds);

ddlDeleteImages.DataTextField = "ViewField";
= "ImgPath";
ddlDeleteImages.DataSource = ds;
ddlDeleteImages.DataBind();

Hamkin
Автор

where is the definition of the function msDropDown ??

informa