Hello everyone,
I am using the following code in classic ASP to generate Excel file, the code is simple and it works. I run the code under IIS 7.0 on Windows Vista x86. Two issues,
there is a weird warning box, here is the screen snapshot
http://i27.tinypic.com/2n81udw.jpg
All cells' background is white, no border of each cell sho...
I am working on a database application in C#. I had a requirement to display data on a table and I am now done with that. But my business logic is hardcoded to my code. Now I want to go ahead and use Stored procedures with my code. What are the modifications that I need to do. A simple list of steps would be enough :)
SqlConnection myCo...
I have a dropdown list containing the days of the week - Monday to Sunday. It is populated with a user defined type of two values that map the numeric day of the week to it's name.
Public Structure WeekDays
Public ID As Integer
Public Text As String
Public Overrides Function ToString() As String
Return Me.Text
End Fun...
I have a set of documents in two languages: English and German. There is no usable meta information about these documents, a program can look at the content only. Based on that, the program has to decide which of the two languages the document is written in.
Is there any "standard" algorithm for this problem that can be implemented in a...
It seems that .NET CF is missing the very useful Reflection.Emit.
So far, I found this library as an alternative: http://www.codeplex.com/EmitCF.
However it seems to be an abandoned early version, so I'm looking for more options.
Does anyone know of another alternative to Emit?
Or perhaps someone used EmitCF and can comment on its st...
Hello,
I'm looking for a RichTextBox with syntax highlighting!
Sounds easy but I'm searching since months and didn't find that what I need.
First I started to do it by myself... No good idea...
I tried to use this:
http://blogs.microsoft.co.il/blogs/tamir/archive/2006/12/14/RichTextBox-syntax-highlighting.aspx
but that code don't hand...
I have a .net site and couple of domains with wildcard dns pointing to it. I use pseudo subdomain system where i extract subdomain name from url with below code
public static string GetSubdomain()
{
string domain = HttpContext.Current.Request.Url.Host;
if (domain.Substring(0, 4).ToLower() == "www.") // if www exists in the ...
I'm trying to serialize some objects obtained from a 3rd Party .NET Lib to an XML File.
When I Go To Definition for the object, some of the Properties of that object are marked as [XMLIgnore]
Is there any way to tell my System.Xml.Serialization.XmlSerializer to ignore the fact that some properties have that attribute and that it shoul...
I can't serialize it, therefore can't get byte[].
Network whiteboard with .net is impossible?)
...
If I know the hwnd of a window, could I get it's position and location based on my screen size. (I mean, size and location in pixels)
What I want to do is capture the screen, but only capture the handle's area.
Thanks
...
With C# .NET i would like to DL 2 webpages and find the DIFF between the webpage. Then i would like to program my app to allow me to label specific dif areas then parse for a series of urls.
What diff lib may help me find each area?
...
Hi,
I was thinking that the SQLDataReader should not work if there is no connection to the SQLServer.
I experimented this scenario. I execute the ExecuteReader then stop the SQLServer Service and tried to iterate through the DataReader. What I expected was an exception, but it gave the results one after the other. Ideally the DataReade...
I'm wondering what's the actual difference between calling Thread.Sleep(1) and calling SwitchToThread (if we ignore that it's currently not exposed by the BCL).
Joe Duffy mentions in his post that:
"The kernel32!SwitchToThread API doesn't exhibit the problems that Sleep(0) and Sleep(1) do." (regarding the scheduler's behavior)
Why...
Hello,
I have a client program written in .NET 2.0, that connects to the web service.
I used Visual Studio to generate a class derived from SoapHttpClientProtocol,
every method was generated just fine, everything is working.
But - the web service is running only through HTTPS, so I was just wondering, how could I get an X509Certificate...
Hi
I am looking for a program that can make class diagrams for C#. I know Visual Studios Pro has a class diagram generator but the couple times I used it I found it limiting in the fact you could not tell it where you wanted to generate the class(Ie if I wanted this class to be in the model folder I would have to manually move it their ...
I have the following code to send an email:
System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
client.Send([email protected], "[email protected]", "test", "test");
Now because I'm sending it from my own work PC, I have IIS 5.0 setup and obviously most email servers on the recipients side will assume this could b...
There are a ton of tutorials and blogs about recording sound from .NET. I have read and understand fundamentally the various options, but am not sure which approach will be the simplest while still meeting my requirements:
Minimal
Start and stop of recording
controlled by a .NET program
Record from default microphone to
file
Minimiz...
I made a program that opens an application, sleeps the thread for 500ms then takes a picture of the frame's handle. I do this to about 600 files. Oddly enough, every 40 or so files, the process.kill() doesnt work or something, because the application hangs, and the running files program is running, when it should have been killed, then m...
I've started a directory project in C#.NET where I'm editing an xml file and using a dataset. There are 5 fields in the xml file to make up an Address. I want to display the address, like on an envelope, in a report and put 10 addresses on a page. I've been using Crystal Reports. If Crystal Reports is not the way to go with this, what re...
What are the requirements for the upcoming .NET 4 release? Searched around for this and couldn't seem to find a definitive answer. Specifically...
Will clients have to upgrade their .NET Framework CLR (like from 1.1 to 2.0) to run 4.0-targeted applications?
Will ASP.NET require a framework upgrade or will behavior be similar to 2.0 run...