I already searched for this and I did not find the answer I was looking for.
I am writing a windows forms program with C# .NET and Visual Studio 2008. I am using Reporting Services and rendering the reports using the .net provided report viewer. The data source for the reports is SQL Server. I am rendering the reports locally. I am ...
What is the best way to return the result of the execution of a SQL Server stored procedure back to the .NET code?
If I want to return the success or failure of a bunch of deletes in a transaction, should I 'Select' something, or maybe something like RETURN(1) or RETURN(0), or do I communicate number of rows affected?
Then will this be...
I am using SPFieldCurrency column in one of my lists.
My custom code receives a string value as a parameter, which contains the field's value as returned by the GetFormattedValue() method.
Now my problem is that the value received by my method contain currency symbols in them, Eg, 10$, 10¥, 10€ etc.
Because of the presence of the curr...
Im trying to save a path into my input varaible, but its not reading my input! Im debugging and its completely skipping the line!
public static void OpenFile(int FileSize)
{
char GetLines = ' ';
char[] FileContents = new char[FileSize];
Console.WriteLine("Enter a Path Name: ");
GetLines = (char)Conso...
I would like to know how to retrieve the list of users that are logged on. I can open up Windows Task Manager and look at the Users tab and look at the users that are logged on the PC. How do I get that list of users. Thanks.
...
Hey all,
I am working with a legacy database that uses composite keys. And I am trying to use NHibernate to insert a new record into the database. NHibernate specifies that I have to create the Id manually, but when I try to insert with this id I get the message:
System.Data.SqlClient.SqlException: Cannot insert explicit value for iden...
I am facing a problem with Business Rules Engine in Biztalk Server 2006 R2.
I have 1 policy in BRE. A class library is used to invoke the policy.
I have a LongTermFactRetriever implemented.
Everything works fine with the BRE cache getting refreshed if 1 message at a time is sent through the orchestration.
But if we send bulk message...
We've just separated our SQL Server database adapters to allow for differences between SQL Server 2000 and 2005, specifically, the nvarchar(max) data type.
Because the code change is so small, instead of reimplementing our adapter interfaces and abstract base class, I subclassed the SQL 2005 adapter from SQL 2000 and just override the a...
I am using listview to display a list of items and a nested listview to show list of features to each item. Both parent and child listview need to able Insert,Edit and delete operation. It works fine for parent listview. But when I try to edit an child item, The edit button does not take it into Edit mode. Can you please suggest me what ...
Hi,
I have a 'C# server' program listening to '127.0.0.1', port 5500, using .NET socket, and i have a corresponding C# client program sending messages to this socket from the same PC. They both work fine.
Now if i run the 'client' and 'server' programs on seperate PC's and connect them via a cable connecting their serial ports (RS232)...
is it possible to pass a property eg. Person.Firstname by reference to a function and then still be able to read the attributes of Person.Firstname through this reference type?
so does the reference type know that it is not only a string but also the Firstname property of class Person?
tia
i try to write a extension for my asp.net m...
What is the vb.net or c# equivalent of the following javascript?
this.browserTime.value = Math.floor((new Date()).getTime() / 1000);
I'm using httpwebrequest to login in to a site.
PostData header recorded from the browser looks like:
goto=¤tSlave=235acbdcd297c9211eef670c6dfbd64d&browserTime=1245052940&username=username&passw...
I'm interested in replacing an aging control we use in our project that is a simple HTML WYSIWYG editor.
The main requirements i'm looking for are as follows:
Support for RTL/Hebrew input.
Support for custom numbering styles
(not just 1. 2. 3., A. B. C., etc).
Support fo exporting the content to
OOXML (for Word 2007 inclusion) and
PDF....
Just out of curiousity...
In our application I list all the available translations in the following format "NativeName - EnglishName". For some languages the NativeName isn't capitalized eg.
"Deutsch - German"
"español - Spanish"
"français - French"
"italiano - Italian"
"Nederlands - Dutch"
"polski - Polish"
It's no big deal to capit...
What's the correct way to write a Windows system tray application in C#?
Not an application that can minimize to the tray, but one that only exists in the tray, and can have an icon tool tip and "right click" menu.
...
Hi. Is there a high quality sample code for Data Flow Components in SSIS?
I specifically need the following:
OLE DB Source
Derive Column Transformation
Flat File Destination.
Lets say that the table schema comprises of two columns, ID of varchar(2) and Description of varchar(20). The output is a flat file ID of 1 char (just get th...
Hi,
I have a standard SOAP webservice with a WebMethod which accepts a byte array and then performs a
[WebMethod(true)]
WriteFile(byte[] Data, string FilePath)
{
File.WriteAllBytes(FilePath, Data);
}
If this process is passed a large file, e.g. 2 meg it is bombing out with the following error message:
Insufficient system res...
I'm working on a project that uses a Windows Mobile device to call a web service.
There's a requirement that states that if a service call fails then the user should be prompted to retry. Currently, there's a service agent which calls all the methods on the web service proxy, and if the call fails there's some code which prompts the use...
I'm using the following code to define a service dependency on SQL Server:
serviceInstaller.StartType = ServiceStartMode.Automatic;
serviceInstaller.ServicesDependedOn = new[] { "MSSQLSERVER" };
Installers.Add(serviceInstaller);
Installers.Add(processInstaller);
This works in two machines, one with SQL Server and the other with SQL S...
What is the object life cycle for an object in .NET?
From what I understand it is:
Object created - constructor called (if one exists)
Methods/Properties/Fields used
Object destroyed - Dispose called (if one exists)
Destructor called by GC at some point
...