Display Image based on condition in GridView in ASP.Net using C#

Display Image based on condition in GridView in ASP.Net using C#

ASPSnippets

54 года назад

366 Просмотров

Here Mudassar Ahmed Khan has explained, how to display Image based on condition in GridView in ASP.Net using C#.

The ImageUrl property of the Image control is set with an Inline Expression which compares the value of the column and based on the value, the respective Image URL is returned which is used to conditionally display the Image in GridView.

Blog: http://aspsnip.pet/2842
Code: http://aspsnip.pet/2842?code
Demo: http://aspsnip.pet/2842?demo
Q&A: http://aspsnip.pet/2842?ask
Author: http://aspsnip.pet/2842/?author

Follow us on:
Facebook: http://aspsnip.pet/FB
Instagram: http://aspsnip.pet/IG
Twitter: http://aspsnip.pet/TW

Тэги:

#Display #Image #GridView #Condition #ImageUrl #Property #ImageControl #InlineExpression #ASP.Net #C#
Ссылки и html тэги не поддерживаются


Комментарии: