为什么我找不到带.Aspx的.Aspx.Cs文件

编程入门 行业动态 更新时间:2024-10-19 08:47:52
本文介绍了为什么我找不到带.Aspx的.Aspx.Cs文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

朋友我正在使用visual studio开发Web应用程序,当我将我的html网站导入我的asp visual studio解决方案并将扩展名从.html转换为.aspx时,现在没有文件(default.aspx.cs)使用default.aspx我需要(defaul.aspx.cs)文件来编写数据库等代码 请提前帮助我!

friends i am using visual studio to develop web applications when i import my html website into my asp visual studio solution and convert the extension from .html to .aspx now there is no file of (default.aspx.cs) with default.aspx i need for (defaul.aspx.cs) file to write code for database etc please help me thanks in advance !

推荐答案

只需将代码文件添加到项目中即可。如果您希望它正确地嵌套在解决方案资源管理器中,请编辑.csproj文件,如: Just add a code code file to your project. If you want it to appear nested in Solution Explorer correctly, edit the .csproj file like: <Compile Include="Global.asax.cs"> <DependentUpon>Global.asax</DependentUpon> </Compile>

参考: HTTP:// stackoverf low/questions/9770482/create-code-behind-file-after-aspx-has-been-created [ ^ ]

更多推荐

为什么我找不到带.Aspx的.Aspx.Cs文件

本文发布于:2023-11-10 16:11:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575849.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我找不到   文件   Aspx   Cs

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!