?
Solved

Is there a Dock.Fill comparable in Webforms?

Posted on 2016-08-10
3
Medium Priority
?
107 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 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 41751050
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
ID: 41751065
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 36

Expert Comment

by:Miguel Oz
ID: 41751311
You are welcome, happy coding
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Loops Section Overview
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

807 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