Generating code when works in design mode.
-
Hi i'm looking for which how to visual studio generate code when u are working on design mode. for example, suppose u have a web project with visual studio, when u add gridView to yout web page, it generate aspx code in .aspx file on the specific line of page, when u change some default properties of gridView, it add code to .aspx, and when u delete gridView, it delete gridView code that wrote to aspx file. i'm looking for a best way to accomplish this (user design form and my application generate aspx code for it). can anybody help me ? thanks
-
Hi i'm looking for which how to visual studio generate code when u are working on design mode. for example, suppose u have a web project with visual studio, when u add gridView to yout web page, it generate aspx code in .aspx file on the specific line of page, when u change some default properties of gridView, it add code to .aspx, and when u delete gridView, it delete gridView code that wrote to aspx file. i'm looking for a best way to accomplish this (user design form and my application generate aspx code for it). can anybody help me ? thanks
hdv212 wrote:
i'm looking for a best way to accomplish this (user design form and my application generate aspx code for it).
Hi What do you mean, what do you really expect from others.... i don't get you...!
-
Hi i'm looking for which how to visual studio generate code when u are working on design mode. for example, suppose u have a web project with visual studio, when u add gridView to yout web page, it generate aspx code in .aspx file on the specific line of page, when u change some default properties of gridView, it add code to .aspx, and when u delete gridView, it delete gridView code that wrote to aspx file. i'm looking for a best way to accomplish this (user design form and my application generate aspx code for it). can anybody help me ? thanks
hdv212 wrote:
i'm looking for a best way to accomplish this (user design form and my application generate aspx code for it).
If I understand your question correctly, you want to design an applcation that does the same as Visual Studio. It would allow a user to drag and drop controls onto a form, and your application would generate the actual aspx code, to make it run. This is not a trivial task, IMHO, as you will need to create libaries of classes for all the tools you are to offer, with each class having the properties necessary to generate the images and the code.
-
hdv212 wrote:
i'm looking for a best way to accomplish this (user design form and my application generate aspx code for it).
Hi What do you mean, what do you really expect from others.... i don't get you...!
-
Hi jasome i want when user works in design time and drag & drop a controls on the web page and change it's properties, my application create appropriate aspx code for that.
hdv212 wrote:
i want when user works in design time and drag & drop a controls on the web page and change it's properties, my application create appropriate aspx code for that.
As I suggest below, you have a lot of code to write; none of this happens by magic.