p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   Understanding code-behind file (http://p2p.wrox.com/showthread.php?t=85824)

morteza November 27th, 2011 02:02 PM

Understanding code-behind file
Hi there. I have question about aspx.cs code. Assume code is like :


public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)


Class definition uses 'partial' access modifier . I want to know where is reminder of code. As you know when we use 'partial' keyword meant that somewhere else class have been developed.


Imar November 27th, 2011 02:18 PM

The other part is generated by Visual Studio based on the markup in the ASPX page.



morteza November 27th, 2011 02:21 PM

And am i not able to view it's code?

Imar November 27th, 2011 02:25 PM

You can look at the markup .... ;-)

The code that Visual Studio creates is (temporarily) stored on disk. Can't recall exactly where but a file search on your disk for recently changed files my bring something up.


morteza November 27th, 2011 02:29 PM

I look up for it .

All times are GMT -4. The time now is 09:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.