Sunday, July 26, 2009

Im trying to put C# code in my aspx file but i dont know where to put the "using" statements!?

Does anyone know where?


Im not putting code in a different file because this file is a masterpage and it wont work if i do it with code in a different file. Does anyone know what to do?


Ant...

Im trying to put C# code in my aspx file but i dont know where to put the "using" statements!?
Place the Using statements in the WebForm's aspx.cs file. (See Solution Explorer.)





WebForm1.aspx and WebForm1.aspx.cs make up a single Web Forms page.





The .aspx file contains the visual elements of the Web Froms page. The WebForm1.aspx.cs class file is a hidden, dependent file of WebForm1.aspx. It contains the code-behind class for the Web Froms page: containing event-handler code and the like.








_______________________


No comments:

Post a Comment