Monday 30 May 2016

Enterprise Application Integration (EAI)

Enterprise Application Integration (EAI)

This is a business computing term for the plans, methods and tools aimed at modernizing, consolidating and coordinating the computer applications in Enterprise.
Typically, an enterprise has existing Legacy applications and databases and want to continue to use them while adding and migrating to a new set of applications that exploit the internet, e-commerce, extranet and other new technologies. EAI may involve developing a new total view of an enterprise's business and its applications fit into the new view, and then devising way to efficiency reuse what already exist while adding new applications and data.
EAI encompasses methodologies such as
  • Object-oriented programming,.
  • Distributed, cross-platform program communication using message brokers with Common Object Request Broker Architecture (CORBA) and COM+.
  • The modification of Enterprise Resource Planning (ERP) to fit new objective.
  • Enterprise-wide content and data distribution using common database and data standard implemented with the Extensible Markup Language (XML).
  • Middleware, message queuing and, other approaches.
[Source : techtarget.com]
Read the below link to know more about EAI and ESB.

https://www.mulesoft.com/resources/esb/enterprise-application-integration-eai-and-esb

Thursday 26 May 2016

Prevent double clicking or multiple Form submission after the ASP.Net Button is clicked?

Some time it happens that we write a complex code or a lengthy DB operation with in a button submit event which take more than a second or two to complete it operation and control comes back to the button. In these scenario the user has chance to click the button again and there are high chance that the code with in the button get executed again. Though this can be handled in server side, it is better to handle this on client side. Out of many way to handle, I found the following was as more robust.

Attach an client click event to the button

<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="return preventReSubmissions();" OnClick="btnSubmit_Click" />

Create a javascript method preventReSubmissions() with the below content.

<script type="text/javascript" src="jquery/1.11.2/jquery.min.js"></script> <script type="text/javascript"> var isSubmitted = false; function preventReSubmissions() { if (!isSubmitted) { $('#<%=btnSubmit.ClientID %>').val('Plz Wait..'); isSubmitted = true; return true; } else { return false; } } </script>