.net

JQuery Tools Tooltip With UpdatePanel

My problem is related to using the JQuery Tools Tooltip Plugin (http://flowplayer.org/tools/tooltip.html) on items with tooltips that are refreshed in asp.net UpdatePanel controls. The problem is that after the tooltips have been added, any partial postback from an UpdatePanel will cause the tooltips to stop working in any of the UpdateP...

What is the difference between String.Intern and String.IsInterned?

MSDN states that String.Intern retrieves the system's reference to the specified String and String.IsInterned retrieves a reference to a specified String. I think that IsInterned should have returned (I know it doesn't) a bool stating whether the specified string is interned or not. Is that correct thinking ? I mean i...

How to detect Ctrl - Forward Slash in WinForm app

Below is the code for Ctrl-F (from another SO post). But how do you detect a Ctrl-ForwardSlash? or Ctrl-Slash (note: divide does not work) protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (1 == 1) //keyData == (Keys.Control | Keys.F)) { MessageBox.Show("What the Ctrl+F?"); ...

What is the most efficient way to load a user's DirectoryEntry?

I have the following code that loads a user's Active Directory DirectoryEntry object from the user's SID: public static DirectoryEntry GetUserDirectoryEntry(SecurityIdentifier sid) { return new DirectoryEntry(string.Format("LDAP://<SID={0}>", sid.Value)); } Is there a more efficient way to do this? I'm having to optimize my code b...

Alternate (user-scoped) settings in a C# desktop application

Hello 1) I use Visual Studio 2008 (C#) 2) I want my desktop application to "remember" certain settings (preferences) for every user individually. 3) The application would use its own database of users (logins + passwords), so they have nothing to do with Windows accounts. How can I accomplish that? Trying to find an answer 4) I've fo...

Db4o object update

Hi, I'm using db4o for a simple app, with an embedded db. When I save an object, and then change the object, is it suppose that db4o returns the changed object? Here's the code: [Test] public void NonReferenceTest() { Aim localAim = new Aim("local description", null); dao.Save(localAim); // changing the loca...

Can a WF/WCF 4.0 service be accessed from 3.5 SP1 clients/websites?

If I was to develop a workflow hosted in WCF using .NET 4.0, is there anything that will prevent me from accessing it using a 3.5 SP1 based client or website? ...

What is the memory footprint of a Nullable<T>

An int (Int32) has a memory footprint of 4 bytes. But what is the memory footprint of: int? i = null; and : int? i = 3; Is this in general or type dependent? ...

Hidden Boxing in the BCL?

Recently I became aware that there are some parts in the BCL that still use some "legacy" code that was probably written before generics were introduced in v2.0 of the framework. Apparently, parts of that "legacy" code may cause the CLR to perform numerous boxing/unboxing operations. Since excessive usage of boxing is never a good thing...

Why can't I invoke a Perl script with ASP.NET's System.Diagnostics.Process?

I'm trying to use the System.Diagnostics.Process class to run a Perl script from within an ASP.NET application. The Perl command runs fine when I type it into the command line, but when ASP.NET tries to run the same command it doesn't work. I suspect it may have to do with input and output stream. The Perl script takes a long time t...

How to reduce structure size

I have a class library containing several structures each consisting of several value and reference types. Most of the value types are mandatory, a few value types and all reference types are optional. All structures are XmlSerializable (which is mandatory). As far as the class library is targeted to mobile devices I want to reduce the ...

How to Get Records to Display in the way I need

All, I have a result set with a parent "YourName" record and parent "module_viewed" records. I also have multiple child records, "modules_completed" per parent record. What I need is to be able to display in one horizontal row "YourName", "module_viewed", and then the several "modules_completed" records associated with each of these pa...

How to determine if type needs to be boxed?

MSDN docs say that only value types need boxing, but this does not apply to string, which is a value type and does not need to be boxed. I initially tried Type.IsValueType, but since that returns true for string, I can't use it to determine whether a type really needs to be boxed. Are there any other methods you are aware of? Is string t...

Add item to right click menu

I'd like to add an item into the right click menu (like TortoiseSVN does, or 7zip etc...) I'm not sure how to do this or what it is specifically called. It would be preferable if this option was only available while my program was running. Use case: User would select some text on a webpage (or word document or anything on their compu...

OR Mapping tool

I am using Tier Developer by alachisoft for OR Mapping .It is not effective as well as flexible.Please suggest me a mapping tool for dot net which is free/open source.It would be great if I get the nae of the most preffered tool. ...

Enable a control of another application with User32 (vb .net)

I was wondering if there was a function in user32 that could enable a hwnd control if it is disabled (grayed out) If I know the handle then can I do this? Also, if it is a menuitem, can it be done too? Thanks ...

Whats the difference between jquery-1.3.2-vsdoc.js & jquery-1.3.2.min-vsdoc.js

Hi What is the difference between those 2 files? Like I know they are for intellisense for Visual Studios so why would need 2 versions of it? Like is the difference between jquery and jquery minified just they remove the comments out and spacing? So why would you need a special one for intellisense? ...

How to best convert a stack trace into HTML (using .NET - C#)

Hello is there a class that does a pretty conversion? Thanks. ...

What use is this code?

I can't figure out the use for this code. Of what use is this pattern? [code repeated here for posterity] public class Turtle<T> where T : Turtle<T> { } ...

How to make an Ajax loader follow mouse?

I want to have something on my site that follows the mouse around, sort of like how Windows 7 does it. Like in Windows 7 when something is loading up a little circle comes and follows the mouse. I am using the jQuery library so I know I can use Ajax Start and Stop to make it appear but am not sure how to make it follow the mouse around...