What?s the difference between Codebehind="MyCode.aspx.cs"
andSrc="MyCode.aspx.cs"?

Answer Posted / venkat

Visual Studio uses the Code behind attribute to distinguish the page source or programming logic from the design. Also the src attribute will make the page compile on every request. That is the page will not be compiled in advance and stored in the bin as a dll instead it will be compiled at run time.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define machine.config in .net?

638


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

761


Explain a program using razor view engine to create a simple application? : asp.net mvc

589


Explain some of the major built-in objects in asp.net

689


What is the difference between typeof() vs gettype()?

630






Describe the events in the life cycle of a web application.

696


what is DLL Hell and how it is solved in .NET? please explain clearly??

1970


Explain how can we access static variable?

656


What is asp.net master page?

641


14. What are your Future Plans for Swatz Oils GROUP U.K?

1849


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

649


What parameters can you pass in the url of the api? Can get and post use the same url?

641


Explain ViewState?

677


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1520


What are sessions and cookies?

651