Ask a questionAsk a question
 

Questionquestion about code generation on aspx

  • Tuesday, November 03, 2009 9:23 AMM.Lee Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I created a vs shell isolated project and a custom project type (neither CSharp nor its sub projects).
    My project includes web forms(3 nodes in explorer, .aspx, .aspx.cs, .aspx.designer.cs).

    Here the question comes
    The feature: when user drag and drop some controls in the web form, or double click the control(such as Button),
    program can generate the field or event handling code in the code-beside file (.aspx.designer,cs or .aspx.cs) automatically?
    just likes the VS built-in behaviors.

    Anyone put me in the right direction?

All Replies

  • Thursday, November 05, 2009 3:24 AMM.Lee Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Anyone help me?
  • Thursday, November 05, 2009 5:16 AMChao KuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello, Lee
    Maybe this link could give you directions. 
    Thanks
    Chao
  • Thursday, November 05, 2009 7:06 AMM.Lee Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, Kuo

    Thanks for your help, but I found the doc you refer is out of date.

    1) internal class PythonCodeBehindCodeGenerator : Microsoft.VisualStudio.Package.Web.CodeBehindCodeGenerator { ... }
    the CodeBehindCodeGenerator class doesn't exist in VS2008 SDK.

    2) the code in sample is different from the doc says. No code behind file in python web page, all implementations are in aspx.
  • Friday, November 06, 2009 3:31 AMChao KuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello, M.Lee
    I am sorry. I forgot it is out of date. But As far as I know, the MSDN only have a such little document on it. Really sorry for that.
    Thanks
    Chao