C# - Implementation Of Event Aggregator?

Mar 13, 2010

I want to use Event Aggregator to allow communication between presenters on the page. I am using currently this implementation http://kentb.blogspot.com/2008/03/event-hub.html. But in asp.net I am not sure about side effects which can occur.

View 1 Replies


Similar Messages:

Application - Configuration Implementation - Serialize Collections - Pick Up File Write Event To Reload New Instance Of Config Into Memory

Oct 11, 2010

I am working on a web app that will heavily rely on configuration. The configuration is also will be written by another process or human. I am looking to get response on best practices in .net 3.5 on how to implement this case. I had used the configuration section of an early version of the Enterprise Library Applications Block. I really liked working with it but from what I hear it is discontinued in current versions. Hence the question... Need to be able to serialize collections, pick up file write event to reload new instance of config into memory.

View 1 Replies

MVC :: Less Aggresive Implementation?

Jan 11, 2010

I like this idea when I don't have to use slow expression compilation to be strongly typed. But the current implementation is too aggresive for me - I hate virtualization my action methods.My question is: Are you planning some (branch) implementation that will not require action method virtualization? I think that most of code could be shared in both branches...

View 2 Replies

SSO Implementation Between OBIEE?

Aug 11, 2010

We have application build in asp.net in which on button we need to go to OBIEE dashboard. Similarly need to come back from OBIEE to ASP.NET application.

Currently I am using redirecting from ASP.net page to OBIEE with username and password in the URL. But as per my requirement i need to implement SSO or username and password should not be passed in URL query string.

View 1 Replies

How To Do Custom Bind() Implementation

Nov 27, 2010

When using a databound control the Bind() method does some magic to first extract the current value from the datasource and then pass an update back to the datasouce when an update is performed.

Now I have created a custom datasource and am supplying my own custom data which all works fine. For read only the following code works a treat. As you can see I am accessing both a named index into the collection and a property.

Now when using Bind() I cannot find a way to accomplish this. Bind() would appear to look for either an object property or a database row column (not sure how it does this) and I cannot find a way to change this.

It shouldn't be that difficult because the hard part is obtaining the data, which my code below can already do. The changes are passed back as a dictionary which should be simple. But I need a way to write my own bind method and I haven't managed to find out how.

Code:

Surname : <asp:TextBox ID="TextBox2" Text='<%#((MyCustomDataRow)Container.DataItem)["Surname"].EditDataString%>' runat="server" />

View 10 Replies

Architecture :: A Proper DI Implementation?

Feb 27, 2011

I'm fairly new to dependency injection but it seems like a proper DI implementation will be fairly complex.

For example, DI requires a centralized class that manages the configuration and resolves the dependencies at runtime.

DI is also based on the concept of using interfaces. For example, a SpecialLogger should use an ILogger interface.

The centralized DI manager class will need to register types - for example, associate ILogger to SpecialLogger.

SpecialLogger will also need to implement the ILogger interface so SpecialLogger can be used through the DI ILogger interface.

Therefore, it seems like a sln using DI will need multiple projects to support DI. Here is an example for logging:

* MyCompany.MyDivision.Framework.DI.Management - this would have the DI manager where dependency types are registered and resolved at runtime
* MyCompany.MyDivision.Framework.Logging - this would have the implementation of a logging class. The main logging class would need to implement ILogger.
* MyCompany.MyDivision.Framework.DI.Interfaces - this would have the ILogger interface.

Interfaces would need to be stored in a separate class library from the DI manager because both the DI manager and SpecialLogger use the ILogger interface. Since the DI manager associates SpecialLogger to ILogger a circular reference would be encountered without a separate class library to store the ILogger interface.

View 1 Replies

AJAX :: AutoCompleteExtender Implementation Guidelines

Jun 1, 2010

use a textbox and the AutoCompleteExtender to search for the customer. For example, on the PurchaseOrder form, I have a textbox with a Customer field, and when I type in the name of the customer, the AutoCompleteExtender shows the possible matches.Now, it takes a few seconds to show the list of values, even with setting the correct values on the extender, and if the user types in the name of the company, e.g. Contoso, and leaves the textbox, there might be 2 Contoso's in the database. The AutoCompleteExtender does not continue when the user leaves the textbox, thus the CustomerId is not determined yet.

