I have a Silverlight control on page which has a upload control. the silverlight exposes some events such as
StartUpload() => To start the file upload,
StopUpload() => To stop the file upload if running,
CheckFileStatus() => to check the status of the file upload.
The page has aspx Submit button with onclientclick event and ocClick ...
There are many classes having this provider suffix. (Data,membership,modelmetadata,...).
When should be a class called as a provider class ?
...
HI,
I have a pagge which containf largde amount of data in Dropdown and after the page is rendered to client Side.
It shows the Source of the page.
This happens to few pages and in IE8 Browser.
What may be the problem ?
...
I have written a WPF 4.0 windows application that consumes a .net 3.5 WebService. This works fine when the web service in hosted to allow anonymous connections, however the WebService I need to consume when we go live will be held within a website that has Integrated Authentication enabled.
The person running the WPF application will b...
Hi,
I've been quite surprise when I saw the metadata of ReadOnlyObservableCollection in VS 2008...
public class ReadOnlyObservableCollection<T> : ReadOnlyCollection<T>, INotifyCollectionChanged, INotifyPropertyChanged
{
// Summary:
// Initializes a new instance of the System.Collections.ObjectModel.ReadOnlyObservableCollect...
Hi, I am facing a problem while using an unmanaged dll in my .net application and getting the exception
"The runtime has encountered a fatal error. The address of the error was at 0x79e71bd7, on thread 0xbb4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common...
First of all, I have to say that I'm going to talk about System.ComponentModel.Component.
You know, I understand, that the .NET Component Model provides ability (through Site Services) to define separate Components, so they can communicate with each other in a loosely coupled way, and that each Component is easily replaceable.
But my ...
When I learned Java, I was told that the arraylist works this way:
It creates an array with room for 10 elements.
When the 11th element is added, it is created a new list with room for 20 elements, and the 10 elements are copied into the new array. This will repeat as until there are no more elements to add, or to a maximum size.
Is ...
here is a class code :
> [DataObjectAttribute] public class
> Report { public this() {}
>
>
> [DataObjectMethodAttribute(DataObjectMethodType.Select,
> true)] public static
> GetAllEmployees() : DataTable {
> null }
>
>
> [DataObjectMethodAttribute(DataObjectMethodType.Delete,
> true)] public
> DeleteEmployeeByID(...
We have an application (a custom network management tool for building automation) that supports printing labels that you can cut out and insert into the devices' front displays. In earlier versions of the tool (not developed in my company), the application just pushed the strings into an Excel file that the field technician could then ma...
I use to set WithEvents variables to Nothing in Destuctor, because this will "Remove" all the Handlers associated with Handles keyword. Will this have the same effect for derivated classes?
Class A
Protected WithEvents _Foo as Button
Private Sub _Foo_Click Handles _Foo.Click
' ... some Click action '
End Sub
Pu...
Can anybody help me with retrieving some elements from the following example text:
sdfaasdflj asdfjl;a
AB-12/34 BC-/85 CD-//8 DD-77
DE-78/9
EE-78-98
asdf; asdjf
It is necessary to get the following elements:
AB-12/34, BC-/85, CD-//8, DD-77, DE-78/9
When I'm using a regular expression like this:
\s*(?<elements>\b[A-Z]{2}-[/0-9]+\b)
...
Hello all
Can you recommend me on places where i can read and see examples on usage of Lambda operator in c# .
I will really like to see a lot examples on it...
Thanks.
...
say I have:
class Test
{
public static int Hello = 5;
}
This obviously works:
int j = Test.Hello;
But why should this not work?
Test test = new Test();
int j = test.Hello;
The instance could not have a member equally named, so I don't see how this could be ambiguous or unresolvable for a compiler.
Anyone any idea wh...
I hope the title and following text are clear, I'm not very familiar with the correct terms so please correct me if I get anything wrong. I'm using Linq ORM for the first time and am wondering how to address the following.
Say I have two DB tables:
User
----
Id
Name
Phone
-----
Id
UserId
Model
The Linq code generator produces a bun...
Hi folks,
I've got a winform app in visual studio 2010. My app does the following
Get a list of files which I need to read the data then insert into a database.
For each file, read data and insert into DB.
So .. this is the code i have.
// *******
// *** How should the _repository be Injected??
// *******
var list = _repository.Get...
I have a check box and I have subscribed for the CheckedChanged event. The handler does some operations in there. I check and uncheck the checkbox programmatically (ex: chkbx_Name.Checked = true), and the CheckedChanged event gets fired.
I want this event to be fired only when I manually check or uncheck it. Is there any way to avoid fi...
I am using HTML Agility Pack to parse html content. I am using parsing to extract table information.
It works. But if there is no ending "/tr" tag or "/td" tag then it does not parse that information perfectly.(in which there is no ending tr tag or td tag.)
Like
<html>
<head>
<meta name="generator" content=
"HTML Tidy for...
Do you know of an effective way to detect circular references between .Net assemblies?
The situation I would like to detect/prevent is such as:
A references B
B references D
D references A
...
I've got a piece of tracking code which is capturing REMOTE_HOST, SERVER, REQUEST_METHOD, SCRIPT_NAME and QUERY_STRING. It grabs these from ServerVariables and sticks them in a database by user and IP.
What is the best way to pick up the exact contents of what was posted back to a URL in ASP.NET? Is there an HTTP_POST? I'd rather not gr...