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 SharmaPosted Oct 13, 2015, 6:54 AM
Vipan SharmaPosted Oct 14, 2015, 12:06 AM
Rajveer SinghPosted Oct 13, 2015, 9:45 AM
Vipan SharmaPosted Oct 13, 2015, 7:15 AM
Rajveer SinghPosted Oct 13, 2015, 6:53 AM
Rajveer SinghPosted Oct 13, 2015, 6:52 AM
Rajveer SinghPosted Oct 13, 2015, 6:50 AM
Vipan SharmaPosted Oct 13, 2015, 6:37 AM
Rajeesh MenothPosted Oct 13, 2015, 6:35 AM