|
Ok, I need some help from the CP community. My place of work has some old school developers who are very proficient at building websites with classic ASP and VB COM+.
Different departments at work have been working with ASP.NET and C# for a while now, however, some of those old school developers are still of the opinion that:
- ASP.NET (controls, user controls, etc.) are bloated
- under the hood, ASP.NET is merely concatenating HTML strings to write to the browser anyway
- implementing our own engine that "writes" simple HTML to the browser is bound to perform better than the ASP.NET controls (less bloat, etc.)
- using C# to write HTML strings to the browser is a good step upward, because it gets us away from vbscript and COM DLL hell
I would like to build an argument for the contrary, but I am certainly willing to hear comments from both sides of the fence.
A few arguments that I can think of off the top of my head might be:
- ASP.NET is fine for so many other enterprise level sites, why are we special?
- how maintainable would the codebase be if we are writing out HTML strings?
- user controls are not perfect for use everywhere, but they definitely do have some advantages (code maintainability)
- how long would it take to get a newly hired ASP.NET developer "up to speed" with our methods if we implement our own thing?
- if the only real thing you are going to change about the development infrastructure is the language to C#, then is there really any point?
I'm looking for thoughts and opinions. I don't want to be a MS evangelist, but given the options we are comparing, it seems clear to me that true, typical ASP.NET development is the way to go, but I'd appreciate hearing some additional arguments.
Thanks.
[EDIT]
I would like to clarify that while the methods they plan to use are not adopting typical ASP.NET, they are also not proposing the other extreme of a C# page full of Response.Write commands. They would make use of some proper classes/objects to support the creation of HTML strings in a more structured way than true vbscript. In the end, it would probably wind up being a hybrid of decent C# OOP and vbscript style "string writing".
-- modified at 17:04 Tuesday 5th December, 2006
|
|
|
|
|
The people arguing with you are clueless. ASP.Net makes life easier for them. It is 10X easier to use then classic ASP. ASP.Net 2.0 performs much better then classic ASP so WTF are they talking about? The only issue I could see is that perhaps ASP.Net produces slightly more HTML which could affect dial up users. But who the hell uses dial up anymore? Not too mention Master pages, Themes, the Object Data Source control in 2.0. While I agree 1.1 was just OK, 2.0 is simply amazing. They're smokin crack if they'd rather write classic asp and vb script. In a few years they won't have any marketable skills? Do they want to be Dinosaurs stuck working with old technology? I don't get that one bit.
Seriously, go to msdn and research the objectDataSource control and master pages. They make life so much easier.
|
|
|
|
|
yeah, in the end you're just writing HTML strings , or talking to some SQL thing somewhere, or drawing reports (just like every other app in the universe) but what's wrong with wanting to make that job as painless as possible ? IMO, anyone who thinks classic ASP is better in any way than ASP.Net simply hasn't done anything big in ASP.Net. and C# is such a superior language to VBScript, it's like night and day.
bloat, "just writing strings", "perform better" - all sounds like things people would say when they're trying to avoid learning something new...IMO
|
|
|
|
|
I am 54 but I am not Old School. I made the transition when 1.0 came out. This transition was easy since I used to use InterDev and VB Web Classes.
I found writing ASP code easy but a maintenance nightmare, especially when the program is adopted by other sites. ASP.NET is much easilier to maintain and deploy. ASP has pseudo OOP. ASP.NET embraces OOP and GOF design patterns. Also, you can create Web Services and Window Services in .NET to facilitate access to modern and legacy resouces.
I wrote a SPC ASP.NET Application that included some real-time data collection using C++/CLI and C#. So, what you can do with ASP.NET and .NET goes beyond creating reports and data entry programs.
|
|
|
|
|
Thanks alot for sharing, it's appreciated.
|
|
|
|
|
i have:
1. a Master Page
2. a content page (which uses the Master page)
3. a User Control (which resides on the Master page). it has a button.
i want to send an event to the content page when the button on the User Control is clicked.
what does it take to make that happen ?
i've tried adding code to the master page to add an event handler to an event on the User Control, but that gives me compilation errors because the other pages that use the master page don't know about the User Control code (so the delegate / event type that i define to interact with the User Control shows up as undefined in the content pages). i've tried a million other things that just don't work for similar reasons... there must be a way to do this...
ideas ?
|
|
|
|
|
Do it the other way around. Create the event in the master page, and call the event from the user control. A content page may add an event handler to the event, but it doesn't have to.
---
b { font-weight: normal; }
|
|
|
|
|
Does anyone have a clean example of how this would be implemented. I have a dataset and have set up the relation, but I am not sure of the next step.
Would I use a nested datagrid or a repeater control, or something else that I am not thinking of? Would the hiding have to be handled in javascript or can it also be done server side?
What is your opinion?
Thanks,
-Brooke
|
|
|
|
|
|
The link doesn't seem to work.
|
|
|
|
|
Hi, not sure where to post this particular question, but this might do.
I am running VS2005 and looking for a version control program, similar to source safe to run at home. I am looking for something thats free as well if possible, I just dont want to buy something that I will hardly use.
Thanks in advance.
|
|
|
|
|
|
|
I was wondering if we could use Asp.Net to query a users browser that is displaying an ASP.Net page. Now I know for a fact that using either client side Java Script or even the browser object in ASP.Net, we could figure out the type of browser a user is using. What I need to know if it's possible to know what other software the user may have installed on their machine (such as some assitive technology software such as screen readers). I called the manufacturer for one of such screen readers and although they agreed that they work with the browser to use their product, they don't provide any information that we could query from the browser which will reveal the whether the AT product is on the users box or not.
Thanks
-----------------------------
If you don't go after what you want, you'll never have it.
If you don't ask, the answer is always no. If you don't step
forward, you're always in the same place. -Nora Roberts
|
|
|
|
|
|
Hi All
I have a page in which i have included another page in IFRAME. There is text box in that IFRAME page. I need the ID of that IFRAME page Text box. How can I do that. Please any one help me it is very urgent.
Thankx in ADVANCE.
|
|
|
|
|
My advice is to get rid of frames as soon as possible. You will solve lots of troubles if you stick with them.
Anyway, there is no way how to access controls of page included in frame on your ASP.NET page using .NET framework. You have to use javascript. check http://www.quirksmode.org/js/frameintro.html or google for 'javascript frames'
Pilo
|
|
|
|
|
You may want to get rid of IFRAMEs. Your IFRAME equates to another page being loaded there. Try a placeholder instead.
|
|
|
|
|
Hi Friends,
How to get the current Doller value against Indian rupees through webservice?
I will be very thankfull to those who respond me.
----Jegastar
|
|
|
|
|
|
How can i programmatically rename a file?
|
|
|
|
|
System.IO.File.Move
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi,
I want to convert excel sheet data to sql database.I have completed it using OLEDB connection and sql query.I retrieved the data from excel and bind the data into dataset using OLEDataAdapter and then dataset content will be displayed on grid.If the excel sheet data is of same datatype means it is working properly.See the excel sheet example...
Name Mark1 Mark2
Ram 87 76
somu 45 65
james 65 98
When converting this excel to sql it is working properly..
See the problem below..
Name Mark1 Mark2
Ram 87 76
somu 45 AB
james 65 98
when i am giving 'AB' to mark it shows null value at that specified column(ie,blank space on grid for the data 'AB').
This is my problem...How can i rectify this....Any alternative solutions...
Thanks in Advance
|
|
|
|
|
first filter it out then type convert.
|
|
|
|