Basically, this question with a difference...
Is it possible to capture print output from a TSQL stored procedure in .NET, using the Entity Framework?
The solution in the other question doesn't work for me. It works with the connection type from System.Data.SqlClient but I'm using the one from System.Data.EntityClient which does not ha...
Hi,
If anybody has implemented the site through AspDotNetStorefront, please let me know how easy it is for junior level c# developer? What are the main issues I have to consider before buying the product ?
Thanks
...
I am working on a GridView in Asp.Net. When initially a the Page Loads, my gridview look like:
When a user clicks, to edit a row, I am using edit templates to show 'Domain' in a DropDownList. But problem is , when the DropDownlist gets load with data, it lost the current value of the 'Domain'.
i.e If I want to edit 4th Row, its domain ...
Using Linq-to-SQL and Dynamic Data.
On a Dynamic Data edit screen, a dropdown lists the possible values for a foreign key.
I need to filter the values listed in this dropdown, preferably by adding a where clause on the linq-to-sql query.
Any ideas?
...
Hi,
I'm getting an odd result when serializing a DateTime field using XmlSerializer.
I have the following class:
public class RecordExample
{
[XmlElement("TheTime", DataType = "time")]
public DateTime TheTime { get; set; }
[XmlElement("TheDate", DataType = "date")]
public DateTime TheDate { get; set; }
public sta...
I'm getting the following error when I try to install one of my ClickOnce applications:
An application for this deployment is
already installed with a different
application identity.
I understand this is because I have used the same Application Identity but moved the deployment URL. I'd like to just uninstall the existing Click...
Hi
In a multithreaded application. I have a bunch of function that loop through a collection to read the information. I also have a bunch of function that modifies that same collection.
I’m looking for a way to isolate all the read and the write together. I don’t want a write to be done while a read is in progress. I was thinking of us...
From the snippet below, how do i get rid of the (xml node) <wsu:Expires> tag? I want to either get rid of it or pass it in as a empty element. It is a read only property in objClient.RequestSoapContext.Security.Timestamp.Expires. Any help is appreciated.
<wsse:Security soap:mustUnderstand="1">
<wsu:Timestamp wsu:Id="Timestamp-26...
"If necessity is the mother of
invention, I'd like to kill the guy
who invented this."
-Jimmy Buffet
I don't care if 100 people with a million reputation jump down my throat for saying this, but who ever thought of throwing this exception deserves a fate worse than death.
I have QUITE LITERALLY copied and pasted code from ...
From previous experience I had been under the impression that it's perfectly legal (though perhaps not advisable) to call extension methods on a null instance. So in C#, this code compiles and runs:
// code in static class
static bool IsNull(this object obj) {
return obj == null;
}
// code elsewhere
object x = null;
bool exists = !...
So I wrote a project-management program for a small business using Microsoft Access 2007.
Now they've requested lots of additional features (timekeeping, privileged data tiers ...)
I personally use Linux, but the whole office uses Windows.
I'm relatively new to programming but like to teach myself using projects like this.
I'm right...
Looking for a RAM disk API (or equivalent set of software to implement) to store file/s temporarily for read/write operations outside the physical hard disk environment.
update Exe files will be written to the RAM disk and executed.
...
I was going through this link to understand CodeAccessSecurity:
http://www.codeproject.com/KB/security/UB_CAS_NET.aspx
It's a great article but it left me with following questions:
If you can demand and get whatever permissions you want, then any executable can get Full_Trust on machine. If permissions are already there, then why do w...
How do I get started designing and implementing a script interface for my .NET application?
There is VSTA (the .NET equivalent of VBA for COM), but as far as I understand I would have to pay a license fee for every installation of my application. It is an open source
application so this will not work.
There is also e.g. the embedding o...
Am I being blind, or does the .NET framework not provide any kind of ranged integer class? That is, a type that would prevent you setting a value outside some given bounds that are not the full range of the basic data type. For example, an integer type that would restrict its values to between 1 and 100. Showing my age here, but back in ...
We are making a game which will add a level editor feature soon. We want the user to be able to put levels he's downloaded in a folder and then play it in the game, without any hassle. So, we're looking for a folder that anybody can find, open, write, read, and is multiuser. On Windows Vista / 7, the folder /Users/Public/ look like a gre...
I have my form designed as
<asp:Panel runat="server" Id="xyz">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
'Gridview with edit/delete - opens detailsview(edit template) with data
for editing
</ContentTemplate>
</asp:UpdatePanel...
I have a project where I want to have checked arithmetic by default, except for one performance sensitive spot. Unfortunately, VB.Net doesn't have an 'unchecked' block.
Ideally the framework would have some sort of integer type with explicitly unchecked arithmetic, but I didn't find anything like that. I did find that expression trees h...
I have the following text, I need to extract the exception name and the continuing sentence from the file, but the file has continuous sentences without a space.
??????>?????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????...
After opening a Word document, using .NET interop, a dialog box is created that blocks programmatic editing of the opened file. The user cannot see the winword.exe process and so cannot close the dialog. Is there a way to close a dialog or to prevent them being opened on startup?
I believe it might be the dialog asking first time users ...