Objects are serialized to a database using the .NET XML serializer. The object can change over time, and therefore multiple versions exist in the database at one time.
Any suggestions for the best way to construct your code, so that you can still deserialize this object into the latest version. (interfaces / maps / manual serialization ...
I am using ASP.NET webforms on the .NET 3.5 framework. How can I achieve a custom attribute in the HTML tag such as:
<HTML lang="en">
I want to achieve this in the code behind on a common inherited base page. The attribute value would dynamically set based on a session value everytime a page is loaded.
Late addition: I want to achiev...
What's the easiest way to convert a BindingList<T> to a T[] ?
EDIT: I'm on 3.0 for this project, so no LINQ.
...
I have been having problems working with dates. I need to have a DateTime instance that has the "dd-MM-yyyy" format. I'm NOT asking to have a string of my date instance in the "dd-MM-yyyy", that I know.
I need to seed my date obj through the Entity framework, that calls a StoreProc that receives a param that it a Date...
I can always ch...
What is the difference between Decimal, Float and Double in C#?
When would use use each of them?
...
i created web project, and added new class library for framework. This framework includes DAL. But added reference . And running no this give me no fail.
runnig give me error:
" A project with an Output Type of Class Library cannot be started directly
In order to debug this project, add an executable project to this solution which ref...
I have my own exception, which been throwing on execution fail of a method (p/invoke in my case).
public PInvokeException(string methodName)
: base(String.Format(CultureInfo.CurrentCulture,
"An error occured while external method '{0}' call",
methodName)) { }
But I want to replace it with already existing. Is there in FCL something li...
We can wrap a call to a stored procedure in a transaction and specify an isolation level.
Or we can put the transaction inside the stored procedure specify an isolation level there.
Which is it better to do?
...
Basically I want to integrate an application written in C# with IIS, and this application is not created with ASP.NET but has the ability to output HTML - so what I'm after is hooking into IIS somehow and catching all requests to a "Web Site" (IIS-concept) and allowing my custom application to handle them.
I honestly have no idea where ...
I am new to Linq world and currently exploring it. I am thinking about using it in my next project that involves database interaction.
From whatever I have read, I think there are 2 different ways to interact with databases:
Linq to SQL
Linq to DataSet
Now the product that I am to work on, cannot rely on the type of database. For ex...
Normally a WCF TCP channel will make a connect to a host then allow you to make method calls over it.
I would like to have a service which makes outbound connections to the clients, but once the connection has been made then clients would be able to make method calls against my service as if it were a conventional connection.
I suspect...
I have a winForm with a dataGridView containging members of a team. These members each have an assigned role and other properties that are listed in a column in the grid but for the purpose of what I want to achieve they are irrelevant. I've also added a bindingNavigator with add, edit and delete buttons.
What I would like to implement ...
I've come up against the unlikely scenario when I reference two external assemblies that both have the same namespace and type names. When I try to use the type, the compiler throws an error that it cannot resolve which one I want to use.
I see that C# offers a mechanism to use aliases for references. You can even specify these aliases ...
In response to a question I asked a few days ago, I'm attempting to stretch myself a little, and do something that I've not really focussed on much before. I've done some searching (both here, and in general), but can't find the answers (or even reasonable hints) to what I want to achieve (though, a few things come close-ish).
Basicall...
I've been told there is an environment variable you can set to force .NET applications to run as 32bit applications on x64 versions of Windows. Do you know what it is, or know of a reference on it? I'm afraid my google-fu has failed me today (or it doesn't exist).
I'm using Resolver One (a .NET spreadsheet) and want to access some 32bit...
Should I use LAMP, .Net, or any other platform? I have access to resources with LAMP, .Net, ROR and Java experience. Thanks.
Sorry for being vague. Could you give me a few pluses and minuses of each like Paul? Thanks for your time and effort.
...
Hi. There have been similar questions but the answers weren't what I was looking for. I want to insert the a value of NULL into the SQL Server database if the reference is NULL or a value has not yet been assigned. At the moment I am testing for null and it looks like
String testString = null;
if (testString == null)
{
command.Para...
I've got a .net calendar up and running and bringing information from a database. By default the day number has a post back action applied to it.
What I'm trying to do is have that action apply to the whole cell so the user doesn't need to click on just the text link.
I'm the dayRenderer action i have the following line to try and repl...
I have 2 tables in SQL.
Table 1
Step Id
Step Name
Table 2
Profile Id
Step Id
Completed
I would like to return the following results even if there is not match in table 2:
Results
Table1.Step Id
Table1.Step Name
Table2.Profile Id
Table2.Completed
The way I am doing this in SQL is the following:
select * from [Table 1] t1
left joi...
I have the following class:
class SampleClass
{
private ArrayList mMyList;
SampleClass()
{
// Initialize mMyList
}
public ArrayList MyList
{
get { return mMyList;}
}
}
I want users to be able to get mMyList which is why i exposed the "get" via a property however i don't want changes they make to th...