ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites and web applications. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. ...

learn more… | top users | synonyms

3
votes
4answers
1k views

Get rid of long/Complex if..else statements using Chain of Responsibility?

I've an HttpHandler, which allows users to login to a system by passing in an encrypted code. Inside the ProcessRequest it performs quite a few steps. Retrieve the encrypted code from request ...
3
votes
2answers
271 views

Overcoming circular reference

I am working on an asp.net MVC web application which contains several projects. One is BusinessObjects, which contains business logic / processes. Another is EmailGeneration which is used to send ...
3
votes
2answers
404 views

What is the right way to develop ASP.NET applications in order to separate data access from data visualization?

I'm currently involved in a migration to TFS from SVN of a large project that is going to be divided into five different sites. This project allows some providers to insert five different product data ...
3
votes
3answers
4k views

What things do I need to become expert ASP.net MVC [closed]

I graduated in computer science. I had pretty good knowledge in Java. I have about a year experiences in ASP.net C# Web form. What other things do I need to know if I want become expert in ASP.net MVC ...
3
votes
1answer
2k views

How to generate nonce for Ajax web requests

As many of you know WordPress uses "secret key" like thing for every AJAX request. Making each request unique and also 'somewhat' secure (just a step ahead than nothing). How would I implement the ...
3
votes
2answers
1k views

What are the differences between Castle Monorail 3 over ASP.Net MVC?

I have been using Castle Monorail for some years now with great success, although I haven't bothered to update the version I'm using (2 or 3 year old). Now I'm making a decision on go to ASP.Net MVC 3 ...
3
votes
3answers
732 views

What workflow do you use with asp.net web forms development and your design department [closed]

I work at a place that has a clear separation between designers and developers. We're a fairly new start-up and we're trying to figure out what would be the best workflow for our team. We're a small ...
3
votes
3answers
634 views

Refactoring code smells in ASP.NET Web Forms Code Behind Files: Is it risky? Is it wise? Is it a waste of time?

Given a long method with Pac-Man ifs, would it be wise to: Break down code blocks into regions. Then refactor code blocks into methods. Or would it be best to leave it alone? Would it be risky? ...
3
votes
1answer
178 views

Compiler warnings and errors [duplicate]

I come from a C# background before my existing role. I am developing a VB.NET app. The code I inherited had option strict set to off and all other directives set to 'None'. I have recently switched ...
3
votes
2answers
1k views

Full Trust level: should be a concern?

Should I worry about the safety of my application if it runs in Full Trust level? If yes, why? What damages could be done? If the trust level should be a concern why it is the default level for ...
3
votes
3answers
2k views

Best practices: Ajax and server side scripting with stored procedures

