When we execute any database. Thread that executing command waits before command get fully executing before executing any additional code. Thread is blocked for another process. But Asynchronous Database Commands solve this problem when database command is executing current thread can continue on other process.Thread can execute a no of database command. There are two benefits of using Asynchronous Database Commands.
A.Executing Multiple Databse Commands simultaneously improve performance.
B. Because ASP dot Net framework uses a limited pool service for request. Whenany request for a page is comes its assign a thread to handle the request. If framework is out of thread then job is in gueses we get error 503. But if we are using asynchronous database command then current thread is release back to current thread pool."
Sunday, May 13, 2007
What do you mean Asynchronous Database Commands ?
Posted by chirag at 7:49 AM 0 comments
Labels: .NET Concepts, ASP .NET
How to set process priority in .NET?
Here is the sample code lines,
which allows setting the priority of the process.
The process here, refers to WinForms application or Windows Service which can be seen in Task Explorer being executed as an EXE.
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal;
Namespace: System.Diagnostics
Class: System.Diagnostics.Process
Method: System.Diagnostics.Process.GetCurrentProcess()
--> This method allows us to get instance of the process under which the application is executed.
Property: PriorityClass
--> This property allows us to get or set the process priority
Enumerator: ProcessPriorityClass
--> This enumerator contains values as RealTime, High, AboveNormal, Normal, BelowNormal, Low. These are the same process priority levels as can be seen from Task Explorer for any windows processes.
Posted by chirag at 6:30 AM 0 comments
Labels: .NET Examples, C# .NET, VB .NET, Windows Forms
Encrypting Connection Strings in web.config
DataProtectionConfigurationProvider
And
RSAProtectedConfigurationProvider
With config = ConfigurationManager.OpenWebConfiguration(Request.ApplicationPath)
And
config.Sections(“ConnectionStrings”).SectionInformation.ProtectSection(providerObj)
Posted by chirag at 6:22 AM 0 comments
Labels: .NET Security, ASP .NET
Friday, May 11, 2007
What is service oriented architecture - SOA ?
In this changing business climate, where globalization and demanding customers require agility and flexibility, retailers' IT systems are not helping them in meeting these expectations. Most of the legacy retail systems were built following tightly coupled point-to-point integration principles. Service orientation offers great benefits in moving from these legacy systems to more flexible and agile systems.
· SOA is a design philosophy independent of any product, technology, or industry trend.
· SOAs can be realized using Web services, but using Web services will not necessarily result in a SOA
· EDI, CORBA, and DCOM were conceptual examples of SO.
· SOA is not a methodology.
· SOAs are like snowflakes: No two are the same.
· SOA should be incremental and built on your current investments.
· SOA requires tools, not consultants.
· SOA is a means, not an end.
Posted by chirag at 9:56 PM 2 comments
Labels: .NET Concepts
Microsoft .NET Framework, ASP .NET, C# .NET, VB .NET - Concepts, Queries, Interview Questions understanding
Hi all,
I have tried to gather few questions or queries in Microsoft .NET Framework Technologies like ASP .NET, C# .NET, VB .NET, Visual Studio.
The questions also pertain to Object Oriented Modeling or Object Oriented Concepts which are inherent part of .NET Framework programming model.
The questions would cover topics like
- Classes & Objects in .NET
- Inheritance and Polymorphism in .NET
- Reflection in .NET
- .NET Remoting & Web Services
- HttpHandler & HttpModule in .NET
- Debugging & Tracing in Microsoft Visual Studio .NET
- User Controls & Server Controls in .NET
- Methods, Attributes, Fields, Properties in .NET server controls and classes
- XML, XPath, XSLT in .NET
- Object Oriented Architectural Design Patterns in .NET
- ADO .NET
- .NET CLR, MSIL, CTS concepts
Posted by chirag at 8:56 PM 0 comments