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
J

Johny Ng

@Johny Ng
About
Posts
49
Topics
32
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Failed to edit web.config [modified]
    J Johny Ng

    Hello, My question may be very dumb :-( but I couldn't change my web.config using the the following code: XmlDocument doc = new XmlDocument(); doc.XmlResolver = null; doc.Load(@"C:\Web.config"); XmlNode node = doc.SelectSingleNode("/configuration/appSettings"); I don't know why it always returns null. Do you know what I stupidly did wrong? Thanks, Johnny Here is my file

    C# question workspace

  • Question about passport authentication
    J Johny Ng

    Hey folks, I have to write some C# code to call passport-authenticated web services to verify if some user has the privilege to do that. This is the first time that I work with passport authentication. Could anybody please shed some light where I should start or if possible, some sample code that I should follow? Any help is appreciated. Thanks, Johny

    C# question csharp wcf security help

  • How to get IIS application pool identity
    J Johny Ng

    Hi folks, I am trying to use C# to get the IIS application pool identity. I know it's possible to use Vbscript but it seems like there are no equivalent functions, properties in C#. Do you guys know how? Thanks, Johny

    C# csharp windows-admin tutorial question

  • How to extract services information
    J Johny Ng

    I am writing a small program to check some services in W2k3 using C#. It's kind of simple to get the services name as well as their statuses, but I don't know how to get their logon (logon as what account) and recovery information. Anyone knows how to do that? Thanks much, Johnny

    C# csharp tutorial question

  • Regarding SQL Database
    J Johny Ng

    Don't know why it's hard for you but you can kill active connection by using kill command. Or if you just want to drop that db, simply stop and start SQL server or set that db to single_user mode so all active connections will be killed.

    C# database csharp sysadmin

  • Regarding SQL Database
    J Johny Ng

    Connection is in use or database is in use???Normally, when you want to delete a database, you need to disconnect all current connections.

    C# database csharp sysadmin

  • Task Scheduling in c#.net
    J Johny Ng

    You mean you want to create a scheduled task using C#? If so just create a process in C# to run Schtask.exe.

    C# csharp com help

  • Counter
    J Johny Ng

    Well, AFAIK, you can set the IDENTITY_INSERT ON and then let say your max ID is 10 so if you want to set it back to 1, set the seed to -9, and set the seed back to 1.

    Database database sql-server sysadmin

  • how to use TOP N in c#.net ?
    J Johny Ng

    Good to know. Thanks

    C# csharp help tutorial question

  • how to use TOP N in c#.net ?
    J Johny Ng

    In Sql server, you can specify "N" dynamically but you have to use dynamic query.

    C# csharp help tutorial question

  • Confused about shallow and deep copy in C#
    J Johny Ng

    Hi folks, I am kind of confused about C# def. about shallow copy. As far as I know, shallow copy points to the same memory location as the orginal, so if we make some changes to the copy, the orginal will be changed. I did a test by doing the followings: ArrayList a=new ArrayList(); a.Add(1); a.Add(2); ArrayList b=(ArrayList)a.Clone() /*C# says it will create a shallow copy here */ b.Add(3); Now a and b are difference, I am confused here. What am I misunderstading? And how to create a true deep and shallow copy in C#? Thanks.

    C# csharp performance tutorial question

  • Query question
    J Johny Ng

    It will nerver work. Read BOL about GROUP BY first before posting.

    Database database com game-dev question

  • Query question
    J Johny Ng

    Nope:suss: something like select * from [table] t where id=(select min(id) from [table] tt where t.company=tt.company) HTH

    Database database com game-dev question

  • How to align text in C#
    J Johny Ng

    Hi folks, I want to print out data to the screen in two aligned columns. For example the first column is from 0-20 and the second is from 30-50. It's simple but I don't know how to implement that :). Any idea? Thanks, Tommy.

    C# tutorial csharp question

  • How can I call static method using late binding
    J Johny Ng

    Hey folks, May be this is a stupid question I am pretty new to C#. I just wonder how can I call a static method using late binding. For example, I have a class with a private constructor and a static method. Is it possible? if yes, then how? Thanks a bunch.

    C# question csharp wpf wcf tutorial

  • How to build a COM+ app
    J Johny Ng

    I am a newbie in C#. I tried to build a COM+ application by creating an interface like this: public interface ITest { int sum(int x, int y); } then I created a class which inherit from ServicedComponent and this interface. After that I complied and deployed it by using regsvcs. Everything seemed to be fine, but when I checked my COM+ from COM Admin, I not only saw the inferface but also the class methods. It doesn't seems right because normally, only the interface's method should be there. What did I do wrong here? Thanks, Tommy.

    C# csharp com tutorial question

  • Modify application pooling of COM+ component
    J Johny Ng

    Hey folks, I am not very good at C# programming. I want to write a piece of C# code to change the Pool size in Application pooling of a COM+ component? Do you guys know how can I do that. Thanks a bunch. Tommy.

    C# question csharp com

  • How can I get the identity of a application pool?
    J Johny Ng

    In IIS, to seperate our web app from other, we can create application pools for them. I don't know how can I use C# to get the identity of those application pools? Thanks, Tommy.

    C# question csharp windows-admin

  • Check if a user is a member of a local group
    J Johny Ng

    Hi folks, I want to write a piece of code to check if a domain user is member of a local group in my machine. I've read some articles but I don't think I can use LDAP here. Could you guys give me a hint? Thanks a bunch.

    C# question

  • List the files in another computer
    J Johny Ng

    Hi folks, I need to write a piece of code that will list all the files in a folder in another machine. Could you guys give me a hint? Thanks.

    C# question
  • Login

  • Don't have an account? Register

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