Architecture :: Notifying UI Of Update Failure In The BLL?

Jan 11, 2011

I have a web form for a user to update their user information. I have an ObjectDataSource configured to use the Update method in my BLL. If the user changes their email address in the web form, the BLL Update code checks to make sure the email address is not already in use. If it is in use, I want to cancel the update and notify the user.I was going to raise an ApplicationException in the BLL and catch it in the web form code-behind, then present a message to the user. But from what I read, this is bad practice: http://blogs.msdn.com/b/kcwalina/archive/2005/03/16/396787.aspx

View 9 Replies


Similar Messages:

.NET MVC - Models Notifying The Views?

Dec 1, 2010

In some of the classic descriptions of MVC, the Model notifies Views via the observer pattern. It seems to me that this doesn't happen with ASP.NET MVC, and so one of the fundamental relationships between Model, View, and Controller is missing.

Is this the case? If so, why?

View 2 Replies

Notifying Change Of URLs To Users?

Jan 7, 2011

I have recently updated a website. All of the urls have changed. Now I get traffic to old urls that doesn't exist anymore. However, most of these url's have corresponding pages on the new site. I believe most of the traffic to the old urls are spiders. What would be the correct way to handle this?

Preferably I'd like a solution that gives a nice experience for the real users if they type in an old url (or use an old bookmark they've made) but that also notifies the spiders of the change of url, so that they can update their registers. However, if the two are hard to combine, the last one is prioritized (since most of the traffic is spiders). I'm using ASP.NET

View 2 Replies

Web Forms :: Notifying User Before An Asynchronous Operation Starts?

Jun 24, 2010

I my web application I perform a time-consuming asynchronous operation. For this, I need to inform user before it starts and after it ends. The latter works as expected, but I cannot make GUI change before asynchronous operation starts. Here is the code snippet:

