I am sending image path(as image save in folder) from web service like
[System.Web.Services.WebMethod(), System.Web.Script.Services.ScriptMethodAttribute()]
public static string GetDynamicContent(string contextKey)
{
string constr = "Data Source=Subhasish-PC;Initial Catalog=testabhijit;Integrated Security=SSPI;";
string query = "SELECT ImagePath FROM imagetable WHERE id = " + contextKey;
SqlDataAdapter da = new SqlDataAdapter(query, constr);
DataTable table = new DataTable();
da.Fill(table);
string x = table.Rows[0]["ImagePath"].ToString();
return x.ToString();
}
Now at .aspx page i am taking panel and image control, like below
My problem is how i will bind ImageUrl of image control......so that which path is sending at web service i can access. Thank you.
Loading
Abhijit baruaPosted Nov 18, 2011, 6:01 AM