View 1 Replies

MVC :: Really An Implementation Of Model - View-Controller?

Feb 8, 2010

In MVCs with which I have worked, the Controller has the job of co-ordinating a number of views, consequent to some user action against the model.

However in ASP MVC, there never appears to be more than 1 view resulting from an http request (please correct me if I am wrong). Instead the "Controller" in ASP MVC appears to be a URL Routing Target.

Also, in my (admittedly limited) experience, the Model in MVC is intended to be a model of the problem domain of the application. However in ASP MVC, the "Model" appears to be a model of the
data binding of the corresponding view.

View 3 Replies

C# - Proper Implementation Of N-layer Architecture?

Feb 28, 2011

I have been learning C# for the last year or so and trying to incorporate best practices along the way. Between StackOverflow and other web resources, I thought I was on the right track to properly separating my concerns, but now I am having some doubts and want to make sure I am going down the right path before I convert my entire website over to this new architecture.

The current website is old ASP VBscript and has a existing database that is pretty ugly (no foreign keys and such) so at least for the first version in .NET I do not want to use and have to learn any ORM tools at this time.

I have the following items that are in separate namespaces and setup so that the UI layer can only see the DTOs and Business layers, and the Data layer can only be seen from the Business layer. Here is a simple example:

[Code]....

Am I completely off base? Should I also have the same properties in my BLL and not pass back DTOs to my UI? what is wrong and what is right. Keep in mind I am not a expert yet.

I would like to implement interfaces to my architecture, but I am still learning how to do that.

View 4 Replies

Proper Implementation Of MVP With Complex Controls?

Jan 20, 2010

I'm currently implementing a project using asp.net, c# and the MVP (Model-View-Presenter) pattern. The main purpose of this solution is to deliver a graph to the consumer, to be used by a variety of systems. It is basically a custom graph server.

The view page in this particular case has an MSChart control on it, which has to be dynamically populated and configured based on parameters in the QueryString. This can be as diverse as totally different types of data sets, display modes and so on, using a lot of the properties of the chart control.

Many of these properties are again of types which are particular to the chart control and would require the same dependencies as the chart control itself if they are to be set by the presenter.

I'm trying to figure out the best way to expose the properties to the presenter so it can work its magic.

Should I:

Just expose the whole chart object and live with a system.web type dependency in the presenter project? Make accessor and translation properties for all of the chart control properties so that I don't have the dependency, but add lots of complexity? Other, that I haven't thought of?

To me it seems that it would be against the MVP pattern to bubble a display control up into the presenter, but it seems that trying to map all the properties to DTOs or similar would be a lot of work that would add a lot of complexity, and while the solution would be somewhat more loosely coupled, I'm not sure the gain would be worth it in this case. How would you implement something like this, given MVP?

View 2 Replies

Website Translation Architecture And Implementation?

Mar 18, 2011

I'm conducting a project in which a website should have multi-language support.Now, this website is supposed to serve about 500K+ visitors a day, so it must be super-efficient.

I've created a table of parameters {[ID],[Name]} AND a linkage-table {[objectID],[parameterID],[languageID],[value]}. I think it's the best way to deploy multi-language support while having the privilege to translate different parameters for each language.

As far as I know, server's memory is much faster than a physical HDD. Therefore, I'm planning to store ASP.NET Application State objects for my translation architecture.[URL]

View 3 Replies

.Net MVC And Comet (ajax Push) Implementation

Jun 8, 2010

I'm trying to implement an auction website and I search in web the Ajax Push is the best way where I can use! So, I'm finding some samples in web to learn how to implement Ajax Push (comet) in client and server. By the way, I find some samples in ASP.Net Webforms, but no in MVC version. I'd like to find a demo, sample, anything ... that use MVC

View 3 Replies

Architecture :: Implementation Of User Authentication In C#?

Feb 15, 2011

I am working on a web application project with a layered architectural style having DAL, BLL, Service Layer and Presentation Layer. It's going to be a Web forms application.

My intent is to try using some of the new features of .Net 3.5 or 4.0.

Currently, I am thinking through different approaches for implementing Authentication in this project.

I have a query regarding the design of the application, particularly Authentication.

