.net

Which CMS is easy to use DotNetNuke or Umbraco. Further can we integrate our existing project with it ?

We are in the process of implementing a CMS for our project which currently extensively uses asp.net master pages and css. Also the application is data-driven and controls like gridview and listview are used. After a little search we zeroed on two CMS dotnetnuke and umbraco. Now my question is: Which one of the two CMS is best suited a...

How do I connect to a keyvalue store using .Net Active Data Objects?

How do I connect to a keyvalue store using .Net ADO? ...

Timer, event and garbage collection : am I missing something ?

Consider the following code : class TestTimerGC : Form { public TestTimerGC() { Button btnGC = new Button(); btnGC.Text = "GC"; btnGC.Click += (sender, e) => GC.Collect(); this.Controls.Add(btnGC); System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer(); tmr.Interval = 1...

How can I improve garbage collector performance of .NET 4.0 in highly concurrent code?

I am using the task parallel library from .NET framework 4 (specifically Parallel.For and Parallel.ForEach) however I am getting extremely mediocre speed-ups when parallelizing some tasks which look like they should be easily parallelized on a dual-core machine. In profiling the system, it looks like there is a lot of thread synchroniz...

Html.RenderAction causes "No route in the route table matches the supplied values"

I'm trying to use Html.RenderAction in ASP.NET MVC 2 RC2 in this way: In Menu Controler: [ChildActionOnly] public ActionResult ContentPageMenus() { var menus = _contentPageMenuRepository.GetAll().WithCulture(CurrentCulture); return PartialView(menus); } And in my Index view (for Index action of Home controller): <% Html.R...

MSMQ - Messages being processed over and over

Hi, We're using MSMQ and an integration mechanism which processes the messages. This mechanism analyzes and validates each message under a transactional context and if validation fails, a rollback occurs and the message is delivered back to the queue. Also, the integration mechanism waits for 20 seconds to process error messsages again....

converting projects to single dll

hi all i have finished my web site ,i used netiers to generate DAL and then i copied the .data and .datasqlclinet and .entities projects to my website and add a reference to them and i use the netiers functions and proc to develop my site ,,but i wana know how to add this 3 projects generated by netiers to a single dll and use it in my s...

Namespace Manager or XsltContext needed

i am trying to read the following and select a node in it <ns1:OrderInfo xmlns:ns1="http://xxxxxx Some URL XXXX"> <pricing someAttrHere> <childnodes> </pricing> </ns1:OrderInfo> . XmlDocument document = new XmlDocument(); document.Load(Server.MapPath("order.xml")); XmlNamespaceManager manager = new XmlNamespaceManager(d...

Consuming java web service from .NET client

I am trying to consume a java web service from .NET. When I add service reference to generate proxy and run the programme i get the error below The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://order.x.service.y.com:requestPayment. App...

alternate database schema queries in nhibernate

Hi, I am working on an asp.net business application and using nhibernate. My objective of using nhibernate is to minimize/avoid application porting effort on different databases(Oracle, SQL Server, Postgres etc). I have a scenario where i have to dynamically check the database table schema and build some functionality on it. First thing...

Is there a quick way of selecting all items or inverting the selection in a ListView?

I can quickly clear the selection of a ListView using its SelectedIndices.Clear method, but if I want to select all the items, I have to do this: for (int i = 0; i < lv.SelectedIndices.Count; i++) { if (!lv.SelectedIndices.Contains(i)) lv.SelectedIndices.Add(i); } and to invert the selection, for (int i = 0; i < lv.Select...

Is .Net attribute feature used at compile-time or run-time or both?

In .Net, is the attribute feature used at compile-time or run-time or both? Can you give me some examples? ...

How to debug delay signed silverlight assemblies?

Our .Net 3.5 projects are delay signed and are registred with sn -Vr to allow debugging these assemblies on dev machines. Recently we ported some projects to Silverlight 3.0 and found out that sn -Vr won't allow to execute a delay signed silverlight assembly through iexplorer. Is there a way to execute a delay signed silverlight applic...

AppDomain.CurrentDomain.AppendPrivatePath("myPath"); alternatives ?

I'm dynamically loading .dlls, and I'd want to load them from a subdirectory of where my .exe is located. To get something like Assembly.Load("SomeAssembly"); where SomeAssembly.dll is located under "DLLs\" ,I've done AppDomain.CurrentDomain.AppendPrivatePath("DLLs"); This works fine, but apparently AppendPrivatePath is deprecated...

Fluent NHibernate - What's the best way to have two one-to-many mappings to the same entity

Hello, I need a little help to map the following structure using Fluent NHibernate. The logic behind my classes is to have a question that contains a list of choices and one answer. Each answer contains a sub-list of the choices contained by the question. I hope the code below is more clear I've minimized the code for each class to...

SQL Data input "echoing"

I have a C# program that reads data from a SQL server instance using ADO.Net. What I'd like to be able to do is hook-up a module that will echo any input data read from the database while the program is running to an empty database with the same schema. This would allow a minimal data set to be created dynamically for that particular r...

How do I increase the size of start run command line to increase the target

I am passing parameters from start-run to my windows application. What I came to know is that you cannot pass more than 259 characters . I have an windows application in C# where I want to pass arguments. Initially I gave as commandline arguments, using the enviorment.getcommandlineargs, which did work successfully. Now the client made a...

Multithreading and database connection(s)

Hey all- So I'm trying to figure out best practices on my database connection. I have a large .NET GUI that serves as the front end for the MySQL db. Currently I open a connection on application load and use it for whatever interactions I need. However, the entire GUI is single-threaded. As I start to add BackgroundWorkers for large...

Code Access Security problem - what's the issue here?

Background I have a post-build event which I use to generate some batch files which contain the current version number of our application. The event calls a batch file, which calls a managed app which loads the assembly and uses reflection to find its version information. Problem When the post-build event runs locally, every is fine. ...

Regex: Selecting Text within Templated Syntax

Quick Question for anyone who is good at Regexes. I am trying to obtain the 'value' part of this syntax: [name:value] I got as far as: \[name:(\w*)] Which matches the entire thing. Does anyone know the changes I would need to make to select only value? (Bearing in mind that syntax will also be surrounded by other text. Thanks Dam...