Here Mudassar Ahmed Khan has explained with an example, how to use the Substring function with EVAL function to strip (cut down) length of long string in ASP.Net using C# and VB.Net.
The Substring function will be used with EVAL function with the help of Ternary operators (? :) in ASP.Net with C# while using IIF function in ASP.Net with VB.Net.
This article is applicable to various controls like GridView, ListView, DataList, Repeater, DetailsView, FormView, etc.
↧