Tag Info

New answers tagged

0

What are those role-dependent attributes? That's strange for users to have different sets of attributes, since they can change roles in a blink. What will you do with the attributes from role A when user no longer has the role? Delete them? What if tomorrow that user will change his role back to A? So, one approach is to maintain a single overly-bloated ...


2

Separating code into class libraries (ie. seperate assemblies) can improve design because you can manage dependencies clearly - eg. you can ensure the frontend have a reference to the data access layer but not the other way around. .Net allows circular dependencies between classes, but not between assemblies, and circular dependencies between layers should ...


4

no, there is no difference between calling an ASMX web service vs. any other kind of web service. The code on the server is not exposed because .cs files are by default not served by Asp.Net, or the code for the ASMX is compiled into an assembly in the bin folder, depending on the type of project (Web Site vs. Web Project) deployed. It may be possible to ...


1

It seems like a fairly unstandard way of building out of pages, but that doesn't necessarily mean that it's bad. This way it can be fully dynamic without being tied to the markup. I can see advantages in a highly fluid CMS, for example. In regards to what they generate in an HTML sense, this answer seems to cover most the controls you are asking about. ...


2

***Edited I am editing here because I did not really answer you question: ASP.NET was created around 14 years ago, when AJAX and DOM manipulation where in their infancy. The idea was to create controls and drag and drop them on a form. The controls would be part of a tree under the web form. Anyway, At that time, ASP.NET fit the bill for 90% of projects, ...


-1

MVVM is possible in. NET 4.5 with model binding and the use of templated bound controls like FormView. What i do is to design ViewModels for each UserControl and nested UserControl and then use a FormView that is always in EditMode, where i include the controls that bind to data using Binding expressions. Then i set the SelectMethod and UpdateMethod of the ...


1

SQL Server has a feature called query notification. The application submits a query and some parameters. This is know as a subscription. If data changes so the result of this query would be different with the new data, the notification fires. From BoL: Query notification subscriptions must be created from a database access interface. Transact-SQL does ...


0

Your question is very hard to read, But I think I can answer the general question. my understanding of your problem is this: You have a website which authenticates users via a web service You need to be able to test the website You should ensure your setup has these things: The authservice client code implements an interface. You have created a Mock ...


2

If I understood your colleague's suggestion correctly, the solution proposed was to have a web.config key that contains a type name for the implementation class. You can use this name to retrieve the type, instantiate it (or register in DI container), and use it. I.e.: public interface IAuthenticationBlaBla { ... } public class ...



Top 50 recent answers are included