i have an image tag like
\' />
and in
Why do all the databinding stuff just try the below.
protected void Page_Load(object sender,EventArgs e)
{
if(!IsPostBack)
{
ImgProduct.ImageUrl = FormatImageUrl("10");
}
}
protected string FormatImageUrl(string s)
{
return "image"+s;
}
I don't understand, what difference does it make for you to databind it or write the code on code behind. Saving a few key strokes?? It would be rather very easy to also watch the Object on Codebehind rather than the Data Binding expression model