Questions tagged [webforms]
The webforms tag has no usage guidance.
58
questions
195
votes
19
answers
252k
views
When to favor ASP.NET WebForms over MVC
I know that Microsoft has said
ASP.NET MVC is not a replacement for WebForms.
And some developers say WebForms is faster to develop on than MVC. But I believe speed of coding comes down to ...
150
votes
8
answers
24k
views
Are bad programming practices typical within the software industry? [closed]
I just started my first job as a software developer over a month ago. Everything I have learned about OOP, SOLID, DRY, YAGNI, design patterns, SRP, etc. can be thrown out the window.
They use C# .NET ...
38
votes
1
answer
36k
views
Dynamic form builder forms and database design? [closed]
Say your users can create their own web-based forms (textboxes, selects, etc) and publish them on the web for their users to fill out.
Does anyone have a resource or any advice on how to architect ...
31
votes
5
answers
47k
views
Should we use Entity Framework?
We currently have the following stack :
VS 2005
Web forms
SQL Server 2005
IIS 6
We are planning on transitioning to this :
VS 2010
MVC and Web Forms
SQL Server 2008
IIS 7
My question is, when we ...
24
votes
2
answers
34k
views
Why would anyone use multipart/form-data for mixed data and file transfers?
I'm working in C# and doing some communication between 2 apps I'm writing. I have come to like the Web API and JSON. Now I am at the point where I am writing a routine to send a record between the two ...
17
votes
7
answers
4k
views
ASP.NET Webforms developers and web designers: how to interact?
I'm an ASP.NET Webforms developer, and I face some problems when I deal with designers.
Designers always complain about the asp.net server controls. They'd rather just have an html file and create ...
10
votes
3
answers
17k
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 ...
8
votes
6
answers
2k
views
Remake old web forms application in asp.net mvc [duplicate]
I've inherited the code maintenance of a complex web site for a customer that continuously requests enhancements for it. This application took years to develop and I'm facing increased difficulties to ...
8
votes
3
answers
481
views
Does the lack of states on HTTP make the protocol unfit for modern applications? [closed]
I changed from PHP to ASP.NET, now I’m working with webforms in a somewhat large company. I given some though and research to back my impressions on ASP.NET webforms and I came to the conclusion that ...
8
votes
1
answer
5k
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 ...
7
votes
1
answer
32k
views
When and why to use Page.ResolveUrl
So, i had a discussion with a colleague on why and where should we use Page.ResolveUrl("~/PageUrl.aspx") instead of ./PageUrl.aspx.
For example, are there any differences between:
<a href='<...
6
votes
2
answers
10k
views
ASP.NET user control best practices, programmatically or markup?
I've just started an internship with a company whose main product is an ASP.NET web forms. My related experience so far has been with Java and front end web development. My current task is to make ...
6
votes
2
answers
5k
views
What is the difference between PHP and ASP.NET Web Forms in page size?
I plan to program web applications for small companies. When I read about ASP.NET Web Forms, I liked its way of building dynamic sites.
However, I have heard from a friend that Web Forms could ...
5
votes
2
answers
2k
views
Entity Framework Domain Object as Business Object
If I am not concerned with unit testing and switching my data access out at a later time, would using my entity framework objects as my business objects be okay?
I have an existing database for which ...
5
votes
0
answers
204
views
Does a design rationale exist for the PHP-Style Nested Webform pattern? [closed]
I'm working on an implementation of a webform decoder and am looking to support the nested webform pattern employed by PHP and Ruby/Rails (possibly amongst others).
PHP: parse_str(); Ruby: Rack::...
4
votes
2
answers
272
views
How can I publish a Visual Studio Web Application when not all files are in the project?
We have a solution containing a web application project (mostly webforms) and two separate "config" projects that are copied over depending on which client's specific output is needed.
Presently to "...
4
votes
1
answer
685
views
Drawbacks of using pure html in webforms? [duplicate]
I'm maintaining an ASP.NET Webforms 4.5 application for a few months and frankly i'm fed up with server controls. So i switched to pure HTML and Javascript for front end, when creating new content (or ...
3
votes
3
answers
3k
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 ...
3
votes
1
answer
6k
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 ...
3
votes
1
answer
93
views
WebForms, JQuery and the DRY principle
I'm working on a WebForms application that has several pages. Each page currently loads JQuery in a script tag in the head. A colleague I'm working with insists this is WET code and a violation of ...
3
votes
3
answers
2k
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
2
answers
915
views
Mix Web Forms and ASP.NET MVC
I am working on a very large ASP.NET Web Forms project. Our team wants to rewrite this project with ASP.NET MVC and domain driven design. Is it a good idea to combine Web Forms with MVC?
With this ...
2
votes
2
answers
1k
views
Obtaining the best of both worlds: MVC and WebForms
Rather than asking a general question about WebForms vs MVC (such as in ASP.NET v/s ASP.NET MVC), I have a specific quesiton.
It appears the main differences between the two approaches are
WebForms ...
2
votes
1
answer
2k
views
use of script tag in different position of page [closed]
I found that sometimes the script don't run properly when I add script tag in the head section. But when I add script right before the ending tag of body it works fine.
What is the difference between ...
2
votes
2
answers
483
views
When to update a database from changes in a "live" HTML form?
I'm working with some software that uses an HTML form for a user interface to change some configuration information. The back end is a database (loosely speaking).
The front end has a hierarchy of ...
2
votes
2
answers
3k
views
Design pattern for an ASP.NET project using Entity Framework
I'm building a website in ASP.NET (Web Forms) on top of an engine with business rules (which basically resides in a separate DLL), connected to a database mapped with Entity Framework (in a 3rd, ...
2
votes
2
answers
256
views
The best way of handing a form post as an API type of submission
I have recently been tasked with a project to create an API that handles a form post using PHP.
I have never done something like this before and this will be handling payments so I would like to do ...
2
votes
1
answer
888
views
Newbie ASP.NET developer being forced into MVC4 with WebForms
I recently got hired on as a new ASP.NET developer (C# code behind). When I arrived, I was told that they were moving to MVC 4, and so I bought two books on that. However, the other day I learned ...
2
votes
1
answer
3k
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 ...
2
votes
2
answers
1k
views
Data Storage patterns for intermediate saving a web-based workflow form
Background: I am developing a wizard based web form where users can log in an fill in some details and press next and previous to go back and forth in the wizard before they actually submit. When the ...
2
votes
3
answers
319
views
Usage of repository between EF model and code consumer
I have binary data in my database that I'll have to convert to bitmap at some point. I was thinking whether or not it's appropriate to use a repository and do it there. My consumer, which is a ...
1
vote
4
answers
532
views
Where should I insert data into the database?
I am making a pretty standard PHP sign up form that will validate the data the user entered and then redirect to a page with a success message. I would like to store this data in a database. Should I ...
1
vote
2
answers
443
views
Identifying states when using state machine to validate a form field
Scenario is simple, a password field with few validation rules.
The states I came up with are
default ( when the form loads or reset button is pressed)
filled ( should this even be a state ?)
valid ( ...
1
vote
1
answer
271
views
Identifying Risks/Gotchas When Using Static
I am intending to come from the perspective of development choices, code reviews, and general testing against defined environments (Development, Test, Production, etc.). I will be using C# as the ...
1
vote
1
answer
118
views
Automating form error handling
I'm not sure if I'm being clever or making things more difficult. I'm working within a custom MVC framework, and within some of my "views" which contain forms I'm preserving input and styling errors ...
1
vote
1
answer
703
views
Queue management project - Recommendations
I would like to develop a Patient Queue management system with online booking.
In this case there are options to generate queue tokens for various departments. For example dept A will have tokens ...
1
vote
1
answer
69
views
How can I cleanly handle a several permutations of Resource Request, (Optional) Login Control, Resource Result?
Whenever a user interacts with a resource while not logged in, I need to:
Redirect them to a secure page.
Show a signup/login dialog (which is usually partially customized based on the resource, ...
1
vote
1
answer
533
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 rule-...
1
vote
1
answer
980
views
How can I bind an interface to a class decided by an xml or database configuration at the launch of the application?
I'm re-working on the design of an existing application which is build using WebForms. Currently the plan is to work it into a MVP pattern application while using Ninject as the IoC container.
The ...
1
vote
1
answer
863
views
Should I separate client-side API calls into a separate .js file and class, and reference that?
Summary
Instead of calling WebApi straight from a Web Forms User Control, I have created JS class which contains functions returning jQuery AJAX requests. The control would instantiate the class and ...
1
vote
1
answer
35
views
Web Crawling Form Help Needed [closed]
If I have a form built on my website. How can I get that form 1 to plugin results into another websites form 2 and extract information to display on my website?
For example, if I wanted to create a ...
1
vote
0
answers
2k
views
How to Implement Complex Form Data?
I'm supposed to implement a relatively complex form that looks like follows, but has at least four more pages requiring the user to fill in all necessary information for the tracks:
This data will ...
0
votes
3
answers
5k
views
ASP.NET Web Forms is bad, or what am I missing? [closed]
Being a PHP guy myself I recently had to write a spider to an asp.net site. I was really surprised by the different approach to ajax and form-handling.
For example, in the PHP sites I've worked with, ...
0
votes
1
answer
206
views
How Common/Acceptable is it for a .NET developer to abstain from WebForms as a rule? [closed]
I work at a mostly .NET shop.
A coworker has more of a background in open-source MVC (think RoR and Spring MVC). She seems to really enjoy .NET MVC, but she practically refuses to work on Web Forms, ...
0
votes
2
answers
130
views
Reinventing the Wheel: C# Webforms Content Management System
We need a content management system, but we need alot of features that are not available on the market now: integration with Azure AD, integration with our phone system, and a couple others.
I'm ...
0
votes
2
answers
693
views
Which asp.net technology fits this situation best?
I think I can count WebAPI out, but WebForms, WebPages, and MVC are all possibilities.
I want to create an asp.net web site that is primarily static content and links to other sites. The only "fancy"...
0
votes
2
answers
588
views
Abuse of 302 Temporary Redirect
So I am junior programmer, and I just started working with .net webforms a little over six months ago. I have been studying SEO, and trying to optimize best practices with a senior level developer. I ...
0
votes
1
answer
426
views
Generating URL's that fill forms on my site
I have a asp.net web forms page where admins can search by user last name and then select them and approve or deny their access to the site. When users request access, an email is sent out informing ...
0
votes
1
answer
214
views
Flexible authorization design in ASP.NET pages?
I'm developing an ASP.NET webforms application with pages which displays information based on the authorization level of the authenticated user (very typical). I will write a simple example of the ...
0
votes
1
answer
1k
views
Model View Presenter for WebForms and Winforms
I have a windows forms project using the Model View Presenter pattern and would like to build a web forms project on top of the same MVP structure.
The windows forms project knows nothing of ASP.Net ...