Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi to all,
Here i want to load uploaded image in dropdown.Please help me for this task.

Code behind:-
<link href="../css/dd.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery.dd.js" type="text/javascript"></script>
<script src="../js/jquery.dd.min.js" type="text/javascript"></script>
<script src="../js/jquery-1.6.1.min.js" type="text/javascript"></script>

design:-

<label> Droddown Name </label>

<asp:DropDownList ID="ddlCountry" runat="server" Width="150px" onselectedindexchanged="ddlCountry_SelectedIndexChanged" AutoPostBack="true">


code behind:-
protected void BindDropDownList()
{
DataSet dqq = objbs.getimageforpo("5");
ddlCountry.DataTextField = "itemName";
ddlCountry.DataValueField = "Imagepath";
ddlCountry.DataSource = dqq;
ddlCountry.DataBind();
// con.Close();
}

in my database

have column name "ITEM" and "IMAGEPATH"
ITEM : name1
IMAGEPATH : ~/Files/220031.jpg

above jpg save like this is it ok to do msdropdown

What I have tried:

and in InsepectElement i got this error i search in net but i cant get any solution
Uncaught ReferenceError: jQuery is not defined
Posted
Comments
Suvendu Shekhar Giri 12-Feb-16 6:10am    
What exactly is the problem you are facing?
Can please spend some more words to explain the issue?
In the mean time check the path to JQuery file is correct.
JOTHI KUMAR Member 10918227 12-Feb-16 6:17am    
if i use header <usc:Header ID="Header" runat="server" /> i wont get images dropdown how to i resolve
JOTHI KUMAR Member 10918227 12-Feb-16 7:23am    
can anybody tell if i use <usc:header> to show header then msdropdown not loaded in that page
Nathan Minier 12-Feb-16 7:37am    
Your first script tag should be :
<script src="../js/jquery-1.6.1.min.js" type="text/javascript"></script>
JOTHI KUMAR Member 10918227 12-Feb-16 7:58am    
sorry i cant get you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900