I would like to know how to add some additional child nodes to a custom user control class derived from System.Web.UI.Control.
For example currently I have a control that contains no child nodes and on the design surface looks like the following.
<cust:MyCustomControl id="ctlMyCustomControl" runat="server" attribute1="somevalue" att...
Hi, I'm wondering if there's any mocking framework that allows testing methods contaning method calls to dependent class instances not injected to the tested method or its class:
void MethodToTest()
{
....
DependentClass dc = new DependentClass();
dc.Foo();
....
}
In the code above I would like to mock the call to Foo(...
Consider the following XML:
<response>
<status_code>200</status_code>
<status_txt>OK</status_txt>
<data>
<url>http://bit.ly/b47LVi</url>
<hash>b47LVi</hash>
<global_hash>9EJa3m</global_hash>
<long_url>http://www.tumblr.com/docs/en/api#api_write</long_url>
<new_hash>0</new_hash>
</data>
</response>...
i have a gridview,two buttons(edit,save) ,what i wanna to do is :
when click edit open the gridview in edit mode for all the textboxes.
when click save takes the changes and update
(rather than edit and update row by row)
i use object data source.
...
Hi,
I dont know if it is a problem with my iPhone code or SERVER.
I am uploading Image/Audio from iPhone to server using NSURLConnection. The images and audio get uploaded just fine if their size is less than 60KB.
If it is more than 60KB, I get a 400 Bad Request response from the server.
I am not sure whats happening. I am clueles...
Hi ,
I am developing a REST service in .NET 4.0 and here is my web.config file
I an new to .NET and have been struggling for two days to understand why I am not able to upload data more than ~60KB.
I understood by googling that that the BufferSize has to be increased and tried modifing web.config file in different ways which never wor...
I am an asp.net programmer and I am getting up there in my age. I wanted to know, from your experience, what skills (please be as specific as possible) would you focus on (.net or generic), what skills would you make sure you are razor sharp on, in order to avoid age discrimination?
I have heard from a few recruiters that I have "alot...
Does any one know of a Delphi to .NET converter (either C# or VB.NET)? I've inherited a bunch of Delphi code, never seen Pascal before and rather than learn it, I'd rather just try to use an automated converter, if available, and clean up the code after that. Can't seem to find this kind of tool anyway I search - maybe that's because one...
Hi all,
While working on a vb.net application, in which exceptions were handled poorly. It was a big pain. So an Idea flashed , that if it is possible to genearte a library or service or some sort of exe that will log all error of an application without writing a single line of code / minimal code at some global location in host applic...
Hello,
In simple words, I want to implement a function like that:
let myfunction (scalar : float) (quantities : ''T list) =
List.fold (fun acc quantity -> acc + quantity * scalar)
LanguagePrimitives.GenericZero<_>
quantities : 'T
Note that I am multiplying a value of generic type 'T and a float value (quantit...
How do I get all th resources dynamically from my current assembly? I have tried two methods, GetManifestResourceNames and GetResourceSet with no success. I am comfortable with solutions in VB.net or C#.
First Method
This first method only returns an array of length 1 with this value "MyNameSpace.Resources.resource". The problem is tha...
I am encrypting via the NSData AES128EncryptWithKey method and having problems decrypting it on the .Net side. I've read several posts that basically all say that my Salt and / or Initialization Vectors must be different and I suspect that my problem is related to that fact. However, I cannot find anything that says what the Salt used ...
I'm just starting out learning ASP.NET. From what I understand, ASP.NET differs from old school ASP in that the logic code for a page exists in as separate file rather then being embedded in the ASP page. So when a user requests a page like ShoppingCart.aspx the server reads the directive at the top ...
<%@ Page Title="" Language="C#" M...
Just a small question about c++/cli.
Abstract classes have abstract methods to be implemented by derived classes,
sealed classes dont allow inheritance.
So why we have some classes in .NET base class library defined as abstract sealed, and you can find plenty .. ??!
...
I need to upgrade to 2010 Visual Studio, until then.. it is even possible to use the DOTNETOPENID code with Visual Studio 2005 / Asp.net 2.0 or even VS 2005 .net 3.5?
http://code.google.com/p/dotnetopenid/
I can not load the sample code included with ASP.net 2.0 and Visual Studio 2005.. can anyone help or make suggestion? It seems to r...
I am trying to build a class like so...
public class IoCControllerFactory : DefaultControllerFactory
{
protected override IController GetControllerInstance(RequestContext request_context, Type controller_type)
{
// Attempt to resolve controller type.
IController resolvedControll...
Just wondering if anyone knows how I would implement additional/custom EndLineCap, StartLineCap & LineJoin attributes?
In short, LineJoin="Round" is what I want but I need both sides of the angle are smooth - instead of just the wider angled side.
Also, instead of just Rounded EndLineCap and StartLineCap I want a ball on each end (for...
I have two classes. The base class is A. The inherited class is B. I would like copy a base class from one object into the base class of another object without affecting the original class. However, .NET seems to ignore the copying. Is this not possible in .NET. I know this is possible in C++. I have included C++ code to illustrate what ...
I have a service that talks to other services on the same machine over named pipes. Everything works okay if I first start the service but after a while I get this exception:
"The pipe connection was aborted because an asynchronous read from the pipe did not complete within the allotted timeout of 00:02:00. The time allotted to this ope...
Is there a reliable way to open a specific bloomberg terminal page programmatically (e.g. "MSFT Equity")?
I am open to any suggestions and code samples:
Start process with path to bloomberg terminal executable and ticker in the arguments
Bloomberg API
DDE
COM Automation
SendKeys (can be blocked by some antivirus software)
...
Many t...