Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Shubhabrata Mohanty

@Shubhabrata Mohanty
About
Posts
18
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Unit Test a database update code?
    S Shubhabrata Mohanty

    Hi - I have a piece of C# code that write message log to Database. Now I would like to create unit test scripts using Visual Studio Unit Test framework. I need to create Unit Test code to verify if the data is written properly to the database or not. How do I write code or what mechanism I should use to verify this. Thanks, Shub

    C# csharp question database visual-studio testing

  • Rule Engine
    S Shubhabrata Mohanty

    Can anyone suggest .NET based open source Rule Engine?

    C# csharp question

  • WCF RIA vs WCF in Silverlight
    S Shubhabrata Mohanty

    Hi - I am trying to build a LOB application using Silverlight. But I am not sure what to use in the middle tier. I was thinking to use WCF Services only which I have been building for years but found MS asking us to use WCF RIA Services with Silverlight. I didn't find any reason why I should go for WCF RIA Services. Also there is not much documentation available on WCF RIA and as a developer I find lots of issues in getting guidance in building WCF RIA Services. Also I don;t find a suitable design to build WCF RIA Services layer. Any guidance on this is well appreciated. - SM

    WCF and WF csharp visual-studio wcf design

  • Migration Tool from ASP.NET to Silverlight
    S Shubhabrata Mohanty

    Is there any tool available in the market to migrate an ASP.NET based application to Silverlight application? Appreciate a quick reply.

    ASP.NET csharp asp-net question

  • Migration Tool from ASP.NET to Silverlight
    S Shubhabrata Mohanty

    Is there any tool available in the market to migrate an ASP.NET based application to Silverlight application? Appreciate a quick reply.

    WPF csharp asp-net question

  • Static Constructor
    S Shubhabrata Mohanty

    I have a class with a static constructor. First time I access the class the static constructor gets executed and there an exception occurs. After that if I try to access any of the methods of the class I am getting the same exception that was occured in the constructor. public class Test1 { static Test1() { //some exception here - ExceptionTest } public static void LoadData() { //if I access this method then I am getting ExceptionTest everytime I call this method. //The type initializer for 'X.Test1' threw an exception. } } How do I get rid of this? Thanks Shubho

    C# question

  • File/Doc Management in Web Application
    S Shubhabrata Mohanty

    Hi - I have the following requirements for my web application built using ASP.NET. 1) The users should be able to create their folders in Web Server. 2) The users should be able to create different files in those folders. 3) The users should be able to upload and download documents 4) The users should be able to choose the folder where they want to store their files. How do I achieve this in ASP.NET? Is there any product available for this? Can Microsoft CMS be used for this? Please guide.

    ASP.NET question csharp asp-net sysadmin business

  • Singleton class in C#
    S Shubhabrata Mohanty

    What is the difference between Singleton implemented using static GetInstance() method and having a Class with all Public Static methods. Is scenario#2 a Singleton class? Please let me know the differences between these two approaches. 1)----------------- public class SealedClass { private static SealedClass _class = new SealedClass(); private SealedClass() {} public static SealedClass GetInstance { get { return _class; } } } -------------------------------------- 2) public class StaticClass { public static string GetName() { return "Shubho"; } public static string GetAddress() { return "Shubho"; } }

    C# question csharp

  • Web Service vs .NET Remoting
    S Shubhabrata Mohanty

    Hi We need to build a customer service website for a company. The UI layer will reside in company's DMZ network where as the Services Layer will sit behind the firewall. In this case should we go for Remtoting or Web Service. Since it is a Customer Service website, the performance is also critical but keeping the future enhancement and interoperability are concerned, what should we do? Please reply

    ASP.NET csharp visual-studio design sysadmin sales

  • ASP.NET Cache: Which one is faster?
    S Shubhabrata Mohanty

    ASP.NET Cache object or Using Static Variables. If static variables are faster then why should we use Cache object? Is it only for setting expiration? Is there any different between Application object and Static variables? Please advise.

    ASP.NET csharp asp-net question

  • Removing Handler... URGENT
    S Shubhabrata Mohanty

    Thanks a lot for your help. But when I checked it in ILDASM, I found that each control uses different standards. For e.g. for SelectedIndexChanged has a filed called EVENT_SELECTEDCHANGED. So the generic code that I am thinking of may not work properly. Pls advise.

    C# csharp help question

  • Removing Handler... URGENT
    S Shubhabrata Mohanty

    Thanks Heath for your help. I got it what you explained but when I try that with this sample code, it didn't work. Please help me. Yoour help is appreciated. I have a TextBox "textBox1" in my windows form. I have a handler for TextChanged event. I am trying to remove this using this code. but it doesn't work. Please help. foreach(EventInfo ev in textBox1.GetType().GetEvents()) { FieldInfo fi = textBox1.GetType().GetField(ev.Name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); if (fi != null) { Delegate d = (Delegate)fi.GetValue(textBox1); foreach(Delegate handler in d.GetInvocationList()) { ev.RemoveEventHandler(this, handler); } } }

    C# csharp help question

  • Removing Handler... URGENT
    S Shubhabrata Mohanty

    That only gives the Delegate type, but how to actually get the reference to the Delegate?

    Visual Basic csharp help question

  • Removing Handler... URGENT
    S Shubhabrata Mohanty

    Hi, To remove Event Handlers from my all controls in the form, I want to use a generic code as follows. 1) Run through all controls in the Form 2) Run through all Events of a control using Reflection .GetEvents() 3) For each Event, I want to get the Delegate, so that I can remove all using GetInvocationList(). but .NET doesn't provide any property to get delegate for the Event Handler. Please help. How can I get the Delegate for the Event Handler.

    C# csharp help question

  • Removing Handler... URGENT
    S Shubhabrata Mohanty

    Hi, To remove Event Handlers from my all controls in the form, I want to use a generic code as follows. 1) Run through all controls in the Form 2) Run through all Events of a control using Reflection .GetEvents() 3) For each Event, I want to get the Delegate, so that I can remove all using GetInvocationList(). but .NET doesn't provide any property to get delegate for the Event Handler. Please help. How can I get the Delegate for the Event Handler.

    Visual Basic csharp help question

  • Urgent Help:Removing all EventHandlers
    S Shubhabrata Mohanty

    Actually the problem is that I don't know what all the EventHandlers each Derived Form is using. So it's become very difficult to remove all EventHandlers from each Derived Form manually. I just want to know if there is any way to remove all EventHandlers for all controls in the Form so that I can loop through all controls in the Form and Remove it in Base Form class. Please Help.

    C# csharp performance help

  • Urgent Help:Removing all EventHandlers
    S Shubhabrata Mohanty

    I am also calling .Dispose() after ShowDialog(). Still it is not helping...:(

    C# csharp performance help

  • Urgent Help:Removing all EventHandlers
    S Shubhabrata Mohanty

    Hi, I have a base Form and a base TextBox control. I have derived my Form and TextBox control from the base classes. In the base class of form, I am adding EventHandler for TextChanged Event of TextBox to do some generic operation like setting dirty flag. And again in the Derived View I am using TextChanged Event of TextBox Control to enable/disable the OK button. I am opening the form in Modal form. When I close the Form, it is not getting cleanup from memory. I checked it in .NET Profiler. In the profiler it is showing me that TextChanged EventHandler is still referring the Form. I want to cleanup all EventHandlers on Closed event of the Form. Pls let me know how I can cleanup all EventHandlers for all Controls in the Form. IT IS URGENT. Please let me know.

    C# csharp performance help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups