.net

Get the current index in an ASP.Net 2.0 Repeater control

Hello, Maybe this is something very easy to do it but so far it's taking me all day to have something working. I have a repeater filled with a table. Each row in the repeater has a set of controls. The most important of them is a drop down list with AutoPostback = true. This ddl has to postback when the user changes the selected inde...

Changing vertical data into a table layout in .Net

I have a SQL Server 2005 output like this: Date | Result | Sum -----|--------|----- 8/26 | 01 | 1549 8/26 | 02 | 7972 8/26 | 03 | 4502 8/27 | 01 | 1897 8/27 | 02 | 1649 8/27 | 03 | 7949 8/28 | 01 | 8542 8/28 | 02 | 5335 8/28 | 03 | 4445 and I want it to show up (in a GridView?) like this: Result | ...

Unable to automatically step into the server when debugging WCF

I get the dreaded: Unable to automatically step into the server. The remote procedure could not be debugged.This usually indicates that debugging has not been enabled on the server." Now, I have been reading that I need to add <compilation debug="true"> to the web.config . Fair enough, my problem is that my WCF service is a nettcp ...

dotnet patch files

I have a dotnet web application that I'm not allowed direct access to and have to present all the files for someone else to upgrade. Robocopy could pretty easily move the files and present a report IF I were allowed to touch it. is there an application that can compare the files in two directories and create a 3rd Patch directory consi...

change AM to PM?

Hi I am sending in a strings in with the date part, hour part and minute part and AM/PM Now I want to make this into a DateTime. But I am unsure how to change the time part to AM/PM depending on user choice. How do I do this? ...

How to prevent Castle Windsor from injecting property dependencies?

Is there a way to prevent Castle Windsor from automatically injecting dependencies into properties (besides the [DoNotWire] attribute)? ...

Is it possible to set group-management rights on an Active Directory group via LDAP?

I am building a self-service group management web-app that will allow users to create and manage groups in our Active Directory under a particular OU. I have successfully written a PHP application that accomplishes most of this by binding as an admin user and creating new group objects in the appropriate OU, then adding and removing 'm...

Switching a sizeable form between toolbar visible and not visible. VS.Net

I have a sizeable form that can be toggled between showing the toolbar and not. To hide the toolbar, I set ControlBox = False, and Text = "". If I toggle from toolbar visible to toolbar not visible, the form DialogResult is set to cancelled. Looking at the code at the Form's OnTextChanged method in reflector, I can see that the form's ...

default xmlns serializing as blank on string object

I'm using a Serializable Dictionary code object. For some reason when I serialize the object in a SOAP web service the the string object serializes with a blank namespace. I cannot get it to go away.: XmlSerializer valueSerializer = new XmlSerializer(typeof(TValue)); foreach (TKey key in this.Keys) { writer...

C# - remove text in between delimiters in a string - regex?

Consider the requirement to find a matched pair of set of characters, and remove any characters between them, as well as those characters/delimiters. Here are the sets of delimiters: [] //square brackets () //parenthesis "" //double quotes '' //single quotes Here are some examples of some strings that should match: **Given** ...

Reflection, Attributes and Property Selection

I am trying to build a generic method for exporting a list to excel. An object will have attributes if the property should be printed. ie: public class someObject { public int DontPrint {get; set;} [ExcelAttributes(PrintMe = true)] public int PrintMe {get; set;} [ExcelAttributes(PrintMe = true)] public int PrintMeToo {get;...

Should remote UI be implemented using SOA?

Previously we had desktop applications but given the fact that accessing the server (either physically or remotely) was undesirable for the client we turned them into windows services that will run in a (theoretically) 24/7. Now we need to provide a remote user interface to that services in order to keep the old functionality and the ol...

Optimizing N2 CMS

N2 CMS is extremely slow to start up. From what I've heard, on the first JIT compile it loads all of itself into memory which takes 2 to 3 minutes on a fast system, but can take upwards to 10 on my local machine. This, of course, makes debugging extremely, extremely painful. Anyone know of anyway to optimize this? I've tried searching ...

Display new form based on GridView data

Hi All, I have a GridView, radGvA133s, on my main form, MainForm. I would like to be able to double-click on a row of the GridView and have that open up a new form, A133Form, to allow editing of the selected row. Here is the double-click code: private void radGvA133s_DoubleClick(object sender, EventArgs e) { A133 oA13...

How does your company deploy its software?

Hi SO gurus! I am currently on a short research project. The company I work at has a very heavy release process that is getting worse as time progresses. We are encountering more and more issues with each release, which is starting to severely impact our delivery schedules and the quality of each release. We provide a large SAAS produc...

Why doesn't StringBuilder have IndexOf method?

I understand that I can call ToString().IndexOf(...), but I don't want to create an extra string. I understand that I can write search routine manually. I just want to know, why does not such routine already exist in the framework. ...

Convince me to move to .net 3.5 (from 2.0)

I am into new desktop app development. I feel at home with .NET 2.0 and c#. I guess I don't need linq, nor care for WPF and other Vista-oid fancy keywords. I also like rather tight and slim 2.0 redistributable, even more for reason it's Vista and 7 included. Why switch to 3.5? ...

NHibernate, quickest possible primer

I moved away from typed DataSets and I (happily) never looked back. I am looking into NHibernate for persistence of my objects, and would like to see some text such as 'NHibernate for (DataSet) Dummies'. Some text that will assure me that I will be able to seamlessly update data islands, have possibilities of class inheritance, and so ...

Capture screen as movie with vb .net

I want to capture a video of my screen with vb .net, and i'd like to avoid using directx. I found a tutorial here http://www.codeproject.com/KB/audio-video/CaptureScreenAsVideo.aspx but it resulted in the program instantly crashing, i think it was designed for .net 1.1; Is there another way to do this? Thanks ...

Looking for a BindingList.AboutToRemove event

When an item is added to the BindingList, the ListChange event lets me know so I can react accordingly. However, when an item is Removed from the list, the ListChange event comes too late, as the item is no longer in the list. How can you catch the removal before it has been removed? I need to identify the object so I can remove an eve...