473,394 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Converting from ASP 3.0: some formatting and design questions

I am converting an ASP Classic web site to an ASP.NET application and have
some real basic formatting or design questions. (The classic ASP site has
both code (forms) and content pages.)

1.When moving a significant amount of content from the ASP classic page
(basically formatted text in <P> tags) to an ASP.NET webform, is it better
to add it to the webform as HTML or should I put each paragraph into
separate (or perhaps a single) "label" web server controls?

2. Do most ASP.NET developers use the grid layout or HTML tags to position
their content? Is there an advantage of one over the other?

3. Should I convert content only Classic ASP pages to web forms (ASPX) or
should I just make them HTML pages?

4. In the Visual Studio 2003 grid layout when I try to position a label at
the very bottom of the display, I cannot easily expand the label (increase
its height property) by simply dragging the handle on its bottom edge to
give me the desired height. Instead I can only drag a few pixels beyond the
lower boundry and then I must use the scroll bar to scroll down a few
pixels, expose the handle, drag it a few more pixels, etc etc. This is
extremely frustrating. Of course I can change the height of the control by
setting that value in HTML view but when I am trying to position several
controls at the very bottom of my web form I don't want to keep switching
back and forth between views. Is there an easy way to handle this?

5. Finally, is there a way to left justify a group of selected controls in
the grid view of a web form?


Nov 18 '05 #1
2 1652
"Dave" <da*******@newsgroup.nospam> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
I am converting an ASP Classic web site to an ASP.NET application and have
some real basic formatting or design questions. (The classic ASP site has
both code (forms) and content pages.)

1.When moving a significant amount of content from the ASP classic page
(basically formatted text in <P> tags) to an ASP.NET webform, is it better
to add it to the webform as HTML or should I put each paragraph into
separate (or perhaps a single) "label" web server controls?
If you're not going to manipulate the text from the server side, then there
is no reason to put it into a label control. Leave it as is.
2. Do most ASP.NET developers use the grid layout or HTML tags to
position their content? Is there an advantage of one over the other?
I never use the grid layout. It produces extremely ugly code with many
nested <div> tags with absolute positioning. I prefer to let the designers
design page layouts, but if forced into it, I use tables.
3. Should I convert content only Classic ASP pages to web forms (ASPX) or
should I just make them HTML pages?


If they're content only, then leave them alone.

John Saunders
Nov 18 '05 #2
Thanks for John's informative suggestions.

Hi Dave,

Of couse, generally, I think use plain HTML is much better than Label
control if we just want to display some static content. Label Control will
also store its "Text" in the ViewState which will increase the page's
download size. Also, if there is a page which only output static contents,
recommend that expose it as html page rather than aspx page since the IIS
can directly serve it so as to improve performance.

As for designing the layout in asp.net page, I always think use the normal
flowlayout is the best choice in web page designing. That'll make the page
more flexible when the browser's size changes. The GridLayout is mainly for
those who're more familiar to the windows form(absolute position)
designing. Also, I also very like using <table> to structure the web pages'
layout as John has mentioned, I think you can also consider this.

In addition, as for the
"justify a group of selected controls in the grid view of a web form"

I haven't found any good means to do this, maybe this is also due to the
limition of web page design(quite diferent from the windows form design).

If you have any further questions, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: wiredog | last post by:
I am struggling rewriting my query from MS Access' IIF, Then to SQL Servers TSQL language. I am hoping some one can give me some guidance. I believe I have the first portion of the query correct...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
7
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is...
12
by: Jacob Crossley | last post by:
Please tell me there is a way to prevent this annoyance ; - ) I'm into writing perfectly indented html, but the .net dev environment is being overzealous and messing up my html formatting. for...
2
by: Rod | last post by:
We've got an old VB6 application we wrote years ago, that we're working on converting parts of, to an ASP.NET application. So far, the work is going well. Now I'm looking at trying to convert...
8
by: CM | last post by:
Hi, Could anyone please help me? I am completing my Master's Degree and need to reproduce a Webpage in Word. Aspects of the page are lost and some of the text goes. I would really appreciate it....
1
by: alacrite | last post by:
I have a class that represents a record in a database table. class tableName { int col1; string col2; int col3; ... other fields and relevant operations }
1
by: Harry Zoroc | last post by:
I would like to learn some XSLT-FO handling procedures and need a good tutorial. Unfortunately most of the links in Google refer to books, lessons, XML syntax What I need is an easy...
2
by: CoreyWhite | last post by:
Problem: You have numbers in string format, but you need to convert them to a numeric type, such as an int or float. Solution: You can do this with the standard library functions. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.