I'm trying to determine why this type isn't serializable (as tested by Type.IsSerializable())
<Serializable()> _
Public MustInherit Class WellKnownInstanceCollectionWithTypedId(Of T As WellKnownInstanceWithTypedId(Of IdT), IdT)
Inherits ReadOnlyCollection(Of T)
Public Sub New(ByVal list As IList(Of T))
MyBase.New(list)
...
On an Aspx page, I have this markup (setup for a jQuery UI dialog):
<div id="modal_showNewlyGeneratedPasscode" class="hide">
</div>
I do not have the iFrame inside the because that was giving me all kinds of MS Ajax errors. So, when an updatePanel is triggered, I dynamically put an iFrame in the above :
$('#modal_showNewlyGenerat...
What are, nowadays, the best practices for uploading a large file (which may cause a timeout) with ASP.NET Web Forms and/or MVC?
Increase Server.ScriptTimeout (only for the specific POST request);
Use some flash client-side uploader like swfupload ( http://swfupload.org ) or plupload ( http://www.plupload.com/ ), but Flash uploads have...
How i can validate sql scripts before executing using .net2 and c#. If sql is not valid i want to return error rows.
...
In my VB.net Winforms application I'm using the ITaskbarList3::SetOverlayIcon interface to set status overlays on the application's taskbar button (under Windows 7). This all seems to work fine for me, with the icons being shown and removed correctly.
From the form load event, one of my functions makes the call
SetOverlayIcon(parentFo...
Is it possible to use all WPF functionality in C# (VB, ...)? Or is there any maybe advanced functionality that is not directly accessible from C#? (Maybe because it might not be accessible by public methods but rather internal.)
...
I want to invoke a wcf webservice using a url query string. Like if I have a webserive that expose a ADD method of adding two integers. I want to invoke this service using http://mywebserviceAddress/Add?x=4&y=5
Is it possible to do this. I am new to webservices, this may be very easy for most of you.
...
i'm learning vb.net and c# at the moment. can anyone recommend a book that focuses on the .NET framework in general and isn't too language specific.
...
This is on .Net 4, full framework.
I'm trying to make a simple winforms app that will make some simple WCF REST calls. It's using ChannelFactory and the service contract interface. Of the ~20 methods in the interface, 2 of them involve Stream (an upload and a download method) so the service side (and currently also the client side) us...
I generated WCF proxy that has integer [fieldName] in message contract request class. I tried to send value to server but value always came 0 until I manually set [fieldNameSpecified] to true.
Is there something wrong with proxy generation or WCF was designed this way?
What are the reasons behind [Specified] fields especially if strin...
Hi all, my requirement is to enumerate all directories and specific .tif files (that are at the end of the structure). Sample is
A (path selected from UI) <has>
B<has> and C<has>
D <has> E F G H I J
K ...
Does anyone know how to change the mapped db table for an entity in EF4 (entity framework 4)?
Later edit: I think i've found the place where the table names are defined, in the model browser. But their names are readonly, so it's not possible to edit them using the designer. Also, there's no reference (from what i've searched) to the ta...
Hello,
I'm trying to add my plugins to my application via Assembly.LoadFrom and I would like to know if there's a property to know what type of assembly was loaded - dynamically linked library and executables can be loaded, right?
Thank you!
...
I thought that element property syntax and attribute property syntax have no big semantical difference. However, I found that there must be some difference.
E.g. The following example just demonstrates a simple trigger:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2...
I'm developing a windows service that will need to do multiple tasks at different periods.
I currently have two timers, a full timer and a stock timer running at different intervals defined like below.
fullTimer = new System.Timers.Timer();
fullTimer.Elapsed += new ElapsedEventHandler(OnElapsedTime);
fullTimer.Interval = Convert.ToD...
So why working on improving some of the development habits at the company that I work for I've decided to attempt to create a CI process using TeamCity. It was fairly straight forward until I got to the point where I was trying to set up my Build Agent to build a .sln that is comprised from about 11 mercurial repos (1 for each project). ...
Hi guys,
I have a problem, I hope somebody out there can help.
I'm not really good at sql programming so I need help from u guys.
Here's my problem, I have customercode that has possible of 2 or 3 addresses.
sample:
cust1 address1
cust1 address2
cust1 address3
cust2 address1
cust2 address2
I want to generate a report in .net to...
I'm currently working on some .Net based software (.Net Framework 3.5 SP1) that integrates with HP Quality Center 10.0 through it's COM Client API (often referred to as TDApiOle80 or TDApiOle80.TDConnection).
We are using XUnit 1.6.1.1521 and Gallio 3.1.397.0 (invoked from an msbuild file)
We go through a process of:
Creating a conne...
I created an object that has specific method to process different kind of events and will lived until my application is running. I also created individual delegates pointing to each methods and are referenced to x number of threads. Given y and z thread will invoke method1 by using a delegate pointing to it, will z thread wait for y thr...
I would like to force a user to complete some additional information once they have created and account and have validated their email address. For now, this additional information is simple (first name, last name). Once a user logs in, I am going to redirect them to an additional information page to complete this information. I'm jus...