Category: C#

  • Control inside repeater row ASP.NET

    Hello All Few days back I was struggling with a repeater problem , where I have to get a value of dropdown list on a button click event which is inside repeater. Eventually I come up with a solution through googling. What I have faced was get the value of appropriate dropdown list while clicking […]

  • Dependency Injection with Ninject in .NET

    Hello All From last few months I was not working on .NET platform so haven’t get enough time to write something fruitful on .NET technology. But from last few few days I was thinking to do something with IoC . There are many DI tools to perform DI in .NET but I found Ninject useful […]

  • LinkButton ,Label inside Repeater – ASP.NET

    Hello All Today I will show you how to fire  Link Button’s event with argument and initialize a label inside of a repeater. To do that first we have to take LinkButton and a Label control inside the ItemTemplate of the repeater. Then we have to initialize the the Label from OnItemDataBound event of the […]

  • Print C# properties in aspx,ascx page from code behind file.

    Hello all Today I will show you how to print something in aspx or ascx page from code behind file.In this example I have taken a “Web User Control” named “WebUserControl.ascx”. What I wanted to do was, print a value of a variable in “.ascx” page where the variable has been initialize from “.ascx.cs” better […]

  • File streaming in .NET

    Hello All Today i will focus on simple file steaming in .NET which I have to implement it in one of my project.Though it’s not optimize but its OK for serve small purpose. In the project I have to read a PDF file from the server and with FileStream and Flash it with Response to […]

  • Consume WCF Service

    Hello all Today I will show how to consume a WCF service. To go through this before, I have created a WCF service [ Creating WCF Service ] , which I will consume for my project in this article. Consuming WCF Service is as simple as consuming a simple webservice through Visual Studio 2008. First […]

  • Creating WCF Service

    Hello all Today I will try to demonstrate how to create simple web service through WCF. To get into WCF first we have to know some basic principal of WCF and its "ABC". Address : the location of the service. Bind: how to get service. Contract: service action. In this tutorial I will not describe […]

  • Custom Event in .NET

    Hello All, Today I will try to deliberate my experience on custom event creation in .NET , Actually I was trying to find something like hands on for event creation in .NET application, suddenly I got a quick help from one of my brother Sadique, who helped me out to resolve the thirst. We are […]

  • Namespace in ASP.NET

    Commonly Used Types and Namespaces in ASP.NET System.Web HttpApplication HttpCookie HttpRequest HttpResponse HttpRuntime HttpServerUtility System.Web.ApplicationServices *NEW AuthenticationService NEW ProfileService NEW RoleService NEW System.Web.Caching Cache System.Web.ClientServices *NEW ClientFormsIdentity NEW ClientRolePrincipal NEW ConnectivityStatus NEW System.Web.ClientServices.Providers *NEW ClientFormsAuthenticationMembershipProvider NEW ClientRoleProvider NEW System.Web.Compilation BuildProvider System.Web.Configuration WebConfigurationManager *NEW System.Web.Hosting ApplicationManager System.Web.Management WebBasedEvent System.Web.Security FormsAuthentication FormsIdentity Membership Roles System.Web.SessionState HttpSessionState System.Web.UI […]

  • Isolated Unit Test of Business Logic With NMock in TDD

    Hello All In test driven development its always needed to test a particular project tested with make it isolate ( test with removing dependency from other projects ), In this scenario we virtually create the input set which will be produced from other projects(class,methods etc) and test whether our testable methods are functioning with that […]