473,586 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1666
"Dave" <da*******@news group.nospam> wrote in message
news:uQ******** ********@TK2MSF TNGP09.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
2278
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 but do believe this requires a "NESTED" argument. This is where I am lost. My Original MS ACCESS Query reads-- SELECT DISTINCTROW...
8
3503
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 the moment the printed output is usually going to Word. It's turning into an unholy mess, because I'm having to prepare umpteen different Word...
7
4669
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 quite ugly. The black area is larger then it is once an item is added. How can I solve this problem either by: A) Having only the header black and...
12
1333
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 example, I originally write: <table> <tr> <td>
2
1731
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 the Crystal Reports to the new system. To use the terminology that Crystal uses, the old VB6 application used a "pull" methodology, meaning that the...
8
3146
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. The link to the document is http://www.surveymonkey.com/s.asp?u=689952259313 I have spent 15 hours trying to sort this but to no avail.
1
1510
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
1281
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 step-by-step guide for installing and applying all necessary tools for converting a simple lets say "Hello world" XML doc into pdf with XSL-FO Does someone...
2
3995
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 functions strtol, strtod, and strtoul, defined in <cstdlib>, convert a null- terminated character string to a long int, double, or unsigned long. You can...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8216
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.