.net

What is an ascx page. What is the benefit of using ascx page.

I am new to a web development process and only know a few things in asp.net other than common things that are used in window programming. Currently I am working on a website that is being created by me and my friend only and we are only familiar with aspx page. I read about ascx page in 1 of the question on stackoverflow. Can you refer...

C# Accessing Inherited members via parent class in a 3D List

Ok this is hard to explain, but here goes. I have a 3D list of objects. The objects type are called CObject, another class CTile inherts CObject. static public List<List <List <CObject>>> CObjList = new List<List<List<CObject>>>(); Ok now lets say that the list is full of information in the correct way. (Can...

Hosting and Consuming WCF Service from Same Process.

Can you become a client of a WCF Service from with the Process that is hosting the WCF Service? I have tried creating seperate App Domains within the same process and still no success. The service is confirmed to be available on Http, Net.TCP and Net.Pipe. Thank you for any help! Nat ...

Advice to start with Nhibernate on C#: documentation, books and any other good learning resources.

I need to learn nHibernate from scratch. I'm a experienced .net developer, but I need some advices about using and implementing nHibernate on .NET apps. Any documentation or book you consider I "must read", or any other advice will be appreciated. Thanks in advance! ...

Calendar Questions - Icalendar library, making a actual calendar

Hi I have some questions regarding calendars Is there any good calendar generates for either asp.net mvc or jquery. I would like to find something that can make calendars and have features like this. Generates all the months (but of course only features the current month that is being displayed) If the name of the calendar event is ...

Disposing datacontext causes Invalid attempt to call Read when reader is closed

I'm building an MVC 2 app and using linq to sql with stored procs. I created a data access layer that has an internal datacontext class and a public class that I expose applications. In my public class I expose methods which access the datacontext class and convert the data to my own object model classes using linq. In my public class...

In WPF, how to databind to the Window DataContext from inside the DataTemplate of a contained ListBox?

I have a WPF Window with a view model set as its DataContext, and have a ListBox with a DataTemplate and its ItemsSource bound to the view model, like in the following example: View model: using System.Collections.Generic; namespace Example { class Member { public string Name { get; set; } public int Age { get; set; } } ...

Have a workaround for the 1,000 file limit in a directory on windows mobile 5?

I need to download more than 1,000 files into a windows mobile 5 directory located on the storage card. If i copy the files onto the storage card via my desktop there is no problem. But when i try to download the files from the handheld device I get a disk full error, even though there is plenty of room due to the 1,000 file limit. Has ...

From which classes should I derive my custom DataAccessLayerException and DuplicateEntryException?

I want to add DataAccessLayerException and DuplicateEntryException classes. But I'm in big doubts of which classes should I derive from? For example DataAccessLayerException (will be used as a wrapper for exceptions thrown from data access layer) may be derived from Exception or DbException. But I'm afraid that DbException should be the ...

Best way to set up a modular program in C#

Me and my friend, are writing an IRC C# bot, and we are looking for a way to include a module system.. so that people can write modules, load them into the bot. Here is the end result im looking for.. Basically, the bot uses Regex to split up all raw data from the server, and then triggers an event with the data. Then, another class tha...

How to prevent that a channel exception make a WCF service stop working?

I created a WCF singleton service with netNamedPipeBinding. When a channel exception occurs, it leaves a channel in a faulty state, and all subsequent operations throws exceptions. How can I prevent this? I want that a TimeoutException, or any of the other common exceptions, to make only one operation fail, and not to make the service un...

How to generate custom classes with ODP .Net 11g

How to generate custom classes with ODP .Net 11g ...

extend IE with .net (VB or C#)

I want to write IE extension in .Net (VB/C#) I already have experience writing firefox addons. All I want to do is, manipulate the DOM before showing it to the user. Like remove some stuff, highlight words, etc... Is it possible to do it using .Net? Or is the only way C++/ATL and those things? I tried searching, but the only useful s...

Mapping domain objects to web service proxy objects in Java

Hi, I am trying to find a way for mapping domain objects to web service proxy objects, generated by various Java web service stacks. Both the web service (.NET) and the Java code use implementations of a particular specification. The specification is meant to provide very detailed description of domain classes, which should be implement...

How to insert data into the right calendar cells?

Hi I have a calendar that I generate. Currently it makes the entire month and fills each cell with a number(representing the date). Now I want to grab values from a database and fill in the cells. How could I do this efficiently? Like right now I can only think of grabbing the data from the database. Once that is down going through th...

Pros & Cons of PHP & .Net for e-learning application development.

Hello experts, I have to develop an elearning application. For which I wanted to know which platform is best. PHP or .Net. I would be integrating third party applications in my project. Someone pls guide me in right direction. Thanks. Kavitha ...

How to debug VS website remotely.

I have crated a ftp server and placed my website code over there. Now i want my team members to work on the same copy over internet. Now the problem is that they can open the solution in VS 2008 but could not debug it. i installed remote desktop monitoring and all required setups but could not get what the problem actually is. 1 more Q...

.NET Regex parsing of the newline character

Hi. I face some problem. In my string there can be a special character / newline '\r\n' Part of my regex: string sRegex = "(?<string>\"+.*\"|'+.*')"; How I should modify this regex to exclude newline from my string? Thanks for help. ...

Is the .NET framework 'open source' ?

Hi, When we bid for Government RFP's they usually ask us to use 'Open source technologies'. Since Microsoft.NET framework is free to use, can it be considered 'open source technology' for this purpose ? Thanks, Chak. ...

.NET: Windows Forms + Console / Prevent closing

I have a Windows Forms application which opens a console using AllocConsole. It works fine, but the problem is when I close the Console by clicking the "X"-Button, the entire application exits too, but I want that only the Console Window should close and the Application should continue as usual. Is there any way to do that? ...