托管服务器没有更新我的aspx.cs文件数据 [英] hosting server is not updating my aspx.cs file data

查看:78
本文介绍了托管服务器没有更新我的aspx.cs文件数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨frnds !!!



我是asp.net的新手,我刚刚在asp.net上创建了我的网站,并在服务器上托管了它工作正常...但我的问题是,当我更新aspx文件中的任何东西时它会很快更新,但是当我想更新我的aspx.cs文件时,没有数据更新,如果我在本地系统上运行相同的网站它运行正常,代码或设计中的每个更新都在本地sercer上成功...请告诉我这个问题的原因!!!

Hi frnds!!!

I am new in asp.net and I have just created my website on asp.net and also hosted it on server and it is working fine...but my problem is that, when I update any thing in aspx file it is updated very quickly but when I want to update my aspx.cs file then no data is updated and if I run same website on local system it is working fine and every update either in code or in designing is successful on local sercer... kindly tell me reason of this problem!!!

推荐答案

Shridhar Gowda 是对的。当您进行代码更改时,只需构建项目并仅传输 bin 文件夹中的 dlls ,这些文件夹是由Build更新。



这样做的一个非常简单的方法是使用 Visual Studio 中的发布功能。当您点击发布时,它会为您提供当前更新的文件或dll。您可以将其保存到文件夹,然后通过FTP客户端手动传输或直接发布到FTP文件夹。



参考 - 如何:在Visual Studio中使用一键式发布部署Web项目 [ ^ ]。
Shridhar Gowda is correct. When you make a code change, just build the Project and transfer only the dlls present in the bin folder, which are updated by the Build.

One very easy of doing this is to use Publish Feature from Visual Studio. When you hit Publish, it would give you the files or dlls that are currently updated. You can save it to a Folder and then Transfer manually through the FTP Client or Publish directly to the FTP Folders.

Refer - How to: Deploy a Web Project Using One-Click Publish in Visual Studio[^].


这篇关于托管服务器没有更新我的aspx.cs文件数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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