.net

Set linkbutton left to right in .net?

<tr> <td align="right"> <div style="background-image: url(image/menustript.bmp); border-right: #ffffff 2px outset; border-top: #ffffff 2px outset; border-left: #ffffff 2px outset; border-bottom: #ffffff 2px outset;"> <asp:ImageButton ID="ibtn_home" runat="server" ImageUrl="~/image/homebutton.jpg" ImageAlign="Midd...

Entity Framework: Inserting new entity associated with another entity

I have two tables FilesystemEntries and CacheEntries where there is an association of 0..1 CacheEntry per FilesystemEntry (that is a FilesystemEntry can have a null CacheEntry, but not vice-versa). Initially, the CacheEntry for all FilesystemEntries is null. I'm having trouble changing this (adding a new CacheEntry). The code (truncated)...

Is there a way to detect if/when a Process starts another Process in C# .Net 2.0?

I'm looking for a way to detect if a Process started by my application has in turn spawned additional Processes. The hope is that i can have a thread that starts and application, watches until it exits, and then triggers some other action when that application exits. The problem is that with some of the applications that i want to monito...

Dynamic Data with Subsonic 3

i want to make a webproject with Subsonic and Dynamic Data... But when i go register the ContextData a don't have it in subsonic with LINQ... in Global.asax.cs a have to do something like this model.RegisterContext(SubSonicRepo, new ContextConfiguration() { ScaffoldAllTables = true }); how can i make it work? have some way to make ...

Need a deterministic algorithm to generate a resource domain prefix for a given path in an evenly distributed fashion

I need to generate a resource domain prefix based on a given path and configured number of resource domains in a deterministic fashion with good distribution. For example, if you pass it the path "/script/site.js" it returns "res#", where '#' is an integer between 0 and the configured amount of resource domains. Using C# 3.0. So far ha...

Pre-generating XmlSerializers using Sgen and ILMerge. Trouble with arrays.

I use XmlSerializer extensively and rather than allowing .NET to generate the necessary serialization assemblies at runtime, I'd like to generate these assemblies ahead of time and bundle them with my application. I am able to use Sgen to generate these assemblies at build time. Additionally, I must run Sgen separately for each array typ...

.Net logs for assembly load error?

I am trying to modify an application and replace the application into my machine, I have the source code. But every time I put my new binaries into the machine the DLL can't be loaded. I am quite sure the problem is the signing signature, but as there is several DLLs I can't know which one has problems. So I am wondering if an assembly i...

inaccessible due to its protection level

i am displaying version(WrmVersion) value in a listview ,,but here i given one codition means if version(WrmVersion) is null i am displaying 'None'(ResourcePolicyAvailSystemsLVI.m_nullString="None"),,but now i am getting an error 'Ship.Controls.ResourcePolicySystemsControl.ResourcePolicyAvailSystemsLVI.m_nullString' is inaccessible ...

Programmatically scroll the windows mobile window

I have a form that has a number of controls on it (enough that the scroll bar is visible). How can I programmatically control the scroll window? I can fake it now by calling the .Select() method on the last control in the Form, but I'd really like to be able to scroll all the way to the bottom of the window. ...

how to use sn.exe -Vr

From the MSDN help, it says the -Vr option is: Registers assembly for verification skipping. My question is when the -Vr is used, will it only change the assembly file itself or it will change the system registry as well. This matters whether I should issue this command in the development machine or in the final deployed machine. ...

OpenID provider on localhost with DotNetOpenAuth.

I have the DotNetOpenAuth sample provider running locally and it appears to correctly handle requests via the web browser. I can step through the handler for authorisation in the debugger. I have a project which can authenticate with Google and other providers but fails with the sample provider. The sample provider never sees a request ...

Encoding of HtmlControl.Attributes

Does anybody knows if it is necessary to sanitize the contents of the HtmlControl.Attributes? MSDN is silent in that: http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlcontrol.attributes.aspx In other words, which of this is correct: HtmlGenericControl control = new HtmlGenericControl(); /*Option 1*/ control.Attri...

Getting PDF reader Control in VS.net

is there any way to get the adobe reader control in our visual studio.net without installing the adobe reader in our system! ...

Is NHibernate.Linq 1.0 GA Provider Production Ready

Is NHibernate.Linq 1.0 GA Provider Production Ready ? ...

Should I make a DateRange object?

Hi. First question ever. A few of my domain objects contain date ranges as a pair of start and end date properties: public class Period { public DateTime EffectiveDate { get; set; } public DateTime ThroughDate { get; set; } } public class Timeline { public DateTime StartDate { get; set; } public DateTime EndDate { get; set;...

Nested Transactions with TransactionScope

If you have somehting like this: IBinaryAssetStructureRepository rep = new BinaryAssetStructureRepository(); var userDto = new UserDto { id = 3345 }; var dto = new BinaryAssetBranchNodeDto("name", userDto, userDto); using (var scope1 = new TransactionScope()) { using(var scope2 = new TransactionScope()) { //Persist to da...

Fluent Entity Framework Mapping

Hi, Is there any way to perform Fluent EF Mapping like Fluent NHibernate for NHibernate ? ...

What does the +0x10 mean next to function addresses in WinDbg SOS exception stacks?

Example: InnerException: StackTrace (generated): SP IP Function 003D8E9C 03B21BD7 Something!Blah.Blah.FunctionName(System.String)+0xa8 What does the +0xa8 part indicate? ...

Get the method parameters from the throwing method in C#

I have a nasty exception that seems to occure deep inside the DataGridView Code. I have a class that inherits from BindingList which is the DataSource of a BindingSource which is the DataSoure of a DataGridView. Under some strange circumstances I get an exception during the overridden OnListChanged() method of my class: protected ...

MSMQ: How can I create a private queue on a remote computer.

I need to create a Private message queue on a Remote computer. All me research indicates this is not possible through the System.Messaging objects. Can anyone confirm/deny this. My other option is to create an addition service on the remote host that listens for requests to create queues and then creates them locally. Any better/simpler...