View Complete Post
OK, what is the problem here?
I do a gridview code that when displaying the information that come from the database is not showing any error at all, but is not displaying the right picture.
The problem, I think, is that the (Eval("....") is not reading the values that are coming from the DataKeysNames. Due to this the right pictures are not displayed. But in another column, just for testing purposes I was able to display the values from DataKeysNames with the Eval. So I do not know what is going on and to make worse browser is not giving me any error.
So, this is the line that is not processing, reading or executing well:
ImageUrl='<%# IIF( (Eval("TUDTIWasItemUpgraded")) = "Yes", string.Format("~/Images/ItemUpgradedTo.gif"), string.Format("~/Images/ItemNoUpgradedYet.gif") ) %>'
And this is the complete code for the GridView
I have a database which stores the path of an image. When the gridview displays, it uses a template field to show the image instead of the path.
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Image") %>' />
The images in this database may be different to eachother, but I want to resize each picture by a scale factor. Ie. Divide the height by 10, and then the width by 10, then set the height and width to these values. How can I do this for each image in the datagrid?
there is an issue
I have a coloumn in a database table in which i am storing the candidates photo in a binary format.
now i have to show these photo in a gridview according to the candidates rollno. i am trying to use the imagefield of a gridview control to display the photo but it is not displaying the photo in a grid view
please help me in this issue
thanks in advance
Dear all; I have a gridview as follows below
now, i would like to add a little picture icon on the leftmost
side of the gridview, that would allow a user to click on it...which
will indirectly bring up a pop-up screen. In the pop-screen, i would
like to add a textbox and a button to it, in which the user will be able
to use to make an update to a field ID in the gridview. All help is
I am using google chorme to test my asp.net application. In that <asp:buttonfield> control with in gridview is not resized. I am able to rotate text using following code.
But I am not able to resize the <asp:buttonField>.Please help me to resolve this.
Thanks in Advance.