I have a table that looks like this:
ID / Description / textValue / dateValue / timeValue / Type
1 / FRRSD / NULL / 2010-04-16 00:00:00.000 / NULL / classdates
Now I've got a LINQ command to pull only the rows where the type is classdates from this table:
Dim dbGetRegisterDates As New dcConfigDataContext
Dim getDates = ...
I want to save file metadata (mostly path/name) along with the contents of the file.
I noticed that FileInfo is serializable. Does anyone know data is serialized when you save a FileInfo object? I would assume that only metadata is saved, not the contents of the file?
...
Anybody got any good reading articles and tutorials on custom installers
as most on the web seem to be outdated?
The MS e-book for the 70-536 exam covers this but very lightly, as it does not cover the use of the ServiceProcessInstaller class or something like that??? I'm mentioning this here because I have seen this on quite a few exam...
I am learning Windows Forms in C#.NET 2008 and i want to build a class to work with SIMPLE xml files (config file like INI files), but i just need a simple class (open, getvalue, setvalue, creategroup, save and close functions), to substitute of ini files.
I already did something and it is working but I am having trouble when I need to ...
Will garbage collector free resources for cross referenced object/class, which is no longer referenced from main program.
For example -
class class1
{
class2 m_RefClass2;
}
class class2
{
class1 m_RefClass1;
}
class class3
{
public class3()
{
class1 obj1 = new class1();
class2 obj2 = new class2();
...
We're upgrading from Dev Studio 2005 to Dev Studio 2010. I opened my 2005 solution in Visual Studio 2010 and went through the conversion process keeping all projects targeted at .NET 2.0. When I try to build the project, my references to Rhino.Mocks.dll are failing to be used. I see errors like this:
DalDiscoveryTest.cs(7,7): error ...
I have a method in a class for which they are a few different outcomes (based upon event responses etc). But this is a single atomic function which is to used by other applications.
I have broken down the main blocks of the functionality that comprise this function into different functions and successfully taken a Test Driven Developme...
In trying to find the possible cause of an exception, I'm following a code path using Reflector. I've got deeper and deeper, but ended up at a method call that looks like:
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SomeMethod(int someParameter);
This markup on the method tells the framework to call a C++ function...
I'd like to know if a particular process is using a given port, i.e. netstat -ban. I came across using IPGlobalProperties to get the list of active connections, but this doesn't seem to include process information.
It would be nice if there exists some class in C# that lets me do this programmatically. Ideally, I wouldn't have to pipe ...
My idea is to create some generic classes for Insert/Update/Select via a C# (3.5) Winforms app talking with a MySQL database via MySQL .NET Connector 6.2.2.
For example:
public void Insert(string strSQL)
{
if (this.OpenConnection() == true)
{
MySqlCommand cmd = new MySqlCommand(strSQL, connection);
cmd.ExecuteNonQue...
I want to modify the labels of the outlook conferencing add in... e.g. I want to change the "Schedule a live meeting" text to say "Schedule my meeting". is it possible using VSTO? or I can create only new add ins using VSTO and not customize the existing ones ??
(I am talking abt this conferencing add in: http://aspoc.net/archives/2008/...
I have been going over the practicality of some of the new parallel features in .Net 4.0.
Say I have code like so:
foreach (var item in myEnumerable)
myDatabase.Insert(item.ConvertToDatabase());
Imagine myDatabase.Insert is performing some work to insert to a SQL database.
Theoretically you could write:
Parallel.ForEach(myEnume...
Hi
I have a view that is not strongly typed. However I have in this view a partial view that is strongly typed.
How do I do I pass the model to this strongly typed view?
I tried something like
public ActionResult Test()
{
MyData = new Data();
MyData.One = 1;
return View("Test",MyData...
As I am working with a new database project (within VS2008), and as I have never developed a database from scratch, I immediately began looking into how to manage a database within source control (in this case, Subversion).
I found some information on SO, including this post: Keeping development databases in multiple environments in syn...
I am using SQL Server 2008. I have a Student table in which there are following fields:
1. StudentId, 2. StudentName, 3. Marks .
I want to get a resultset in which there should be a column named “Position”. Something like “Select StudentId,StudentName,Marks, as Position from Student...” so that, depending on the marks a student scored, i...
I'm trying to render a component from withing another component.
public override void Render()
// ...
var block = new Block();
block.Init(EngineContext, Context);
block.Render();
// ...
}
The problem is that Block component can't find it's template.
ResourceProcessingException Message: Unable to process resource 'componen...
I have a Visual Studio 2008 solution with several projects. One project is a web site with a Target Framework of ".NET Framework 3.5". One is a Silverlight 3 Application which was created with the selection (in the dropdown) of ".NET Framework 3.5".
I notice that if I wish to add a reference to System.Core.dll to the website, I am p...
Background:
I work in a suite of ASP.NET applications that have several different "modules". The applications all share a main menu, so they all link to one-another. The modules are the high-level areas of the application. So, for example, it might be Payments, Orders, Customers, Products, etc. And Payments and Orders are in one app ...
I apologize for such a question that likely has a trivial solution, but strangely, I could not find a concise API for this problem.
Essentially, I would like to truncate a string such that its length is not longer than a given value. I am writing to a database table and want to ensure that the values I write meet the constraint of the ...
What's the standard way of passing and processing an array in an HTTP request in .NET? I have a solution, but I don't know if it's the best approach.
Here's my solution:
<form action="myhandler.ashx" method="post">
<input type="checkbox" name="user" value="Aaron" />
<input type="checkbox" name="user" value="Bobby" />
<input...