Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,any one can help I develop asp.net web application i am used data-binding for database and the application is working correctly but i didn't use any vb code behind is there problem after deploy?

thanks
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jun-12 15:38pm    
Why using ASP.NET if you are not actually using them? Do you have any idea what ASP.NET does?
--SA

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!
 
Share this answer
 
Comments
samuel mergia 5-Jun-12 23:09pm    
Thank you Very much!!!
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[^]
 
Share this answer
 
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.
 
Share this answer
 
Comments
samuel mergia 5-Jun-12 23:07pm    
Thank you very much!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900