请问在DATAGRID里的某一个字段值,我如何使用自己写的函试把结果值传给此一字段,因为我这个DATAGRID是由数据库产生有5个字段数据,但有一个字段是加密后的数值,我想在DATAGRID中也显示他的明文数据,却不知如何将解密后的数据使用在DATAGRID里,请高手帮帮忙….
解决方案 »
- jquery的 ajax方法 一直提交不到后台去
- 未把对象引用设置到实例
- .net2005 正则验证控件 为什么不像2003中那样即时反应 而是点提交才提示错误 改成正确的 错误提示也不消失
- 如何调用某网页的部分内容?
- Response.Write("<script language=javascript>alert(strSql)</script>")在strSql中有单引号,结果导致弹不出该怎么办?
- file field控件怎么用啊?
- 一个简单问题
- asp.net 自定义控件 如何控制设计时的显示样式
- 关于不安全字符 求助 高分
- 假如要添加的记录在表中已经存在,请问怎么返回"该记录已存在"的错误信息!?(三层结构)
- 请问:怎样用一个div将这个datagrid"括起来",通过移动div的滚动条,来上下浏览datagrid的所有内容
- 如何获得页面所有Session信息
<ItemTemplate>
<asp:Label runat="server" Text='<%# GetValue(((DataRowView)Container.DataItem)["menu_desc"].ToString()) %>' ID="Label2">
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
cs中protected string GetValue(string menudesc)进行转换处理
<HeaderStyle Wrap="False" Width="10%"></HeaderStyle>
<ItemTemplate>
<asp:Label Runat=server Text = '<%# GetString(DataBinder.Eval(Container, "DataItem.ioflag").ToString())%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>