帮助在VB中的代码隐藏文件 [英] Help with code-behind file in vb

查看:145
本文介绍了帮助在VB中的代码隐藏文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个朋友那里收到一封电子邮件附件,其中包含一个用VB.NET和ASP.NET编写的Web项目. Login.aspx文件没有代码隐藏文件,该逻辑实现嵌入在ASP.NET代码中.如何为它创建一个单独的代码隐藏文件.

谢谢

解决方案

通过移动所有

 <%//这里的一些代码部分%> 



到文件后面的代码中.您还应该在aspx pages页面指令中写入文件后面的代码名称是什么.

干杯!

-MRB
PS :如果不了解您login.aspx的结构和内容,那么很难给出任何可靠的建议,不是吗? /blockquote>

i received an e-mail attachment from a friend containing a web project written in VB.NET and ASP.NET. The Login.aspx file does not have a code-behind file, the logic implementation is embbeded inside the ASP.NET code. How can i create a separate code-behind file for it.

Thanks

解决方案

By moving all the

<% // some code parts here %>



into your code behind file. You should also write into the aspx pages page directive what the name of your code behind file is.

Cheers!

—MRB
P.S: Without knowing anything of the structure and content of your login.aspx it would be kind of hard to give any solid advice, wouldn''t it?


这篇关于帮助在VB中的代码隐藏文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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