Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

if else if statement set text of eval field

$
0
0

Hi,

I have repeater control  , I have bind it with datatable

there I

  <b><span class="type_cls"><%# Eval("usertype") %></span></b>

I want to place if  ,elseif statement here

if usertype=1 ---> it should show "admin"

else if usertype=2 it should show" dept head'

else " team mate"

like this

how can I done this using jquery or javascript or client side


Viewing all articles
Browse latest Browse all 7589

Trending Articles