how to set image extension dynamically either .png or .jpg because i have only image name in my database without extension in asp.net and in my folder there are .png and .jpg both files are available?
------------------------------------------------------------------------
the code which i am trying to set but if the particular file extension is not matched then how can i change .png to .jpg.
image.Src = "../image_data/" + dr["DesignNo"].ToString()+".png";


Altaf AnsariRank #1,045 · 1.8K reputationPosted Dec 13, 2017, 8:11 PM EST
Sk Jha108 reputationPosted Dec 14, 2017, 6:22 AM EST