预编译代码有问题吗? [英] Is it the problem with precompiled code?

查看:44
本文介绍了预编译代码有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好...
我正在使用Asp.net 2.0.
我遇到的问题是,

1.图像问题
首先,我已经在网页上添加了图片...但是即使删除了该图片并添加了一个具有相同名称的新图片,它仍然只显示第一张图片.

2.代码问题
另一个问题是,即使我用dataview编写了正确的代码以将数据从数据库填充到文本框,下拉列表等中,有时也不会被填充...但是如果我一次又一次地构建解决方案,就会得到预期的输出用相同的代码.

简而言之,我的网页第一次或第二次都没有得到更新的更改.

我的网站出了什么问题?

请帮帮我...
预先谢谢您...

Hi there...
I''m working on Asp.net 2.0.
The problem I meet is,

1.Problem with Images
First I''ve added an image to my webpage...but even after I deleted that image and added a new image with the same name it still shows the first image only.

2.Problem with code
Another problem is that,even though I write the correct code with dataview to fill data into the textboxes,dropdownlists etc from database it doesn''t get filled sometimes...But if I build my solution again and again I get the expected output with the same code.

In short my web pages don''t get the updated changes at the first or second time...

What is wrong with my website???

Please help me...
Thank You in advance...

推荐答案

清理您的解决方案,清除缓存并运行该应用程序.

如果托管在IIS上,请在更改后重新启动.
如果使用ASP.NET Web服务器,则关闭/停止用于托管网站的Webdev服务器. (运行该应用程序时,您可以在时钟附近左下角的任务栏中找到它.)

通常,问题是使用旧的编译文件进行缓存.清除更改后的内容,然后尝试.
Clean your solution, clear your cache and run the application.

If hosted on IIS, then restart it after the change.
If using ASP.NET webserver, then close/stop the webdevserver that is used to host your website. (You can find that in your task bar at bottom left near clock when running the application.)

In general the issue is of caching, using the old compiled files. Try after clearing those after the change.


这篇关于预编译代码有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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