-
I have used delegates in my programming since C# 2.0. But I have seen there are lots of confusion going on with delegates so I have decided to blog about it. In this blog I will explain about delegate basics and use of delegates in C#. What is delegate? We can say a delegate is a type safe function pointer...
-
In an operating system, a Memory Mapping file are virtual storage place which has direct byte to byte correlation between the Virtual Address Space and the corresponding physical storage. So when we access the Virtual Address space via a memory mapping file we are directly communicating with the kernel...
-
Recently in one of the project I have to vertical align text in div. so doing some internet search I have found there are no proper way to do it. So I thought it would be good do share this within my readers. Here is the code do vertically align text in div. <div style="width: 25%;border:solid...
-
In earlier post I have written how we can use page methods to call server-side from the java script. In this post I am going to explain How we can pass parameters to page methods with java script. So let’s take a simple example to see how we can pass parameters to the page methods. I am going to create...
-
Hi Friends, WCF Binding is the way which defines how communication is going to take place in between client and the hosted service using endpoints . * Bindings are used to specify the transport, encoding, and protocol details required for clients and services to communicate with each other. * A binding...
-
Recently before some I was in search of good asynchronous file upload control which can upload file without post back and I have don’t have to write much custom logic about this. So after searching it on internet I have found lots of options but some of the options were not working with ASP.NET...
-
In one of the my earlier post I have written How easily we do URL rewriting in ASP.NET Web forms. In this post I am going to explain redirection in URL Routing. In web application it’s a common scenario that we are redirecting our page to the one from the another and those who are familiar with the ASP...
-
Problem Recently while testing my application, I was facing problem of Session time out. By Default Session time is 20 mins and I wanted to extend it Attempts if we want to extend it we can set in web.config within System.web tag <sessionState mode="InProc" timeout="30"><...
-
Hi Geeks, In our last post Channel shapes and Communication Patterns we saw how channels are used to transform message from client to server and vice versa. Today we will see Channel Objects and how they work . There are three categories of channel objects 1) Channel 2) Channel Listeners (Responsible...
-
This is third blog on security concept in WCF. You can read previous posts: Something about Security in WCF- I Implement windows authentication and security in WCF Service Today I’ll describe how we can implement role based authorization using Windows Group. In this case you will not need to maintain...
-
What’s wrong with the following code? var names = new HashSet<string>(StringComparer.OrdinalIgnoreCase); ... if (names.Contains(sqlCommand.ExecuteScalar()) This code is intended to check whether the result of a SQL query is contained in a case-insensitive collection of names. However...
-
This is continuation with previous post on “Security in WCF -I”. Here I’ll explain how we can implement windows authentication with transport level security in intranet environment. Windows authentication In intranet environment, client and service are .Net application.Windows authentication is most...
-
Authentication and authorization are key aspects for secure communication between client and server. The service needs to authenticate its callers and correspondingly allow to use allowed operations. Service level authentication is not only thing for secure communication, messages should also be secure...
-
Sometimes the client needs to programmatically verify whether a particular endpoint supports a particular contracts. Suppose Application administrator deployed application but it was pointing to development environment or some other address. If this feature implemented in application then he can get...
-
I personally feels there is still too much configuration in setting up WCF service infact Microsoft has reduced in new .net frameworks. If client application wants to consume WCF service then you need to create proxy class using Visual Studio and create configuration on Web/App config files (Visual Studio...