Solved

Is there a Dock.Fill comparable in Webforms?

Posted on 2016-08-10
3
32 Views
Last Modified: 2016-08-10
In a Winform, I have Dock options in properties, where I can dock to the top, bottom or even fill.  I am converting a Winform to a Webform.  I can't seem to find this option in properties.  

What is the secret to docking a textbox in a table cell so it fills it up (can grow if someone maximizes the screen)?
0
Comment
Question by:Karen Wilson
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
Comment Utility
Sadly there s no Dock property, because the UI (html markup) depends on web technologies like HTML and CSS.
Regarding your question you can add a container div and set the width and height to 100%.

Please remember that conversion is like to like but there is no 100% win form equivalents (contrary to popular demand a desktop app has a far more rich UI experience than a web app) and layouts are different. I am currently converting a Delphi app into ASP.NET and we try to keep it simple by using CSS frameworks like bootstrap. I know it takes a bit to learn but the time savings of dealing with all the different CSS behaviours  of IE versions and other browsers is learning time worth spending.
0
 

Author Closing Comment

by:Karen Wilson
Comment Utility
Thanks for answering.  I have never worked with some of the new options available in webforms (panels etc.) so didn't know if there was a secret docking source somewhere.
0
 
LVL 35

Expert Comment

by:Miguel Oz
Comment Utility
You are welcome, happy coding
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now