I have a simple update panel with a button that refreshes a radio button control, I recently noticed a few days now that some of the pages generated by ASP.Net containing my control the trigger does not firing to perform the post back. I have notice this behavior on my cache pages because if I load the same page not cached the update pan...
I have read in one of the posts here that the following files which come with dotnetfx35client download could be used for deployment for .net 3.5 instead of the full 200 MB install.
The files:
DotNetFx20Client_Package_x86.exe
DotNetFx30Client_Package_x86.exe
DotNetFx35Client_Package_x86.exe
I have not tried it but just wondering if i...
I like the idea of extending on the client side classes that are data contracts of WCF services using partial classes. But I encountered a problem that considerably spoils the party.
Imagine on the server side I have a class:
[DataContract]
public class SolidObject
{
[DataMember]
public Point Position { get; set; }
[DataMem...
From what I can see, the ForEach method is available only for the List class.
Why is that? I can see no reason for ForEach not to be available to any class implementing the IEnumerable/IEnumerator interfaces, and this is a really useful method if you need to perform a small action (1 line is more readable than 1 line + 2 boilerplate fo...
Hello,
I'm new to the windows form scene and I was just wondering how I could group the radio buttons (alot like ASP.NET's radiobuttonlist!) So I can switch between each case chosen from the options. Thats it really, thanks...
...
I have 2 (VisualBasic.PowerPacks)LineShapes on my form:
When I click on one of them, a specific context menu appears. The lines can be moved by the user. A context Menu is associated with a line. However, if the user clicks in the intersection point(if exists) I need to display an other menu, that will select one of intersection lines...
I found this question already on SO, but it only covers CF, so my question is: how do I detect whether an assembly has been built for ordinary .Net, CF or Silverlight?
...
Disclaimer: I know that Thread.Abort is evil. I'm using it as a last resort since some I/O functions (e.g., File.Exists when used on a non-existing network share) block for a large amout of time and do not allow you to specify a timeout.
Question: Is it possible to Abort (as in Thread.Abort) a worker thread started using Delegate.BeginI...
I have a built a WCF web service against a pre-existing XSD schema which uses the XmlSerializer serializer.
I would like to validate incoming requests and outgoing requests against this pre-existing schema. MSDN contains a worked example of how this can be accomplished using WCF MessageInspectors. The technique described involves creati...
Hello, I am looking at this blog, and I am trying to translate the snippet to VB.
I'm having difficulties with this line:
NotifyCollectionChangedEventHandler handlers = this.CollectionChanged;
NOTE: CollectionChanged is an event of this ('this' is an override of ObservableCollection<T>).
...
Ok, I've read every question on here about strong named assemblies and just want to clarify something.
First though, from what I've read, GAC aside, strong named assemblies prevent a malicious 3rd party changing and impersonating your code. It'd be great to have some links to some real world examples of this kind of spoofing that happen...
I want to add version info to my mobile device exe file and apparently the following line is not supported in CF (windows mobile 6.0), ideas?:
<Assembly: AssemblyFileVersion("1.0.0.0")>
I want to be able to to right-click on the .exe after it is copied over to the PC and have the version displayed in a version tab just like any other...
So, I'm trying to make sense of WCF in general, and this MSDN chat client sample in particular. I have been testing with the configuration below, and it seems to be working fine. However, what will happen if the Internet connection is lost (or nonexistent)? Will the peers still be able to find each other? (According to this question, I w...
In .NET
using the GetType function returns the concrete class type of the object. The problem is that i don't know what the type is going to be until runtime, but i do know from which abstract class its derives ( I am using abstract factories to create the adequate class).
How can i get the actual abstract class type? Is it even possibl...
Hi,
I am trying to search through listview in VB.net 2008. It works fine with small list, but when the list is big ( around 25000 rows), if I search multiple items , it fails saying that index is not valid. Obviously what I understand is , it it tryiong to remove an index does not exist. But I am unable to figure out where exactly it i...
According to http://msdn.microsoft.com/en-us/library/aa984351%28VS.71%29.aspx
Disabling the first or toplevel menu item in a menu (for example, the "File" menu item in a traditional File menu) disables all the menu items contained within the menu. Likewise, disabling a menu item that has submenu items disables the submenu items.
A...
Here's the setup:
1 web server running a C# app to which my users (stored in a MySQL database on said server) authenticate.
1 file server running software TBD. In the past I've used lighttpd and mod_secdownload to secure the files on the file servers, and it's worked well(ish).
I'm wondering if there is a way to do this using a com...
I'm wanting to export a 3D scene from a Viewport3D to a bitmap.
The obvious way to do this would be to use RenderTargetBitmap -- however when I this the quality of the exported bitmap is significantly lower than the on-screen image. Looking around on the internet, it seems that RenderTargetBitmap doesn't take advantage of hardware rende...
I have a given list of URL's, and i make an HTTP web request object, and try to connect with it, i have an 'array' of url's, and i try to connect with each one. the objective is seeing which ones are out.
It already works, but one request only starts as soon as the last one ends, so it's quite a slow working, about two requests per seco...
Hello,
I have discovered that if i run following lines of code.
int i = 7;
i.GetHashCode(); //where GetHashCode() is the derived
//function from System.Object
No boxing is done, but if i call i.GetType() (another derived function from System.Object) in place of GetHashCode(), a boxing will be required to call GetType...