GridView在IIS 5.1中不可见 [英] gridview not visible in IIS 5.1

查看:68
本文介绍了GridView在IIS 5.1中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

会员,

我创建了一个简单的asp.net Web应用程序,其中包含一些文本框,标签和gridview,在对其进行调试之后,该Web应用程序在vs2008内置iis中可以正常工作,但是只要我将该应用程序托管在IIS 5.1(Windows XP)中,
网格视图未显示,其他控件(如标签,文本框)可见,但网格视图不可见.我什至尝试在不同的Web浏览器中执行它,但问题仍然存在

所有包含gridview的项目都在发生这种情况,其余控件都可见.
如果有人知道这一点,请帮助我,是否在iis 5.1中还有其他设置要进行

感谢您快速回复
感谢

Members,

I have created a simple asp.net web application, which contains few textboxes,labels and gridview, after debugging it , web application works fine inside vs2008 inbuilt iis, but as soon as i host this application in IIS 5.1 (Windows XP),
grid view is not displayed,other controls like labels,textboxes are visible but grid view is not visible.I even tried it executing in different Web browsers but still the problem persist

This is happening for all the projects which contains gridview,rest of the controls are visible.
If any body knows about this, pls help me out ,is there any more settings to be done in iis 5.1

Quick reply is appreciated
thanks

推荐答案



我不确定这是否行得通,因为我没有IIE 5.1

试试吧:

在您的母版页代码后面:

Hi,

I am not sure if this will work, because I have no IIE 5.1

Just try:

In your master page code behind:

protected void Page_PreRender(object sender, EventArgs e)
{
   HtmlMeta metatag = new HtmlMeta();
   metatag.Attributes.Add("http-equiv", "X-UA-Compatible");
   metatag.Attributes.Add("content", "ID=EmulateIE5");
   metatag.Attributes.Add("content", "ID=EmulateIE7");
   Page.Header.Controls.AddAt(0, metatag);
}



如果有帮助,请不要忘记投票,以便其他人可以考虑作为答案...

此致



Please do not forget to vote if helps, so that others may consider as answer...

Regards,


hi Al Moje,

感谢您的答复,但没有成功
hi Al Moje,

Thanks for replying but it didn''t worked


我自己解决了这个问题,安全性问题,需要正确配置数据库用户,并允许适当的数据库访问
I have solved this myself, problem was with the security , need to configure database users properly, with appopriate allowed database access


这篇关于GridView在IIS 5.1中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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