不想在ASP.NET的Gridview中使用&nbsp [英] Dont want &nbsp in Gridview in asp.net

查看:90
本文介绍了不想在ASP.NET的Gridview中使用&nbsp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当时在asp.net中有一个gridview,当时我将其绑定到列show的null值中.在gridview中.

我如何避免在asp.net中使用这些值

请回复我...!

I have a gridview in asp.net, when i bind that on that time null values from column show''s   in gridview.

How can i avoid these values in asp.net

Please reply me...!

推荐答案


您必须使用sql的isnull方法处理空值
例如
从tablname中选择isull(colName,'''')

现在,如果列包含空值,则返回空字符串

祝你好运

you have to handle null values using isnull method of sql
e.g
select isnull(colName,'''') from tablname

now if column contains null value then it return empty string

Best Luck


这篇关于不想在ASP.NET的Gridview中使用&nbsp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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