protected void Button1_Click(object sender, EventArgs e)
{
...

[code]...

View 6 Replies

Architecture :: Bulk Update With Status

Jan 12, 2010

Lets say i have a button control on a page and a label control. On clicking this button it performs series of actions say Action 1 , Action 2. Action 20 which will take say approx 1 hour to complete. What i need is, once this long processing is started, My web page should show the status of each action on label. Eg. After clicking a button, Label1 text should be "Action 1 is started" after Action1 is completed and Action 2 is started ,.... Label1 text should be "Action 1 Done...Action 2 started" I need this so that my user can see whats the current state of processing.

View 7 Replies

Architecture :: Periodically Update Db In The Background?

Jan 29, 2010

I need to update my db every 5 minutes but don't want it to effect how my web application is working (should work behind the screens).

I currently do a web services call from a button to do the manual update of the db but want this to happen automatically.

What is the best way to do this in asp.net in php the equivalent would be a cron job.

Can I have a class that makes this call in the background?

View 10 Replies

Architecture :: Update Database Of Wpf Client Applications?

Sep 15, 2010

I have a WPF Windows application with sqlite database which we distribute to our clients. The application consists of some database table which changes every month. eg. the application users a exchange rate table which is valid for one month.

What is the best approach to update the data in these table. note that the whole application is not changing but only the data in it changing, no change to structur of the database or table.

View 3 Replies

Architecture :: Update Client Form Periodically?

Aug 30, 2010

I am fresh new to asp.net. I try to convert my windows form into asp.net application. On my Windows form I use threads to monitor for changes in data sources to udpate my controls.However, I got no clue how to accomplish this in asp.net form. It seems I cannot create a thread in the page to update my controls in the page.

View 1 Replies

Architecture :: Auto Update Not Working On 3 Tier Project?

Nov 16, 2010

When i create a new class on data layer,i can access that on business layer by creating object of that class.

but when i create a new "public class" on business layer i cant access that on presentation layer.

another thing is, after building business layer if copy Business.dll,Business.pdb,Data.dll and Data.pdb from business layer to presentation layer "BIN" i can access that class

View 4 Replies

Architecture :: Auto Update Application Like In Wordpress, Application Must Check If New Updates Are Available?

May 3, 2010

I need to auto update application like in wordpress, Application must check if new updates are available, download this updates and install.But I don't know how to install application. Because if some files in bin directory are updated application is restarted.Is it possible to create ASP.NET web application which will be auto updatable?now we have a new technologies, could u please suggest me any kind of soultion for the above problem. here i am enclosing my email idsunnyb4uu@hotmail.com

View 2 Replies

Architecture :: How Can Thread Update A Variable Shared With The Main Thread

Nov 24, 2010

I'm new to threading and have used it successfully, but limited. I can spawn a thread and have the main thread reference variables in the spawned thread, but I don't know how to allow the spawned thread to reference (and update) variables in the main thread.

Any example threading code I've seen on the web appears to be WAY more complicated than what I do, so I am unable to understand or integrate into my code.

Here is a quick example of how I use threading:

[code].....

View 3 Replies

Architecture :: Database Update Table Field Time To Time

Feb 1, 2010

I need to do an update a field in database every x minutes. ie: a person login and I need to update a field related to they every X minutes until the value reach a value. Like this, this person start a count event from 1 to 10, they log off the web, but this count must remain countting until reachs 10, 1 by 1 every 7 minutes. I cannot do a SQL Job. Should I User a System.Timer??? Should I record the time and value of the last update, when the person log in I cauculate and update the value??

View 4 Replies

Architecture :: Articles/Links On Asp.Net Pipeline And Internal Request Processing Architecture?

Oct 4, 2010

I am looking details on the internal working of asp.net architecture. The topics need to include the following:

Asp.Net Thread/Application Pools HttpRuntime HttpApplication - When and how it is set up How HttpContext is set up How objects can passed along the pipeline using HttpContext.Current.Items Why does modification of static variables requires locks in ASP.NET (advanced)IIS 7 Integration Mode

View 1 Replies

Creating Web Service Failure?

Feb 17, 2010

In Visual Studio 2005.I have created a Blank solutions(XYZ) and then add a ASP.Net Web Service Project(TESTP) under it.And then create a .asmx file(WEBFI.asmx) and then write a method and add [WEB Method] on top of the method.Now compile it.And then publish it.But in publishing folder I didn’t found any WSDL file which I should call in different machine (which is in LAN ).

View 6 Replies

MVC :: SQL Server Login Failure App In IIS 5.1?

Dec 20, 2010

I'm trying to deploy my MVC 2 web project on IIS 5.1, because that's all I have for now to work with. I installed Visual Studio 2010 on the server and can run the web app successfully. When I try to access it via the browser, I get the following error:

Login failed for user ''. The user is not associated with a trusted SQL Server connection.

I'm not sure what's going on here. I don't get this error when running the app through Visual Studio. It seems probable that ASP.NET is using a network identity when I access it through a browser, but I'm not incredibly savy at server configurations. The MVC app is set up to get the currently logged in user's credentials from its own database, based on the NTLogin of the person accessing it. I can get this to work, but again only in Visual Studio.

View 12 Replies

.net - Redirect On Authorization Failure

Mar 6, 2011

I have several sections

<location path="Page1.aspx">
<system.web>
<authorization>
<allow roles="superadmin"/>

[Code]....

I want to make a redirect to the specified page if authorization failed. And this is not general page. I want to make a specific redirect based the page user wants to open. How it can be done?

View 3 Replies

Architecture :: How To Design A Centralized Business Or Service Authentication Architecture

Sep 22, 2010

i want to create a centralised business or Service authendication architecture in .net. for example, we have a clients like c1, c2, c3, c4, ... etc. everybody logins seperatly as well as grouply. ie, if client "C1" logins [with login authentication] he can access c2 , c3, c4 also without login authendication. So its like a google. if we enters gmail account, we can access orkut, picasa like that.. i need the cetralised architecture.

And, client "c1" seperately asks seperately how will be the authendication architecture.

so give me the single solution for both these two scenarios. how will be the architecture for these two and how is the Data Base (Login) Structure.

View 3 Replies

Architecture :: Entity Model Design Framework And N - Tier Architecture

Dec 25, 2010

recently i've studied on ADO.NET's Entity Model Framework and say 'wow' as ORM is one of the fevourite pattern i practice..but suddenly i've come to an ambiguous situation when i'm going to start. i usually follow the following 3-tier architecture..

1. UI Layer
2. BLL - business logic layer
3. DAL - Data Access Layer
a. DTO / DAO
b. Gateway (contains the sql query/stored procedure and connection with DB)

now when i'm going to use the Entity Model Design,where the DBML/ .edmx File should be placed? Because many a times i'm using the DBML file as DTO because of the mapped objects.. in the same time, sometimes DBML ( .edmx file in .NET 4.0) contains CRUD methods and stored procedured method as well as methods with different selection operations,- which should be in Gateway. so where the .edmx file should be placed !?!! IN DTO namespace !? or in Gateway namespace!

moreover sometimes there is no need for the BLL which breaks the rules of inter-layer-communication (UI > BLL > DAL.Gateway)! what makes me confuse is, what should be the ideal n-tier architecture when i'll use the ADO.NET Entity Model Design Framework

View 4 Replies

Treeview, PopulateOnDemand, Ajax Failure?

May 16, 2010

have embedded a TreeView inside an Update Panel, PopulateOnDemand in use.When a top level node is expanded everything is fine - the level 1 (zero base) nodes are populated.When on of these lower level nodes is expanded the tree Collapse

View 2 Replies

Security :: Getting Cryptographic Failure Error?

Mar 11, 2010

i am trying to create a strong name for assembly.....by giving the below code----

assembly:
AssemblyDelaySign(false)]
assembly:
AssemblyKeyFile(@"UsersABCDocumentsVisual Studio 2008ProjectscodeaccesssecuritycodeaccesssecurityinDebugABC.snk")]
assembly:
AssemblyKeyName("")]

