asp.net的GridView吐出无效的HTML [英] asp.net GridView spitting out invalid HTML

查看:137
本文介绍了asp.net的GridView吐出无效的HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否有一种方法来删除无效的HTML code。该GridView控件吐出一旦创建它?

I was wondering if there was a way to remove the invalid HTML code that the GridView is spitting out once it's created?

<table cellspacing="0" rules="all"

我想删除将cellspacing和规则属性。

I'd like to remove the cellspacing and rules attribute.

感谢您!

推荐答案

您可以通过改变GridView的网格线的属性的设置,删除该规则=所有。

you can remove the rules="all" by changing the settings of GridLines property of the GridView.

感谢您

这篇关于asp.net的GridView吐出无效的HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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