473,289 Members | 1,839 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,289 software developers and data experts.

Regular HTML vs ASP.Net controls

Regular HTML vs ASP.Net controls

Anyone use regular html instead of asp controls? why?
For one, if you have some code needed on 10 pages, building the piece
of code in a method makes the most sense.

is it good to mix?

does anyone find it better to use html over asp.net controls...
vice-versa?

(I have been working with asp.net for almost 5 years... )

May 18 '06 #1
8 1195
obviously i realize that the end result of the asp.net controls is
html...

are they really that important to use though?

May 18 '06 #2
HTML controls are smaller, quicker, and have less features.
It's mostly a matter of preference.

Here are more details:
http://SteveOrr.net/faq/3in1.aspx#HTMLvsWeb

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Ryan" <ry***@ungerboeck.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Regular HTML vs ASP.Net controls

Anyone use regular html instead of asp controls? why?
For one, if you have some code needed on 10 pages, building the piece
of code in a method makes the most sense.

is it good to mix?

does anyone find it better to use html over asp.net controls...
vice-versa?

(I have been working with asp.net for almost 5 years... )

May 18 '06 #3
I've mixed them at times. Sometimes it's easier to deal with predictable HTML
code instead of an ASP control. Using ASP controls also puts more of a burden
on your web server since there's pre-processing involved. HTML is just sent
as-is.

I'd like to hear other thoughts on this.

"Ryan" <ry***@ungerboeck.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
obviously i realize that the end result of the asp.net controls is
html...

are they really that important to use though?

May 18 '06 #4
In regards to Steve C. Orr's post... I was not asking about HTML
controls vs ASP controls.
I was asking about using Regular html over using Controls (html or asp)

----------------------------------------------

for example...I often stick to building html in a method rather than
using a repeater...
(a) the code may need to be shared between pages
(b) if there is a lot going on in what I am displaying, building in a
method seems to work better (less complex)

May 18 '06 #5
So you're talking about manually concatenating HTML strings together? Sound
innefecient and error prone to me. Even if you're generating the correct
HTML now, will it still be correct when XHTML is the norm? What about the
standard after that?
If you let ASP.NET do its job and generate the HTML for you then you don't
have to worry about all that.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Ryan" <ry***@ungerboeck.com> wrote in message
news:11*********************@j55g2000cwa.googlegro ups.com...
In regards to Steve C. Orr's post... I was not asking about HTML
controls vs ASP controls.
I was asking about using Regular html over using Controls (html or asp)

----------------------------------------------

for example...I often stick to building html in a method rather than
using a repeater...
(a) the code may need to be shared between pages
(b) if there is a lot going on in what I am displaying, building in a
method seems to work better (less complex)

May 19 '06 #6
It occurs

(a) when there is more programming than html
(i) it is in no way error prone... never had a problem... I
use stringbuilders to build the html and the function is limited ...
its not like all the html is build in the back end...
(ii) xhtml? simply update the method...
(c) when a certian group of code needs to be shared to many pages a
method works the best for me
(i) I have found user controls to be a mess to work with..

May 19 '06 #7
Well I believe you that it works, but it sounds like it would be a rather
high maintenance approach, especially if any other developer had to fill in
for you because it's definitely a nonstandard way of doing things in
ASP.NET. I'm not necessarily saying that your approach is wrong, but it
sure doesn't sound like you're taking advantage of ASP.NET's strengths. It
sounds more like you've written your own version of ASP.NET.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Ryan" <ry***@ungerboeck.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
It occurs

(a) when there is more programming than html
(i) it is in no way error prone... never had a problem... I
use stringbuilders to build the html and the function is limited ...
its not like all the html is build in the back end...
(ii) xhtml? simply update the method...
(c) when a certian group of code needs to be shared to many pages a
method works the best for me
(i) I have found user controls to be a mess to work with..

May 20 '06 #8
Well this wasn't my approach... this was a group approach... we started
out using user controls and moved away...

user controls add way too much complexity...
methods are simple and easily shared...

I think the way we have it works really well.

May 20 '06 #9

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

Similar topics

7
by: Patient Guy | last post by:
Coding patterns for regular expressions is completely unintuitive, as far as I can see. I have been trying to write script that produces an array of attribute components within an HTML element. ...
3
by: jm | last post by:
I have only made on asp.net vb.net application and used the "regular" DataGrid control. I found later there is a MSDataGrid and different controls. What do most people use? I am already behind the...
5
by: tmeister | last post by:
I am in need of a regular expression that tests and fails if there are 14 or more of a character in the test string. There can be up to 13 of these characters in the string and any other...
2
by: Arpan | last post by:
A Web control like a textbox can be validated using Regular Expressions like the following: <form runat=server> Name: <asp:TextBox id="txtName" runat=server/> <asp:RequiredFieldValidator...
18
by: Q. John Chen | last post by:
I have Vidation Controls First One: Simple exluce certain special characters: say no a or b or c in the string: * Second One: I required date be entered in "MM/DD/YYYY" format: //+4 How...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
4
by: Együd Csaba | last post by:
Hi All, I'd like to "compress" the following two filter expressions into one - assuming that it makes sense regarding query execution performance. .... where (adate LIKE "2004.01.10 __:30" or...
5
by: shawnmkramer | last post by:
Anyone every heard of the Regex.IsMatch and Regex.Match methods just hanging and eventually getting a message "Requested Service not found"? I have the following pattern: ^(?<OrgCity>(+)+),...
9
by: Rene | last post by:
I'm trying to basically remove chunks of html from a page but I must not be doing my regular expression correctly. What i'm trying with no avail. $site = preg_replace("/<!DOCTYPE(.|\s)*<div...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.