How do I edit an aspx file so it will look better

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

I am using the Microsoft Visual Studio 2005 for my C# web application.
However, the outlook doesn't look well.
I am trying to put 2 DetailsViews side by side, but have no luck.
I'm wondering how ASP.NET developers make their .aspx look beautiful.
Thanks for help.


Jason
 
Jason Huang said:
Hi,

I am using the Microsoft Visual Studio 2005 for my C# web application.
However, the outlook doesn't look well.
I am trying to put 2 DetailsViews side by side, but have no luck.
I'm wondering how ASP.NET developers make their .aspx look beautiful.
Thanks for help.

By using 3rd party Web controls. :)
 
Learn HTML and CSS. The "beauty" you are looking for is in the appearance of
the HTML in the client browser. ASP.Net Controls render HTML to the
client-side page. It is not possible to be successful with ASP.Net unless
you know something about HTML and CSS, which are the tools it uses to create
web pages on the client.

A DetailsView Control renders a div with a table inside it on the client
side. An HTML div element is a block-level element, which means that in
normal flow it will flow below any element before it, and any element after
it will flow below it in the page. Block-level HTML elements can be made to
flow inline in any of several ways. You can put them inside a table, in
different columns in the same row. You can position them absolutely using
CSS. You can use the CSS "float" style to float them to the right or left of
prior or following elements. Or you can use CSS relative positioning to move
them around.

How you style them and position them is a matter of what your UI
requirements are, knowing HTML and CSS, and what elements combine with what
styles to achieve different appearances, and to a small extent, personal
choice. But again, as you can see, you have to understand HTML and CSS
first.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Back
Top