对于asp.net应用程序,我没有在项目背后使用任何vb代码 [英] for asp.net application i didn't use any vb code behind the project

查看:55
本文介绍了对于asp.net应用程序,我没有在项目背后使用任何vb代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我开发asp.net Web应用程序,我使用的是数据库的数据绑定,并且该应用程序正常工作,但是我没有使用任何vb代码,部署后是否存在问题?

谢谢

解决方案

没有问题,因为您的服务器端控件已经在使用vb代码了!
vb.net表示您的代码上的语言是vb,并不表示您无法编写vb代码或强制读取vb!


一点都不.您可以在背后的代码中使用任何.net支持的语言.无论是vb.net,C#还是任何其他语言,都没有关系.

浏览这些链接以清除您对asp.net中模型背后的代码的困惑

http://support.microsoft.com/kb/303247 [ http://www.4guysfromrolla.com/ASPScripts/PrintPage.asp?REF =%2Fwebtech%2F100500-1.shtml [ http://asp.net-tutorials.com/basics/code-behind/ [ ^ ]

http://stackoverflow. com/questions/6235164/if-code-behind-not-used-is-aspx-source-code-exposed-to-website-visitors [ 解决方案

No there isn''t any problem because your server side control is already using vb code!
vb.net mean your language is vb on your codes not mean you can''t write vb code or force to read vb!


Not at all. You can use any .net supported language in the codebehind. Whether it is vb.net , C# or any other language, it does not matter.

Go through these links to clear your confusion about the code behind model in asp.net

http://support.microsoft.com/kb/303247[^]

http://www.4guysfromrolla.com/ASPScripts/PrintPage.asp?REF=%2Fwebtech%2F100500-1.shtml[^]

http://asp.net-tutorials.com/basics/code-behind/[^]

http://stackoverflow.com/questions/6235164/if-code-behind-not-used-is-aspx-source-code-exposed-to-website-visitors[^]


To clarify the previous solutions, and your understanding of how it works

you must understand that the page your working with is called asp.net markup code. markup code is a combination of HTML and ASP.Net objects, that work together to create your web page. You can preview markup code, to see the results of your markup, and to give you an idea of how your page looks.

One of the things that Microsoft has done, is the ability for a complete asp.net novice to be able to use the design view, drop an asp.net control object onto the markup, and bind it to a data source. Thus producing instant gratification for the novice.

The Code behind page allows those with extensive knowledge of how web pages work, the ability to use pure code to control how the page will control events, or to add handlers to button clicks and so forth.

As you expand your knowledge of how asp.net works, you will end up deleting the bound object in your markup, and use pure code in code behind to load the object data.

Asp.net is quite clever in offering many different avenues of choice (ways to accomplish the task) for an entire range of users, from beginners to the most advanced. It''s one of the advantages that separates it from PHP.


这篇关于对于asp.net应用程序,我没有在项目背后使用任何vb代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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