为什么所有女性 [英] Why all Female

查看:75
本文介绍了为什么所有女性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我将字段转换为模板列,然后使用tmeplate表达式

,如下所示:


< %#(DataBinder.Eval(Container," DataItem.SexID"))==" 1" ? 男性:女性%>


为什么价值总是等于女性

(此方法来自Rick Strahl)


I convert the field to a template column and then use a tmeplate expression
like this:

<%# (DataBinder.Eval(Container, "DataItem.SexID"))=="1" ? "Male":"Female"%>

Why the value always equal Female
(This method is from Rick Strahl)

推荐答案

因为女性优于男性:)

" ad" < ad@wfes.tcc.edu.tw>在消息中写道

news:ek ************** @ TK2MSFTNGP12.phx.gbl ...
Because the female is superior to the male :)
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:ek**************@TK2MSFTNGP12.phx.gbl...

我将字段转换为模板列然后使用tmeplate
表达式如下:

<%#(DataBinder.Eval(Container," DataItem.SexID")) )==" 1 QUOT; ?
男性:女性%>

为什么价值总是等于女性

(此方法来自Rick Strahl)

I convert the field to a template column and then use a tmeplate
expression
like this:

<%# (DataBinder.Eval(Container, "DataItem.SexID"))=="1" ?
"Male":"Female"%>

Why the value always equal Female
(This method is from Rick Strahl)



因为女性优于男性:)

" ad" < ad@wfes.tcc.edu.tw>在消息中写道

news:ek ************** @ TK2MSFTNGP12.phx.gbl ...
Because the female is superior to the male :)
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:ek**************@TK2MSFTNGP12.phx.gbl...

我将字段转换为模板列然后使用tmeplate
表达式如下:

<%#(DataBinder.Eval(Container," DataItem.SexID")) )==" 1 QUOT; ?
男性:女性%>

为什么价值总是等于女性

(此方法来自Rick Strahl)

I convert the field to a template column and then use a tmeplate
expression
like this:

<%# (DataBinder.Eval(Container, "DataItem.SexID"))=="1" ?
"Male":"Female"%>

Why the value always equal Female
(This method is from Rick Strahl)



非常有趣,但你的回复没有帮助OP。也许你可以通过发一个可以帮助OP的''答案'来证明你的断言?

-

OHM(Terry Burns) )

http://TrainingOn.net




" Stephany Young" <没有人@本地>在留言中写道

news:ul **************** @ TK2MSFTNGP12.phx.gbl ...
Very funny, however your reply did nothing to help the OP. Perhaps you can
demostrate your assertion by posting an ''Answer'' which may help the OP?
--
OHM ( Terry Burns )

http://TrainingOn.net



"Stephany Young" <noone@localhost> wrote in message
news:ul****************@TK2MSFTNGP12.phx.gbl...
因为女性优于男性:)

" ad" < ad@wfes.tcc.edu.tw>在消息中写道
新闻:ek ************** @ TK2MSFTNGP12.phx.gbl ...
Because the female is superior to the male :)
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:ek**************@TK2MSFTNGP12.phx.gbl...

我将字段转换为一个模板列,然后使用tmeplate
这样的表达式:

<%#(DataBinder.Eval(Container," DataItem.SexID"))==" 1 QUOT; ?
男性:女性%>

为什么价值总是等于女性

(此方法来自Rick Strahl)

I convert the field to a template column and then use a tmeplate
expression
like this:

<%# (DataBinder.Eval(Container, "DataItem.SexID"))=="1" ?
"Male":"Female"%>

Why the value always equal Female
(This method is from Rick Strahl)




这篇关于为什么所有女性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