asp.net - how to get the size of image that bind dynamically -
i have image likes ,
<img runat="server" id="myimage"/> and load source of image @ start of page ,
clsdb db = new clsdb(); protected void page_load(object sender, eventargs e) { if (!ispostback) { var obj = db.context.images.where(x => x.id == int32.parse(request.querystring["id"])).singleordefault(); myimage.src = obj.imagepath; } } i want original size (by px) of image . how can ?
save them database along url, select , return page. alternatively can use techniques question dimensions via javascript.
Comments
Post a Comment