Tag Archives: image

Customize image to fit into the page

Sometimes the image width is bigger than the page. So to set it in pagelayout , alter the attributr size like this: style=”width: 890px;” will control this. <asp:Image ID=”Banner” runat=”server” ImageUrl=”~/images/bannar.jpg”                             style=”width: 890px; vertical-align:middle; text-align:center;” /> The div width … Continue reading

Posted in ASP.NET, Programming | Tagged , , , , | Leave a comment

ExecuteReader vs ExecuteNonQuery vs ExecuteScalar

ExecuteReader() For SELECT statement ExecuteNonQuery() For INSERT , UPDATE and DELETE Not for SELECT statement. ExecuteScalar() For images   Ahmed.

Posted in Comparison, Databases, Programming, SQL-Server, VB.NET | Tagged , , , , , , , , , | Leave a comment

background-image: url

If your image is in folder project\images and your css file is in project\css , then in css file the path should be : background-image: url (‘../images/bg.jpg’); Why ../ ? Because image folder is parallel to css folder, and you … Continue reading

Posted in CSS, HTML, Programming | Tagged , , , | Leave a comment