I have been working on an WTL UI app lately and tearing my hair out with how absolutely archaic everything is. I went with ATL because I needed to be able to offer the application to users who don't have or don't want to be bothered with the .NET Framework installation. I wanted to be able to distribute it without anyone having to do any...
I need JavaScript working almost perfectly in my application that should be able to access web content and let user take a control of it. However, webbrowser component pops new windows in separate instance / application of Internet Explorer and dotBrowser doesn't work with JavaScript properly.
Please, give me some advice - I'd even take...
Hi,
I need to generate a WCF proxy for a service exposed by our client. The service is locked down pretty tightly, so this is proving difficult. Also, I'm new to WCF, so I may be missing something obvious...
The client has only opened up their firewall to our production server - so I can't generate the proxy from Visual Studio on my d...
I am working on a consumer facing web application built on .Net/C# MSSQL as the databse
We have been following general good coding practices to prevent bugs and SQL/JS query injections but non of us are experts on security.
What would be a good checklist to find out how really secure is the application we are building.
...
I'm familiar with the try{}finally{} pattern, the using(){} pattern as ways to ensure Dispose() gets called, but for an ASP.NET page, is it just as safe to Dispose of objects created in page scope on the Page_Unload event? Would it make sense to override the Page's Dispose() method instead?
I'm not sure what code raises the Page_Unload...
Hi guys
I am trying to call a [webmethod] from C#. I can call simple webmethod that take in 'string' parameters. But I have a webmethod that takes in a 'byte[]' parameter. I am running into '500 internal server error' when I try to call it. Here is some example of what I am doing.
Lets say my method is like this
[WebMethod]
publ...
Is possible to resize image proportionally in a way independent of the image type (bmp, jpg, png, etc)?
I have this code and know that something is missing (but don't know what):
public bool ResizeImage(string fileName, string imgFileName,
ImageFormat format, int width, int height)
{
try
{
using (Image img = Image.F...
from this site:
http://crfdesign.net/programming/top-10-differences-between-java-and-c
Unfortunately, List<> is not
thread-safe (C#’s ArrayList and Java’s
Vector are thread-safe). C# also has a
Hashtable; the generic version is:
what makes List<> not thread-safe? is it implementation problem on .net framework engineer's part...
I want to deploy my application to some other machine. I had build this application with Release version using .NET 3.5. What else is required to deploy this application, which will work on other machine which does not has .NET framework?
...
I'd like to see a basic and clear example of how to compile a LinQ to SQL query. I've googled about it, and even though there are a couple of implementation examples, usually blog posters emphasize on the time response difference between compiled and non-compiled queries.
...
i am running an exe from my C# code and i want to monitor the private bytes of the exe from my C# code...can anyone help?pls....
...
This is an Easy Q, but great help:
Under title" Retrieving data from threads MSDN (Here) introduces a way to get data from a child thread by using callback method which is encapsulated by a delegate passed from main thread to the child thread - who has the data.
You can see that clearly ( the last Example in the MSDN page)
My Q is, si...
C++/CLI is very powerful language. It's the only CLR language where you can seamlessly combine managed and unmanaged code. How many software developers (on this site) are using this language? In what kind of projects do you use it? Is it an adapting of legacy code or creation of an original software? Can you compare old Managed C++ wit...
Back in the day -- Fred Flintstone was still in shorts -- in FoxPro, you could STORE everything in memory to a MEMO field in a table with a single command.
I don't know about other practical uses, nor the wisdom of it, but I loved to use it when 'AirdisplacementDevice Implements ManureSpreader' : when an error occurred you'd store the me...
For some reason the accepted answer or any others don't work for me for this question.
can anyone else get this to work?
UPDATE: i have tried all the answers (accepted and otherwise) in the other question, but neither work.
I would just like to know if it works for anyone else, otherwise google have changed something (which has happen...
Hi,
I think the best way to use Oracle with LINQ is to map the data base tables into the dbml file by hand. Am I right?
When I have done it, then what? How can i connect the data base with the dbml file?
...
I was wondering: When looking at an ASP.NET error page with a stack trace you can see a + sign and a number at the end of each line.
For example:
Also in the trace pasted in this question:
http://stackoverflow.com/questions/680434
The numbers are not the line numbers in the sources files, so I suspect them to be something like stack ...
Is it any best practice to tag .net generated code?
What I want to achieve is following:
Debugger step by default not inside the property or method
Metrics are not calulated for those classes/members
...
I'm intercepting method calls into a ContextBoundObject. Is there a way to get hold of the Type of the object I'm calling when in the message sink?
Say I've got a class
[Intercept]
[Synchronization]
public class Test : ContextBoundObject
{
[Timeout(10010)]
public void Method()
{
// Do something
}
}
In the...
In my index there is a value companyName:opel/vauxhall
Searching for "opel/vauxhall" returns the correct results.
Searching for "opel/*" returns nothing.
Currently I'm replacing the '/' with spaces. But that does give my code a bit of a smell.
Any better ideas?
...