In which layer should I have Authentication class? BLL? If I implement the Authentication class in BLL, should I be having an app.config in the same class library project to contain the Database connection string and all.

View 7 Replies

Implementation Of SSL On SaaS App With Separate Domains?

Mar 19, 2010

We are developing a SaaS application in Asp.net, where we have used the Single application and Per Tenant Database. The application is more like a Saas e-commerce where SSL and data separation are required features. Now we want that every Tenant can have his separate top level domain names instead of the second level domains like 37Signals. So all the domains abc.com and xyz.com are using the same single app.

What i need to know is how to implement and deploy the https in the application so that everything works out fine, also how should we configure the NameServer and web application on IIS so that all the domains are pointing to the one application.

View 1 Replies

Google Search Appliance (GSA) Implementation In .Net?

Feb 24, 2011

we are replacing our current search engine with GSA in one of the portal sites. The GSA admin sets up everything we need for (collections, dedicated IP, Indexing). How do i get the results from GSA and format it (results will be in XML) and present to the user like google search results (Title, summary ...) in C#.

View 1 Replies

.NET :: Local Sequence Cannot Be Used In LINQ To SQL Implementation

Nov 2, 2010

I just want to do a select in one SQL SERVER TABLE using LINQ to SQL. And this select statment needs to compare one SQL filed to one hashtable key value.

Dim q = From product In db.productDB _
HashVar As DictionaryEntry In MyHashTableVar, _
Where _
product.productID = HashVar.Key

"Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains operator"

View 2 Replies

MVC :: Sample Application With AJAX Implementation?

Oct 8, 2010

I am new and want to work on MVC. I have Nerddinner and Music store. Is there any other sample application for MVC2 with AJAX implementation?

View 3 Replies

AJAX :: Best Implementation For Template Page?

Feb 4, 2010

i have a template page which open from several page and load the data from several tables in data base.want to know what is the best way to implement this tepmlate page?i want some nice control to implement this page.i wrote its code but want use some graphical controls like rad window to implement it. i use rad window but it doesnt enough to me.

View 1 Replies

Architecture :: Key, Value Pairs Implementation In Class?

Feb 16, 2010

In a project im working on there are many sql tables containing different ID, Name pairs. Those are represented as Enums in classes that need them however that requires casting since tables contain ID only.Also when serialize the Enum contains the ID not value.

View 3 Replies

Web Forms :: Horizontal Treeview Implementation?

Mar 16, 2011

I am looking for ASP.NET horizontal treeview implementetion/

something like this:

http://www.codeproject.com/KB/WPF/CustomTreeViewLayout.aspx

Any ready to use implemetition?

View 1 Replies

Architecture :: Search Engine Implementation?

Jul 22, 2010

not sure if I'm posting to the right thread or not.. but here is the questiondoes anyone know how to implement a best pratice on SEO?One of the example is: if the user types "brand new canon camera" then I want the system to find a sequence of string in the database that contains "new", "cannon", "camera". It is ok with or without the word "brand". However if the user types "HP laptop DV1000" and i want the system to find all HP laptop whether new or not but limited to specific series.

View 3 Replies

Web Forms :: VB.NET 3.5 Isolation Error Implementation?

May 16, 2010

I am implementing an Isolation test in my project to ensure the data is the same in the as it was when originaly retrieved before submitting the new form data.I was wondering what would be the best way of handling this error (not an exception). The following code is the function that will determine whether or not an error should be reported, If 1 or more fields of the current record is different from the original it will return false, otherwise it will return true. How should I go about handling a false response for a best practice, Should I use a statcode and transfer to the main page displaying a message with the state code, or should I send a simple msgbox, or simply just log the error and transfer the user to main page.

[Code]....

View 1 Replies

Web Forms :: Forum Implementation In Website

Jul 25, 2012

How to create a forum in my website??

View 1 Replies

Way To Create A List - Simple Cache Implementation

Mar 16, 2010

I need to build up a List<object> and cache the list and be able to append to it. I also need to be able to blow it away easily and recreate it. What is a simple way to accomplish this?

View 2 Replies

Javascript - Print Functionality Implementation In Website?

Nov 29, 2010

Currently I am implementing print functionality in a website. Can any one tell me what are the best practice to implement this?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved