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

0
votes
1answer
366 views

How to create a Request Specific Thread Safe Static int Counter?

In one of my server application I have a class that look like, class A { static int _value = 0; void DoSomething() { // a request start here _value = 0; _value++; ...
2
votes
1answer
404 views

Organizing ASP.Net Single Page Application with Nancy

As a personal project, I'm creating a single page, asp.net web application using Nancy to provide RESTful services to the single page. Due to the complexity of the single page, particularly the ...
1
vote
3answers
711 views

Setting up ASP.NET structure for code

I've always coded in C# MVC3 when developing web applications. But now i wanted to learn a bit more about developing web sites with just ASP.NET. But now i'm wondering what a good setup for my code ...
0
votes
2answers
276 views

add a prefix to localhost [closed]

Is there any possibility to add a prefix before localhost? My question is that I want to add a prefix before localhost for my project url (ie. "dev.localhost/project/default.htm"). This is for an ...
2
votes
1answer
2k views

Should I implement BackBone.js into my ASP.NET WebForms applications?

Background I'm trying to improve my group's current web app development pattern. Our current pattern is something we came up with while trying to rich web apps on top of ASP.NET WebForms (none of us ...
-3
votes
1answer
3k views

quick approach to migrate classic asp project to asp.net [duplicate]

Recently we got a requirement for converting a classic asp project to asp.net. This one is really a very old project created around 2002/2003. It consists of around 50 asp pages. I found very little ...
4
votes
1answer
176 views

Licensing approach for .NET library that might be used desktop / web-service / cloud environment

I am looking for advice how to architect licensing for a .NET library. I am not asking for tool/service recommendations or something like that. My library can be used in a regular desktop ...
0
votes
1answer
872 views

SOA in .NET 4.5 with MSMQ Durability

I have been doing some investigation regarding ASP.NET Web API. I have enjoyed using the WCF REST template to create new RESTful web services, and Web API seems to be a cleaner iteration on that. ...
2
votes
2answers
1k views

Sharing authentication methods across API and web app

I'm wanting to share an authentication implementation across a web application, and web API. The web application will be ASP.NET (mostly MVC 4), the API will be mostly ASP.NET WEB API, though I ...
1
vote
1answer
177 views

multi-clients web application,should I use custom user controls or a common user control

Say my company is going to build a complicated asp.net web form education system. One of the module is web based registration. To make it flexiable, we decide to use user control(ascx) with ...
5
votes
6answers
462 views

.NET - refactoring code

I have inherited and now further develop a large application consisting of an ASP.NET application, VB6 and VB.NET application. The software was poorly written. I am trying to refactor the code as I ...
1
vote
1answer
1k views

How to structure a XML-based order form using ASP.NET

First question here; please help me if I'm doing something wrong. I'm a graphic designer who's trying to teach himself ASP.NET/C#. My server-side background is PHP/WordPress and some ASP Classic, and ...
1
vote
1answer
359 views

ASP.NET MVVM Handling multiple Data Transfer Objects on a single page

I have an asp.net mvc "edit" page which allows the user to make edits to the parent entity, and then also "create" child entities on the same page. Note: I'm making these data transfer objects up. ...
4
votes
2answers
417 views

Do ASP.Net Web Forms actually produce ADA compliant HTML? Does the ASP/AJAX toolkit undermine the goal of ADA compliance?

I'm trying to convince my employer to let us use the Microsoft ASP/AJAX toolkit since it simplifies the implementation of many controls. However they have rejected the idea on the grounds that it ...
5
votes
2answers
599 views

Is server validation necessary with client-side validators?

I recently created a .net web app that used over 200 custom validators on one page. I wrote code for both ClientValidationFunction and OnServerValidate which results in a ton of repetitive code. My ...
6
votes
8answers
25k views

What is the best way to create HTML in C# code?

I have a belief that markup should remain in mark-up and not in the code behind. I've come to a situation where I think it is acceptable to build the HTML in the code behind. I'd like to have some ...
8
votes
7answers
9k views

Best practices for logging user actions in production

I was planning on logging a lot of different stuff in my production environment, things like when a user: Logs In, Logs Off Change Profile Edit Account settings Change password ... etc Is this a ...
-1
votes
1answer
430 views

Getting some experience with asp.net [closed]

Hi I recently learned asp.net webforms and looking to get some experience under my belt using it.I found a website that provided some exercises here: asp.net exercises There weren't that many and I ...
4
votes
2answers
581 views

Is ASP.NET MVC completely (and exclusively) based on conventions?

--TL;DR Is there a "Hello World!" ASP.NET MVC tutorial out there that doesn't rely on conventions and "stock" projects? Is it even possible to take advantage of the technology without reusing the ...
4
votes
1answer
679 views

Scenarios for differences between UICulture and Culture

In .NET there are two "culture" values, UICulture and Culture. The first one is for localized texts on the UI, while the latter sets the culture for date and number formats. I can't come up with any ...
3
votes
3answers
660 views

How to deal with almost the same enums?

I need to define enums in several classes. The majority of fields are the same in all of the enums. But one has one or two more fields, another has fewer fields. Now I wonder what is the best way to ...
1
vote
1answer
324 views

WCF/webservice architecture question

I have a requirement to create a webservice to expose certain items from a CMS as a web service, and I need some suggestions - the structure of the items is as such: item - field 1 - field 2 - field ...
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 ...
1
vote
2answers
533 views

What is the impact of CSS Validation Failure?

I am developing a asp.net website. When I used the CSS property "word-wrap", VIsual Studio 2010 is showing a warning: Validation (CSS 2.1) 'word-wrap' is not a known CSS property name. When I tested ...
-2
votes
3answers
5k views

How do I Export to excel on aspx page?

I am trying to take data that I request from an access database and put it into and excel file on the client computer. I usually use ajax to request a summary of the data I need. It is formatted ...
14
votes
5answers
10k views

Is There a Real Advantage to Generic Repository?

Was reading through some articles on the advantages of creating Generic Repositories for a new app (example). The idea seems nice because it lets me use the same repository to do several things for ...
1
vote
2answers
254 views

Suggestions needed on an architecture for a multiple clients and customisable web application

Our product is a web based course managemant system. We have 10+ clients and in future we may get more clients. (Asp.net,SQL Server) Currently if one of our customers need extra functionality or ...
4
votes
3answers
469 views

How much should I rely on Visual Studio's Auto Generated Code?

I'm reading about ASP.NET (VB.NET) and I want to built my professionally website. I'm wondering though; I'm still using the basics so I'm really just a novice, but how much should I rely on Visual ...
4
votes
3answers
2k views

Is the .NET/Microsoft technology stack a financially viable option for a startup with limited finances?

I have an unpaid internship for a very new startup company with little tech experience that's trying to be a Groupon clone. They're currently using Wordpress and I've been trying to decide what web ...
0
votes
1answer
693 views

Sequence Diagram for Response Redirect in ASP.Net Webforms

In asp.net webforms I have a home aspx page that has a “Go” button. [This is the only control in this page]. When this button is clicked, the user is redirected to “UserProfile.aspx” page. How can we ...
1
vote
1answer
248 views

Relevance of Metro to ASP.Net developer?

I am a web developer, working mostly with ASP.Net(webforms + MVC), C#, javascript and so on. As you know, continuous learning is very important for us, but time is not infinite. I do dabble with the ...
2
votes
3answers
1k views

Query regarding VBA as career option [closed]

I am a dot net developer, with over 7 years experience in VB, Vb.net, C# and Asp.net. Would it be worthwhile to learn VBA/VSTO? Would it be adding value to my career? Would there be any companies ...
2
votes
1answer
322 views

Starting a new project and need ideas for handling Phishing/Brute Force attacks AND Logging access [closed]

I'm starting a brand new project. The main access from the client side app will be via an API written in ASP.Net MVC3. I'm looking for discussions on how best to handle logging information for ...
6
votes
3answers
457 views

What do you call an interface with no defining methods used as property setters

In ASP.NET and C# I've ran across this before. Your class needs to implement interface ISomething in order for something in the super class to supply something to you. I can't remember the details, ...
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 ...
12
votes
4answers
20k views

What exactly is “Web API” in ASP.Net MVC4?

I know what a Web API is. I've written API's in multiple languages (including in MVC3). I'm also well practiced in ASP.Net. I just discovered that MVC4 has "Web API" and without going through the ...
12
votes
3answers
9k views

Why would more CPU cores on virtual machine slow compile times?

[edit#2] If anyone from VMWare can hit me up with a copy of VMWare Fusion, I'd be more than happy to do the same as a VirtualBox vs VMWare comparison. Somehow I suspect the VMWare hypervisor will be ...
-2
votes
2answers
680 views

How do I tell the cases when it's worth to use LINQ?

Many things in LINQ can be accomplished without the library. But for some scenarios, LINQ is most appropriate. Examples are: SELECT - ...
2
votes
1answer
3k views

Developing Razor Web Pages - Visual Studio and/or WebMatrix?

When I started learning about Web Pages I followed several of the Microsoft tutorials, all of which utilized WebMatrix. I did this until I realized that WebMatrix offered no debugging. Wait? What?? No ...
83
votes
18answers
11k views

Are unit tests really that useful? [closed]

I just graduated with a degree in CS and I currently have a job as a Junior .NET Developer (C#, ASP.NET, and web forms). Back when I was still in university, the subject of unit testing did get ...
-2
votes
2answers
4k views

What is dependency of ASP.NET MVC on .NET Framework and how to use it with .NET 2.0?

When you download and install asp.net MVC, does it just add code to the .net framework class library? Or does it also modify the installed Visual Studio editions? Another question: If it is just ...
2
votes
1answer
443 views

Is Google's Page Speed not working fine?

I've been making small improvements to a public ASP.NET site that I have and have ran it through Google's online Page Speed several times. I have a specific problem, but something that really threw me ...
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
295 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 ...
1
vote
2answers
1k views

What are the best practices to use NHiberante sessions in asp.net (mvc/web api) ?

I have the following setup in my project: public class WebApiApplication : System.Web.HttpApplication { public static ISessionFactory SessionFactory { get; private set; } public ...
2
votes
1answer
2k views

Best way to reuse common functions between ASPX pages ?

I have a bunch of functions that are used across multiple ASPX files. I want to condense these down to one file to be used for all the ASPX files. I have a few ideas but I want to know what the ...
3
votes
2answers
1k views

Should this code/logic be included in Business Objects class or a separate class?

I have created a small application which has a three tier architecture and I have business object classes to represent entities such as User, Orders, UserType etc. In these classes I have methods that ...
7
votes
3answers
7k views

Best Architecture for ASP.NET WebForms Application

I have written an ASP.NET WebForms portal for a client. The project has kind of evolved rather than being properly planned and structured from the beginning. Consequently, all the code is mashed ...
0
votes
3answers
353 views

Does connection pooling work fine to execute 60 DB queries to load a page?

We use Linq2Sql in an ASP.NET application. Unfortunately the eager-loading in Linq2Sql isn't as powerful as in Entity Framework, so a lot of the data has to be lazy loaded as needed. Taking ...
3
votes
5answers
1k views

Overwhelmed by complex C#/ASP.NET project in Visual Studio 2008

I have been hired as a junior programmer to work on projects that extend existing functionality in a very large, complex solution. The code base consists of C#, ASP.NET, jQuery, javascript, html and ...