.net

Paypal integration with pocket PC application for Windows mobile 6.0

I'm developing a pocket PC application for Windows mobile 6.0 and I want to use Paypal. Should i use Web Browser control for this. I need to know the entire process and flow to implement PayPal to my smart device application. ...

OleDbException: Data type mismatch in criteria expression.

I read data from MS Access using C#. But get the OleDbException trying to execute such query: SELECT * FROM Flats WHERE Flats.VersionStamp <= [theDate] AND Flats.Flat=[theFlat] OleDbException: Data type mismatch in criteria expression. On the other side, any one of the following queries works fine: SELECT * FROM Flats WHERE Flat...

.NET framework version requirement

Is there any way for a web user to determine the version of the .NET framework that is required for a particular web page they are viewing? ...

Is performance a sufficient reason for having a singleton or static class?

I have class that I believe should not be a singleton or static class. It has state, albeit state that could be shared by consumers. I like to stay away from singletons when there is shared state, but the argument I'm hearing is that I will reap performance benefits from only ever having 1 instance of the object exist at any given time...

how to do a "fill with color"(from mspaint) with a picturebox?

I did a little research and I didn't find a way, anyone know? c# or vb.net ...

Best practice for detecting when group of threads are done

What's the best practice for detecting when a whole group of threads are done processing? I have a process that will query a [long running] web service for an arbitrary number of objects, and then needs to take a transactional action when all of them have completed successfully. I am currently running them asynchronously, using delegat...

Lucene indexing: Store and indexing modes explained

I think I'm still not understanding the lucene indexing options. The following options are Store.Yes Store.No and Index.Tokenized Index.Un_Tokenized Index.No Index.No_Norms I don't really understand the store option. Why would you ever want to NOT store your field? Tokenizing is splitting up the content and removing the noise w...

Terminology - can events be "thrown"?

Twice this week, I've read people write that an event (.net) was "thrown". I've always thought that the verb to use with events is either "fire" or "raise". I thought that "thrown" was used for exceptions, but not events ("raise" can be used for either). Does anyone else find it confusing for events to be "thrown"? ...

At what level C# compiler or JIT optimize the application code?

I want to know this info to reduce my code size so I will not waste my time optimize things that will be done by compiler or JIT. for example: if we assume the compiler inline the call to the get function of a property so I do not have to save the return value in a local variable to avoid function call. I want to recommend a good ref...

Recommended Topics for "Introduction to .Net" training

Hi, what topics to you recommend be covered if you're introducing some developers to .Net [3.0/3.5]? Areas I have in mind are: What is .Net?; Building ASP.Net Applications; OO Concepts in .Net; Data Access in .Net Applications; Creating Windows Applications; Using XML in .Net; Configuring and Deploying .Net Applications; ...

Put current route values/url in form post

In my master page, I have a language dropdown menu. When the user selects a language from the dropdown, a submit sends the currently selected language to the "Translate" method in my controller. After which it should redirect to the url it was before the translation submit so it can show the exact same page, but now in the newly selected...

Determine If Changed Event Occurred from User Input Or Not

In C#, the Changed event for a control (say, a numericupdown) gets fired whether the value was change directly by the user or if it was changed programatically as the result of some other event. Is there a way to determine whether the event occurred as a result of user input? For example, both manually changing the value of numericUpDo...

Structs to Byte Arrays to send over sockets

What is the best way to get a byte array from a struct to send over TCP sockets? I'm using .Net (VB or C#). ...

RESTful WCF service returns "endpoint not found" error on POST operations

I've built a WCF service that's exposed both through SOAP and RESTfully. All SOAP actions work as advertised. GETS/PUTS do as well, but when I try to do a POST to an action in my service, I get the following error returned: "Endpoint not found" IPersonEditServiceContract snippet: [OperationContract] [WebInvoke(Method="POST", Uri...

Get product name from msi file in C#

Hi, I have an msi file that installs an application. I need to know the product name of that application before the installation starts. I tried the following: { ... Type type = Type.GetType("Windows.Installer"); WindowsInstaller.Installer installer = (WindowsInstaller.Installer) Activator.CreateInstance(type); installer.OpenDatab...

How can I generate HTML documentation for a SOAP/WebService class in .Net?

When you start a WebService project in VisualStudio(VS) you do actually see some HTML documentation, but the C# comment help does not make it across to the HTML. You can get a description to come through for each web method by using the Description property of the WebMethod attribute, however this means duplicating text from the comment ...

HTTPWebRequest for XML containing an XSLT

I'm using the HttpWebRequest object to make a get call to a site/web service that uses XML/XSLT as its front end. When I view the source in Firefox the XML comes up, but when I make the request in my program the transformed document is returned to me. As the transformed document is very useless to me, how can I make the request and get...

How do I prevent my treeview from collapsing?

I am using ASP.NET with C# 2.0 and Visual Studio 2005. I am using a Master page and content pages. I have a treeview menu in the master page and when a user selects any menu item I redirect to that content page. My problem is that after a user navigates to the content page all the treenodes refresh and the structure is collapsed. I wan...

usermode file system

What alternatives are there if i would want to develop a usermode file system .net would be to prefer? and im talking about windows :) i know about winfuse are there any others? any one tryed them? ...

Calling a method group ....

I have a method group that contains elements such as: class Foobar { public static DataSet C(out string SpName) { SpName = "p_C"; return null; } public static DataSet C() { string SpName; C(out SpName); return DataAccess.CallSp( SpName); } } And what I want to do is B...