Is there an existing .net class (or available one) that already encapsulates all/most of the options available thru css?
ie:
MyStyleClass msc = new MyStyleClass();
msc.font-family = "arial";
Im looking for an existing class that exposes these properties w/o style("font-family") = "arial";
I didnt see anything while searching through e...
I'm writing a custom class in C# and I'm throwing a couple exceptions if people give the wrong inputs in some of the methods. If the exception is thrown, will any of the code in the method after the throw still be executed? Do I have to put a break after the throw, or does a throw always quit the method?
...
I am working on an .net client server application, a new requirement is to allow user upload/copy videos into the system, there will be about 50 videos (500 MB each) per year. The application stores data in SQL 2005, but obviously storing the half GB video in SQL server is not great idea.
Any suggestion on how to manage the upload/copy a...
I'm trying to build a search page using LINQ to Entities, but the following code is giving me a runtime error about l.t.e. not recognising 'Boolean StartsWith(). The code compiles just fine. How can I work around this better than shipping the StartsWith filtering out to a stored proc?
return from dp in dents.DirectoryPersonEntrySe...
I want to add new admin into my database. But it doesn't work it. Please look at the button1_Click event handler, I need to add value in this event.
public partial class Form1 : Form
{
protected NetTanitimTestEntities adminNameContext;
public Form1()
{
InitializeComponent();
adminName...
I want to make a perfect custom DAL (data abstraction layer) class to use with all my projects.
I've searched the internet and found some samples for this but I never know which is the best approach.
Is it to make [Attributes]? Or use <Generics> or something else?
So please just give me a head line and I'll go on from there.
Thanks a...
How do I call a stored procedure without error in ADO.NET Entity Framework? If I use the code below, I get an error:
adminNameContext.AddItemCategory(12, "ggf", DateTime.Now);
Error:
The data reader is incompatible with the specified 'NetTanitimTestModel.Categories'. A member of the type, 'ID', does not have a corresponding column i...
Hello, how can you scroll to the end of a system.windows.forms.webbrowser programmitacly?
...
In my shop we currently develop what I would consider small to medium sized projects. We have been investigating the Enterprise Library and how it may be able to help us in development. I have particularly been looking at the Logging block and comparing it with Log4Net. It seems to me that the Enterprise Library blocks would be an ext...
I have entity type Order which has a reference to an entity type Customer.
There's a function import that return a list of Order based on a criteria. This list of Orders in displayed in a Datagrid which shows
Order.Date | Order.Customer.Name | Order.Total
For Customer.Name to show up I need to load the CustomerReference in each Order i...
Exact duplicate of How would you only draw certain ListView Items while in Virtual Mode? from same name, different account.
@Jonathan: please enhance your question instead of entering a new copy.
I am trying to implement a filter mechanism into a listview object (in virtual mode). I have gotten advice to not return the items in ques...
I am picking up C# 4.0 and one of the things which is confusing me, is the barrier concept.
Is this not just like using the WaitAll method of WaitHandle? Doesn't that wait for all threads to finish?
I learnt the barrier construct from this page: http://www.managed-world.com/archive/2009/02/09/an-intro-to-barrier.aspx
However, it seems...
I added this code below:
public partial class Form1 : Form
{
TestAdonetEntity2Entities entityContext;
public Form1()
{
InitializeComponent();
entityContext = new TestAdonetEntity2Entities();
}
private void Form1_Load(object sender, EventArgs e)
{
dataGridView1.DataSource = entityContext.S...
I don't know if I worded it correctly, but for a simple example let's say we have a collection of Point3 values (say 1M).
We have a method called Offset that adds another Point3 value on these values, returning new Point3 values. Let's say the method is static.
The Point3 type is immutable.
The question is, should I have a method like...
How to use stored procedure in ADO.NET Entity Framework?
My Table : MyCustomer
Columns:
CustomerID PK int
Name nvarchar(50)
SurName nvarchar(50)
My stored procedure
ALTER procedure [dbo].[proc_MyCustomerAdd]
(@Name nvarchar(50),
@SurName nvarchar(50)
)
as
begin
insert into dbo.MyCustomer([Name], Sur...
The System.Exception.HResult property is protected. How can I peek inside an exception and get the HResult without resorting to reflection or other ugly hacks?
Here's the situation:
I want to write a backup tool, which opens and reads files on a system.
I open the file with FileAccess.Read and FileShare.ReadWrite, according to this...
I was wondering if there was a way to stream sound over a LAN. Can I have a client app connect to a server app and then receive a stream of sound from it. I'm sure it can be done, just not sure where to even start. Any suggestions? I was looking to do this with c#.
I am not asking anyone to write it for me, just some on ideas or tricks ...
How do I go about compiling a .net 3.5 class library into a dll with Nant (0.86)?
This is what I have so far:
How do I go about referencing a system dll in the GAC? This line done seem to work.
<include name="System.ComponentModel.DataAnnotations.dll"/>
This is my script:
<?xml version="1.0"?>
<project name="MyCorp.Data" default="a...
Hello,
We have many projects using interop & related dll...all projects have individual dll reference with setup,but basically all of them use same dll .so that's many times creates problem if any dll register/Unregister while installation/Unistalling of setup.
We need to place dll at one location & all projects require to use dll refe...
My program has 7,667,712 bytes of committed heap, yet it has 33,546,240 reserved heap bytes! I can see that the program is using around 44 MB of private bytes. How can I get the .NET GC to reserve less space for the managed heap?
...