Discover VS.NET a problem, and everyone explore, learn to learn!
There are two pages A.aspx B.aspx If you want to use the code in B.ASPX in A.ASPX (used in front of the front and back): First steps first put the page code in B.ASPX COPY to A.ASPX , Second step to put B.ASPX.CS Copy A.ASPX.CS
Abnormal situation
Do the second step first, do the first step. Then vs.net does not automatically declare the control of the first step COPY! It has also handled the COPY of the statement control.