I have some complex stored procedures pulling data from other databases using linked servers. This data is put into temp tables which are joined in a select query for output. The procedures work fine but in visual studio if I try to add the stored procedure to a dataset using the designer I get the error invalid object name #tmp or whate...
I'm using an OracleCommandBuilder to autogenerate SQL based on a SELECT statement. The parameters in the generated UPDATE, INSERT, and DELETE statements take the form :p1, :p2, and so forth.
In the course of researching how to use the OracleCommandBuilder, I could swear that somewhere I ran across a property I could set, or something I...
I have Form1 in my application calling another form - Form2 using ShowDialog() method. After some user interaction Form2 calls its Hide() method. After that my application sometimes loses focus sometimes not. It could be some design mistake.
code extract:
public class Form1 : Form
{
Form2 form2;
public void SomeMet...
Will it consume from all of them?
Will it throw an exception?
...
We have a DateTime Service that pulls the Database date down when we need to use a Date. Now, If I want to run a test using "Todays" Date using FitNesse, What would be the easiest way of creating a way to have (OurService).CurrentDate be static?
We have a control that ads Days,Years, or Months to the current date.. and I would like to ...
How are GUIDs generated in C#?
...
I got an application that automates Microsoft Excel (2003) using Office Automation. One of the things it does is replacing values.
The problem I got is that when replacing values, all rich formatting is lost as explained here:
http://support.microsoft.com/kb/177194
To clarify, I replace valueX with valueY in a cell looking like this:
va...
Could anyone point out the advantage of using assemblies, in the 'context' of ASP.NET.
As I understand it, assemblies run as executables, have a single entry point, and can be run inside an application domain, but I've found very few suitable examples on the web.
...
Hi,
I have a class library that I need to output via a JsonResult in the ASP.NET MVC framework. (JsonResult uses the JsonSerializer to produce its output.)
I discovered through reading the documentation that if you put [ScriptIgnore] on a public property/field, it will not get serialized, much like [XmlIgnore] for the XML serializer.
...
When an error occurs in any of my .NET assemblies the user just gets a generic error saying "MyApp has encountered a problem and needs to close. We are sorry for the inconvenience." I would like the user to to see the error message and line number if possible.
From what I understand you need to deploy the pdb file along with your assemb...
When my program written in C# or VB.NET or other .NET family language runs on Windows and calls System.Guid.NewGuid() is generation always performed by forwarding the call to UuidCreate() provided by Windows or are there other ways of generating?
...
when i try to compile my application in delphi prism, i got these errors
C:\Users\Burak\Documents\Visual Studio 2008\Projects\Project1\WindowsApplication1\WindowsApplication1\Main.pas(6,3) : Error : (PE17) Namespace "Windows" does not exist or has no public types
C:\Users\Burak\Documents\Visual Studio 2008\Projects\Project1\Windows...
Is it a good idea to try and return a strongly typed List of custom objects from a webservice?
Any pitfalls I should know about?
[WebMethod]
public List<CustomSerializableObject> GetList()
{
List<CustomSerializableObject> listToReturn = new List<CustomSerializableObject>();
listToReturn.Add(new CustomSerializableObject());
...
My understanding of the client profile preview is that it's a stripped down version of .NET focusing on fulfiling the needs of client applications.
However it would be useful to know what is included and excluded from this? Does anyone know?
...
I want to add a collapse/expand capability to a Windows Form.
Is this built into the splitter control? Is there a tutorial for this UI technique?
The immediate project I'm thinking of is a simple UI, Windows Forms. It has 3 panels, one oriented at the top, one in the middle and one at the bottom. I want to be able to collapse the ...
I code GUIs in .NET frequently, and most of them only have the value of being a GUI, e.g. they don't do anything otherwise impossible. So most of the development goes to making them friendly, intuitive and eye-candy.
Then it comes to my mind it would be simply amazing to skin them through .msstyles files, since there are so many places ...
Hello everybody,
I have downloaded the last samples of the Parallel Programming team, and I don't succeed in adding correctly the possibility to cancel the download of a file.
Here is the code I ended to have:
var wreq = (HttpWebRequest)WebRequest.Create(uri);
// Fire start event
DownloadStarted(this, new DownloadStartedEventArgs(rem...
I have an interesting situation and am trying to do something that I'm not even sure is possible.
I have a .NET 2.0 project that via reflection loads an assembly, and calls a specific method on that assembly. We are looking at moving forward and starting to use .NET 3.5 in the environment, but want to minimize risk with regard to this ...
Hello everyone,
I am using VSTS 2008 + .Net 3.5 + C# + Silverlight 3.0. I am developing a Silverlight xap application. And I want to allow 3rd party web sites to reference my xap file, for example, 3rd party web site could use an iframe to reference my xap application directly from my IIS 7.0 web server, and using such iframe to embed m...
Does anyone know where i can view a sample PDF that has an embedded flash video? I know it's silly to ask because you would think any tech-oriented user should be able to find one using Google but I really could not.
Another question I have is, how hard would it be to embed a flash video into a PDF file using an API in C#? One possible ...