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. C# asp.et web form

C# asp.et web form

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethardwareregextutorial
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.
  • M Offline
    M Offline
    Member 8217517
    wrote on last edited by
    #1

    I am currently working on adding a new page to an existing C# asp.net web forms 2010 application. Since I am new to working with C# webforms (but have the desktop expereince), I have the following questions/items to mention: 1. The new web page will use the master pages already setup and I am suppose to put all web objetswithin a webfrom table. **This is a requirement of the project. 2. When I am working with the webform table, I am using the designer to create more rows in the table when I need it. However on one row I want a label and a text box embedded in one row of the table. I can not figure out how to drag the label and textbox into the correct cells on the table. The only thing I figured out was to go into the source code side and copy the asp.net label and textboxes into the correct cells. Thus can you tell me how to drag and drop items from the toolbox into the correct tables within the table? 3. Can you tell me how to drag a gridview control into the correct cell of the table? 4. If you were me, would you create separate tables for each line I am trying to setup in one orginal table? 5. In the source code, I would like the code to line up so I can match the label tags. When I am in source view, I do have the code line up. However, when I drop and drag an item from the toolbox onto the designer, my formatting gets messed up. Is there a way to keep this formatting?

    N M 2 Replies Last reply
    0
    • M Member 8217517

      I am currently working on adding a new page to an existing C# asp.net web forms 2010 application. Since I am new to working with C# webforms (but have the desktop expereince), I have the following questions/items to mention: 1. The new web page will use the master pages already setup and I am suppose to put all web objetswithin a webfrom table. **This is a requirement of the project. 2. When I am working with the webform table, I am using the designer to create more rows in the table when I need it. However on one row I want a label and a text box embedded in one row of the table. I can not figure out how to drag the label and textbox into the correct cells on the table. The only thing I figured out was to go into the source code side and copy the asp.net label and textboxes into the correct cells. Thus can you tell me how to drag and drop items from the toolbox into the correct tables within the table? 3. Can you tell me how to drag a gridview control into the correct cell of the table? 4. If you were me, would you create separate tables for each line I am trying to setup in one orginal table? 5. In the source code, I would like the code to line up so I can match the label tags. When I am in source view, I do have the code line up. However, when I drop and drag an item from the toolbox onto the designer, my formatting gets messed up. Is there a way to keep this formatting?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2
      1. Why use design view? VS Designer has been notorious for mucking with layouts. You can still drag and drop in source view. 4) If it were me I wouldn't use tables at all. The are better performing, more modern methods. 5) see 3 The drag and drop thing is nice but there are times when it is best to just go to the source, and working without the tools is something you should learn.

      No comment

      1 Reply Last reply
      0
      • M Member 8217517

        I am currently working on adding a new page to an existing C# asp.net web forms 2010 application. Since I am new to working with C# webforms (but have the desktop expereince), I have the following questions/items to mention: 1. The new web page will use the master pages already setup and I am suppose to put all web objetswithin a webfrom table. **This is a requirement of the project. 2. When I am working with the webform table, I am using the designer to create more rows in the table when I need it. However on one row I want a label and a text box embedded in one row of the table. I can not figure out how to drag the label and textbox into the correct cells on the table. The only thing I figured out was to go into the source code side and copy the asp.net label and textboxes into the correct cells. Thus can you tell me how to drag and drop items from the toolbox into the correct tables within the table? 3. Can you tell me how to drag a gridview control into the correct cell of the table? 4. If you were me, would you create separate tables for each line I am trying to setup in one orginal table? 5. In the source code, I would like the code to line up so I can match the label tags. When I am in source view, I do have the code line up. However, when I drop and drag an item from the toolbox onto the designer, my formatting gets messed up. Is there a way to keep this formatting?

        M Offline
        M Offline
        Morgs Morgan
        wrote on last edited by
        #3

        Hi, It looks to me that you admit when you drag and drop controls from design view onto your page out of HUMAN ERROR you are dropping the controls onto a wrong place/point/spot! YEs i hear you there, you can make such a mistake which as you mentioned is messing with your entire layout. Again you mentioned that if you do the same process in source view you are dropping the controls at the right spot, that's it! you are going to start using source view to design your web pages/forms because that's what is easier for you, and for most of us i guess... Besides there's a 50% chance that the page design you see in design view won't be the page design you will see when opened in a webbrowser(i.e IE or firefox). In my projects i use source view to create my design and a browser to see my work done so far, i don't remember using design view. ..And like Mark mentioned, try and avoid tables to design your pages. This is old and designers have decided to leave tables alone only if you really need it then you can use tables otherwise try the magic and power of DIV (page division), this element shipped with CSS[^] can start and finish a page design :) Happy coding, Morgs

        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