Thursday, November 22, 2012 1:11 PM
When I tried to add aspx file in solution from Expression web 4, aspx.cs file was excluded.
How can I add aspx.cs file in solution.
I am able to add the same using VS2012.
But once I opened the solution in VS 2012, It is not letting me to open it again in Express web 4.
Thursday, November 22, 2012 3:09 PM
This is probably better asked / answered in the asp.net forum:
Expression Web MVP
Thursday, November 22, 2012 5:24 PM
Sorry, but EW is a design tool, with limited support for ASP.NET. Code behind is not supported by Expression Web, at all. All coding is in-page in Expression Web. If you want to use code behind, you will have to use VWD or VS.
Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.
Thursday, November 22, 2012 6:01 PM
EW doesn't know about .cs files. It uses the single page model, not the code behind model. (http://msdn.microsoft.com/en-us/library/015103yb(v=vs.100).aspx )
You can certainly add the file yourself, by creating it by hand, but EW won't do it for you.
For more advanced asp.net, you'd use a different tool. EW supports what I think of as "asp.net light". Sometimes that's all you need. But often a different tool is better for the actual asp.net coding, if what you are doing is more cumbersome than would make sense in a single page model.