I need to rebuild an old huge website and probably to port everyting to ASP.NET and jQuery and I would like to ask for some suggestion and tips. Actually the website uses: Ajax (client site with ...
3
votes
1answer
310 views

Is the structure used for these web pages a design pattern?

I want to know if the structure for an ASP.NET website I'm working on uses a design pattern for it's web pages. If it is a design pattern, what is it called? The web pages have the following ...
3
votes
4answers
5k views

Best practices for connecting from ASP.NET to SQL Server? [closed]

There are several different ways to connect to SQL Server from an ASP.NET application. I'm working on rebuilding an ASP.NET / SQL Server environment right now and I'm trying to figure out which ...
3
votes
2answers
2k views

Unobtrusive JavaScript (regarding asp.net mvc3) not clear

Unobtrusive JavaScript avoids injecting inline JavaScript into HTML. This makes your HTML smaller and less cluttered, and makes it easier to swap out or customize JavaScript libraries ...
3
votes
2answers
779 views

Storing images in file system and returning URLs or virtually resizing and returning byte arrays?

I need to create a REST web service to manage user submitted images and displaying them all in a website. There are multiple websites that are going to use this service to manage and display images. ...
3
votes
1answer
770 views

WinRT and the server (ASP.NET, Azure, etc)

Has Microsoft made any indication of WinRT's current or future relationship with server development (such as ASP.NET)? While it's been made clear that WinRT is the intended future of Windows UI ...
3
votes
1answer
140 views

Web Forms and MVC in the same web project

I'm working in a large legacy project which was build with ASP.NET Web Forms and the idea to add in the MVC libraries to the same project has been tossed around. I know that this is possible (there ...
3
votes
1answer
77 views

Where should CMS data logic go

We have a large web site written in WebForms and have begun implementing some new modules in MVC. We have a custom CMS in place. I put the data structure to hold CMS data in a BaseModel class. Now I`m ...
3
votes
1answer
76 views

UI requires data of certain types. Can it go in a SPROC?

I'm actually arguing against this, but want to see if I'm out of line. We have a PaymentQueue table and a simple UI. This table is, at the moment, primarily used by the UI and no other business ...
3
votes
2answers
410 views

Build times for small incremental changes to C# Web Applications

I have recently been moving away from ASP.NET Websites in favor of Web Applications. More specifically I have recently been picking up MVC as an alternative to developing ASP.NET Forms websites. ...
3
votes
1answer
222 views

Architecture For Mockable DAL On Large Projects

I have recently been reading an article about creating a blog using ASP.NET and MVC, and in the article the user splits the Data Access Layer into a separate Class Library, and creates an interface ...
3
votes
1answer
360 views

Designing models for a generic service layer

We are building a web interface to a tiered membership system, which will interface with a third-party CRM web service for the creation and management of accounts. The web service, unfortunately, is ...
3
votes
1answer
167 views

AJAX IRCX Client and Server

I am currently developing an IRCX AJAX Chat Based system and have a few questions regarding the Server and Client implementation. Any suggestions are welcome: Server: Should this be implemented as a ...
3
votes
1answer
382 views

Is it a good idea to put all assembly: WebResource in the same cs file?

I have a .NET library, with some WebControls. These webControls have Embed Resources. And we declare them like it, in all webcontrols for each cs file: Something like this: [assembly: ...
3
votes
1answer
1k views

Does every ASP.NET Web Application has a Single Application Domain?

I am bit confused. Is there only one application domain for every single ASP.NET Web Application or there can be anywhere between 1 to 100 application domains present in a single application pool of a ...
3
votes
2answers
252 views

Entity Framework and distributed Systems

I need some help or maybe only a hint for the right direction. I've got a system that is sperated into two applications. An existing VB.NET desktop client using Entity Framework 5 with code first ...
3
votes
4answers
217 views

Web Project Class Architecture

I think this is a good question for here but I'm not 100% sure. Please flag if it's too vague. I've worked on many websites where common framework classes are overridden. Since I work mostly in ...
3
votes
1answer
224 views

Were there major changes in testing practices in ASP .NET between 3.5 and 4.5?

Obviously, testing methods are language-independent. An integration test stays an integration test no matter what the technology. But platforms implement some kinds of testing support. And the ...
3
votes
1answer
1k views

UserControl inside Placeholder good/bad? + Postback problem

Currently I'm working a bit with ASP.NET and trying to find the best way to navigate through pages. Right now I have an UpdatePanel which has a Placeholder inside it. This Placeholder will then add ...
3
votes
1answer
191 views

Exposing warnings\errors from data objects (that are also list returned)

I'm exposing Data objects via service oriented assembly (which on future usages might become a WCF service). The data object is tree designed, as well as formed from allot of properties.Moreover, ...
3
votes
1answer
403 views

Refactoring techniques for asp.net webforms application

I'm working on a large application written in asp.net web forms. It was developed under asp.net 1.0, and still uses DataGrid, though portions have been updated. Most of the code resides in either the ...
3
votes
2answers
1k views

N-Tiered Web App Using JQuery/ASP.NET Web Services

For fairly small, non-complex web applications, we have utilized jQuery to make asynchronous calls to an ASP.NET web service for interaction with our Sqlite data store. This has proven to be a pretty ...
3
votes
1answer
273 views

ASP.NET Dynamic Data

I'd like to know what people think of ASP.NET Dynamic Data. I see the project type in visual studio and have found very little about it mention on blogs and in books. I created a site using it and ...
3
votes
3answers
715 views

Proper & Efficient Structure for an entity layer?

Context Web application based on the .NET Framework written in C# and following the MVC design pattern. Question What is the most efficient way to structure an entity layer consisting on various ...
2
votes
17answers
5k views

Writing code vs using drag & drop tools

If you drag & drop, you're letting the editor to build code for you. Surely that means you're not really programming. You're building an application that has no proper code logic, correct? I drag ...
2
votes
3answers
444 views

How do I (php developer) work with an asp.net developer? [closed]

I'm a php developer working on a startup, and my friend, my partner(a developer also), who is building the startup with me, is an asp.net/C# developer. How do we work together collaboratively, as we ...
2
votes
4answers
369 views

Standardised Programming Techniques / Procedures

I don't know if this is a question, or a start of a conversation or even a completely irrelevant topic. Why isn't programming more standardised? Im really new to this and I find it hellish ...
2
votes
2answers
251 views

Implementing set of processes in a stored procedure or through the code?

I want to know what's the suitable method to implement the following case (best practice). If i make a set of processes like this: select data from set of DB tables. loop on the selected result. ...
2
votes
3answers
449 views

Is ASP.NET MVC too much overhead for smaller projects? [closed]

I will be honest I don't really know much about MVC other than the stuff you can read online in 5 minutes. Unfortunately this doesn't really tell me whether its suited to smaller projects or not. I ...
2
votes
4answers
1k views

DTOs matter on ASP.NET MVC JSON Action?

I recently came across an internal project where they were using DTOs throughout the solution, and when I sat down to implement a new MVC controller with a JSON REST endpoint I decided to use an ...
2
votes
2answers
1k views

Object Initializer in C# problem with readability

I wonder if object initializing have some performance gain in ASP.NET website. I have an office mate that told me that object initialization is much readable and faster than constructor. But one of my ...
2
votes
4answers
3k views

Microsoft's coding standards for ASP.NET controls

I cannot find any naming standards/conventions in MSDN for naming ASP.NET controls. One of the following standards tends to be used by programmers: lblAddress AddressLabel Address According to ...
2
votes
2answers
1k views

Is it possible to integrate UDP file transfer into a .NET web application?

Background I have recently been tasked with designing a rebuild of an existing .NET web application that currently uses a third-party company to handle large file transfers (as big as 50Gb). ...
2
votes
4answers
4k views

What are the tools/frameworks used to build C# ASP.net applications? [closed]

I am basically a java programmer who wants to move to .net. I haven't worked in .NET companies so I don't have any idea about the tools they use. In a Java company people use Maven, Hibernate and ...
2
votes
5answers
6k views

Business Logic Layer in MVC Application

In my ASP MVC application I decided to add another Business Layer and made the model only to have properties. All other functionality like save to db, get from db is done on this new Business layer. ...
2
votes
5answers
4k views

An XML file or Database?

I am re-writing a section of my site and am trying to decide how much of a rewrite this will be. At the moment I have a web service feed that generates an xml once per day. I then use this xml file on ...
2
votes
3answers
763 views

Implementing Command Pattern in Web Application

I'm looking to implement the command pattern in a web application (asp.net c#)... Since the commands come in text format from the client, what is the best way to translate the string to a command ...
2
votes
5answers
516 views

ASP.NET coding style

I am trying to improve the speed of my coding and I was wondering what tips the pros have. Currently I tend to code about 5-10 lines of code then test and repeat. Is that typical? Or is it better to ...
2
votes
4answers
226 views

Storing web app passwords so that they can be retrieved

Short version My boss wants me to store user passwords for an ASP.NET Web Forms web app we're developing in clear text, so that a user with admin rights can click a button and get back the current ...
2
votes
1answer
2k views

Alternative way of developing for ASP.NET to WebForms - Any problems with this?

So I have been developing in ASP.NET WebForms for some time now but often get annoyed with all the overhead (like ViewState and all the JavaScript it generates), and the way WebForms takes over a lot ...