when i am compiling project i am getting this error........

Error 1 Cryptographic failure while signing assembly 'C:UsersABCDocumentsVisual Studio 2008ProjectscodeaccesssecuritycodeaccesssecurityobjReleasecodeaccesssecurity.exe' -- 'Error reading key file 'UsersABCDocumentsVisual Studio 2008ProjectscodeaccesssecuritycodeaccesssecurityinDebugABC.snk'
-- The system cannot find the path specified. '

View 1 Replies

Architecture :: Asynchronous Page Processing In 3 Tier Architecture?

Jul 30, 2010

I am working on 3 tier architecture: UI, BL, DAL. In my UI i have following code for Asynchronous page processing:

[Code]....

But I want a database fetch operation to be performed in this asyncronous method. And due to 3 tier arch. i am unable to do this in UI Layer. Can anyone guide me that how can I implement Asynchronous processing in 3 tier architecture? Note: If you are going to place EndAsyncWork1 in DAL then show that how can I return a value back to UI layer from this function.

[Code]....

View 1 Replies

Architecture :: What Is The Difference In 3-tier Architecture And Gereral Way Of Programming

May 20, 2010

I want to know that What are the factors if we use methods on each .cs page for connection and executing query on each aspx code behind page rather then using BAL .

How our application get affected in terms of performance and speed or other way?

when we put our website on server after publish/compile in general approach (using query in C# code behind) rathor than using stored procedures?

then which logic is better and why ?

View 8 Replies

MVC :: New Login Failure SQL Server 2005 Express

Jan 4, 2011

I'd just gotten the MVC application I'm working on to connect to the database when the machine it was on went down. Now, for development purposes, I've installed the database on my local SQL Server 2005 Express installation. I jumped through all the hoops for getting the connection set up. I have:

Opened the Surface Area Configuration and set it to allow Local and remote connections. In the same area, I set the SQL Server Browser to Automatic startup and started it. In SQL Server Mgmt Studio Express, under Security/Logins, I added a user with a Server Role of 'sysadmin' and in User Mapping for the specific database in question I checked 'db_owner'. I also restarted the services and then rebooted the machine when restarting the services didn't work. But it's still giving me the following error:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Here's the weird part. I can open SQL Server Mgmt Studio Express and log in with the user I created as described above. Login is successful, and I have complete access to the database. In Server Explorer, I've set up a connection to this exact same database without any problems. I can connect to it and list the tables, get their data, etc., no problem. I can also use the "osql" command to connect to and retrieve data from the same database.

It seems safe to say that the database is definitely there and can be connected to. So, I thought there must be something wrong with my connection string. Since the Server Explorer is connecting to and displaying data from the database, I copied its connection string, which looks a lot like this:

Data Source=myServerSQLEXPRESS;Initial Catalog=myDatabase;Persist Security Info=True;User ID=SwinglineUser;Password=***********

Of course, the Password has been replaced with the actual password (just in case someone thought I might have forgotten that step). So, absolutely everything I try connects to the database without the slightest issue, except for my MVC application. I'm not sure what else to try. Could there be some difference in how to set things up if you're connecting to a local server?

View 6 Replies

Security :: ValidateRequest, And Basic HTML Failure?

Jun 28, 2010

Here's the situation. I have an aspx page that is designed to receive a POST request with some XML values, parse the XML, grab the relevant items, and write them to the page. The problem arises when I try to launch the page using the POST request. When I launch using Fiddler, building the request manually and just pasting the XML in the body of the request everything works fine and dandy. When I launch the page from a basic HTML form, however, things don't go so great. The HTML form that I'm using looks like this:

[Code]....

When the page loads I get the error:

A potentially dangerous Request.Form value was detected from the client Everything I've read so far has told me that the solution is to add ValidateRequest="false" to the page directive in the top of the .aspx file, or in the pages element of the web.config file. But neither of these work. Afterwards, I still get the same error. Any idea what I need to do to make this work?

View 5 Replies

Web Forms :: Failure Sending Mail - Error

Aug 31, 2010

I have used gmail for sending mail localy which worked fine but when i uploaded the same file on server the "Failure sending mail." error occured. here is the code i have written:

Dim message As New MailMessage
message.From = New MailAddress("[URL]
message.To.Add(New MailAddress("[URL]))
message.Subject = test mail""
message.Body = "Hi you have got a test mail from me!
Dim client As New SmtpClient
client.Credentials = New System.Net.NetworkCredential("[URL]"xxxxxxx")
client.Port = 587
client.Host = "[URL]
client.EnableSsl = True
client.Send(message)

View 2 Replies







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