Pet.aspx
Breed:
Name:
Age:
Gender:
Weight:
Date:
Pet.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
con.Open();
if (!IsPostBack)
{
BindData5();
}
}
protected void BindData5()
{
DataSet ds = new DataSet();
string cmdstr = "Select top 6 * from Sheep";
SqlCommand cmd = new SqlCommand(cmdstr, con);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
adp.Fill(ds);
DataList6.DataSource = ds.Tables[0];
DataList6.DataBind();
}
Above is the codes.. so i have a folder in my project called "petpic"
when i insert picture to database it goes into that folder..
but it doesnt show on the datalist.. what is wrong.. help me

Vipan SharmaRank #1,589 · 999 reputationPosted Oct 13, 2015, 2:54 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Oct 13, 2015, 2:35 AM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted Oct 13, 2015, 2:37 AM EDT
Rajveer Singh69 reputationPosted Oct 13, 2015, 2:50 AM EDT
Rajveer Singh69 reputationPosted Oct 13, 2015, 2:52 AM EDT
Rajveer Singh69 reputationPosted Oct 13, 2015, 2:53 AM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted Oct 13, 2015, 3:15 AM EDT
Rajveer Singh69 reputationPosted Oct 13, 2015, 5:45 AM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted Oct 13, 2015, 8:06 PM EDT