Wednesday, August 11, 2010

How to display both text and image for next and prev in Gridview in ASP.Net?

Hi, I am using Grid view to display the data using Asp.net. In Page settings, i gave both text and image for next and prev sections. But when i give image paths, only images are displaying but not text. If i wont give image paths then text is appearing. I want both? how can i do. And the same time i want to change the defualt postions of next and prev and i want to display any where in the page. plz respond as early as possible. Thank you. G. SatishHow to display both text and image for next and prev in Gridview in ASP.Net?
When the Mode property is set to the NextPrevious, NextPreviousFirstLast, or NumericFirstLast value you can customize the text of the non-numeric buttons by setting the FirstPageText, PreviousPageText, NextPageText, and LastPageText properties.





As an alternative, you can also display images for the non-numeric buttons by setting the FirstPageImageUrl, PreviousPageImageUrl, NextPageImageUrl, and the LastPageImageUrl properties.





Important Note:When an image property is set, the corresponding text property acts as the alternate text for the image. For example, when the FirstPageImageUrl property is set, the text that is specified by the FirstPageText property is displayed as the alternate text for the image. On browsers that support ToolTips, this text is also displayed as a ToolTip for the corresponding button.

No comments:

Post a Comment