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. Web Development
  3. ASP.NET
  4. Placing & arranging controls on web form

Placing & arranging controls on web form

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
3 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.
  • U Offline
    U Offline
    User 9875787
    wrote on last edited by
    #1

    Hi all. I am using Microsoft Visual Web Developer Express 2010. I am finding working with the controls on the form very annoying, as it is hard to place and rearrange the various components e.g. labels, textboxes, unlike in Microsoft Visual C# Express 2008 (where you can drag and drop and adjust a component anywhere on the screen) I have tried using tables, and though they work, the components are hard to get positioned the way you want (see the link below with labels). Is there an easier way of laying out the controls? Thanks http://imageshack.us/a/img10/2388/designview.png[^]

    D J 2 Replies Last reply
    0
    • U User 9875787

      Hi all. I am using Microsoft Visual Web Developer Express 2010. I am finding working with the controls on the form very annoying, as it is hard to place and rearrange the various components e.g. labels, textboxes, unlike in Microsoft Visual C# Express 2008 (where you can drag and drop and adjust a component anywhere on the screen) I have tried using tables, and though they work, the components are hard to get positioned the way you want (see the link below with labels). Is there an easier way of laying out the controls? Thanks http://imageshack.us/a/img10/2388/designview.png[^]

      D Offline
      D Offline
      David C Hobbyist
      wrote on last edited by
      #2

      WebSite or Web application? If you name the controls you can position them by changing the values in css 30 Days to Learn HTML & CSS[^]

      Frazzle the name say's it all

      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

      John F. Woods

      1 Reply Last reply
      0
      • U User 9875787

        Hi all. I am using Microsoft Visual Web Developer Express 2010. I am finding working with the controls on the form very annoying, as it is hard to place and rearrange the various components e.g. labels, textboxes, unlike in Microsoft Visual C# Express 2008 (where you can drag and drop and adjust a component anywhere on the screen) I have tried using tables, and though they work, the components are hard to get positioned the way you want (see the link below with labels). Is there an easier way of laying out the controls? Thanks http://imageshack.us/a/img10/2388/designview.png[^]

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        I think you need to change your approach, or way of thinking for Visual Web Developer Express. It's not about using the Preview Mode to design your web forms like on Visual C# Express. [Visual C# Express] Programers use the design mode to quickly design or layout windows forms, for the x/y position of the objects always start at 0/0 or the top/left of the form. In a windows for, there is usually just one container to keep track of, so it's easy to drag and drop controls on to the form. [Visual Web Designer] Microsoft tried to do the same thing in this program, but it really doesn't work out, because a web form can be made up of hundreds of containers to store objects. I've been doing this for over 13 years now, And I can advise you to not use the preview mode to design forms, because the preview mode uses Internet Explorer to render the objects, and they will not look the same on all browsers. If you use the preview mode to adjust a container or object, it will inject bogus HTML and CSS into the code, in which fixing it may not be an industry standard thing. It will confuse you more, trust me. I use the preview mode to just select objects, so I can use the property panel F4 to adjust the object. That's it. [Advice] Your really better of just typing straight into the code window, using HTML or HTML 5 if your program supports it. A web page is not about asp.net, it's about HTML and CSS Styles, so you should hone your skills there first. Technology like PHP, ASP.Net is 2nd, after HTML and CSS. Learn how to design web pages first. Start with a master page for your template, and then web forms that inject HTML into the Master Page content containers. You can download my demo project here, as a start or to simply view how to construct a proper asp.net website. HKB Project[^] When you start designing forms for submission, then you replace that HTML Textbox tab with the asp.net textbox object , so you can access it in Code Behind. The same with the submit button and so forth. [Conclusion] I hand type everything on the keyboard, I create the containers with div tags and tables to construct my layout, and then I populate each container until finished. I don't use the asp.net object anymore, because most of them are difficult to manage, and time consuming to create and maintain. I can do t

        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