Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Generating code when works in design mode.

Generating code when works in design mode.

Scheduled Pinned Locked Moved C#
tutorialcsharpvisual-studiodesignhelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hdv212
    wrote on last edited by
    #1

    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

    J L 2 Replies Last reply
    0
    • H hdv212

      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

      J Offline
      J Offline
      Jacobb Michael
      wrote on last edited by
      #2

      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...!

      H 1 Reply Last reply
      0
      • H hdv212

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • J Jacobb Michael

          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...!

          H Offline
          H Offline
          hdv212
          wrote on last edited by
          #4

          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.

          L 1 Reply Last reply
          0
          • H hdv212

            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.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups