I have a global header and footer that has a Database connection and a disconnection in the header and footer and need to convert this to ASP.NET - this needs to be done before any HTML is output and after any HTML is output for the footer.
I cannot seem to find any easy way to do this, like in Classic ASP - if possible post an example o...
Hi,
Anyone know of a fully managed .NET library that can read and write Excel 2007 binary files (.xlsb)? OLE automation is not an option (must work without having Excel installed).
Thanks,
Marcus
...
Good morning,
I am looking for a good .NET based screen capture utility. It would need be able to capture secure pages (https). It would be preferable it would capture Flash/ActiveX.
Thanks,
-Z
...
In general, I design classes in such a manner as to not require access to privates for testing purposes. An InternalsVisibleTo can also assist.
However, I'm currently dealing with a codebase that has a few area which have become reliant on the private accessors mechanism in VSTS (i.e., using VSCodeGenAccessors to generate *_Accessor cl...
Hey guyz!
I have a .net 2.0 C# Project.
I have a Treeview with 2 Nodes, each of them has many child nodes.
When you click on a child node, a PDF is displayed in a webbrowser control depending on the properties of the node.
Fine, but the problem is that when both Nodes are expanded, and I click on a child node, the other node gets collap...
Is there a way in .NET 3.0 (or earlier) to get a string representation of a method? I know that I can get an IL byte array from a MethodBody object, but I'm interested in getting a string that essentially represents the method body as it appears to my eyes in VS.
I've poked around in the CodeDom namespace to see if there was a way to co...
I am trying to learn WCF. I have a simple client and server application setup and upon pressing a button on the client, it gets an updated value from the server.
My next step is I am trying to do a callback from the server to the client to update its value. I have poured through many examples, and they just seem too big and confusin...
Hello everyone,
Here is my current implementation of a stored procedure which returns Order status for a given Order ID. There are two situations,
there is matched Order ID and I will retrieve the related status,
there is no matched Order ID (i.e. non-existing Order ID).
My confusion is, how to implement the two functions elegantl...
In my Windows Forms app, I two DataGridViews that represent a Master-Detail relationship. The datasource for each is a Data Transfer Object, represented as an IList(of T) -- so DataRelation is out. What is the best way to drive the master-detail grids? Is there a built-in way to do this in .NET or do I have to write my own rebind when...
Hi,
My entity framework provider (CoreLabs/Mysql/devart) is creating ridiculously slow queries.
is it possible for me to set the actual sql query that will be executed?
Thanks
...
Hey
I would like to step thru dataset designer code in an ASP.NET project, how can i ensure that this:
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
is not included on the code it generates?
...
I have been deploying several programs into one folder using XCOPY deployment to a shared network drive as it makes it extremely easy for me to update in house programs. These have a shared DLL NNC.dll. It doesn't often get modified but has done recently so when I went to deploy I couldn't overwrite as it is a breaking change.
If I chan...
I need to find 2 elegant complete implementations of
public static DateTime AddBusinessDays(this DateTime date, int days)
{
// code here
}
and
public static int GetBusinessDays(this DateTime start, DateTime end)
{
// code here
}
O(1) preferable (no loops).
EDIT:
By business days i mean working days (Monday, Tuesday, Wednesday,...
There's this. Can you do a better job explaining (in small words so I understand :)) why we need a marker interface which doesn't add any methods over IEnumerable?
...
I have a group of three radio buttons. Depending on which radio button is selected, I want to disaply one of three controls - a textbox, a dropdown list, or a button. How do I display controls based on the result of a selected radio button?
...
I have an array of custom objects. MyCustomArr[]. I want to convert this to System.Array so that I can pass it to a method that accepts only System.Array. The signature of the method is:
public void Load(Array param1, string param2)
{
}
...
Hi,
Is there anyways to get the executable file path of a running Windows service without requiring administrator execution level privilege in .Net? (Without causing the UAC to get the user's confirmation)
...
Static initializers are supposed to be executed once before the first reference to the class. It means that every time a class is accessed, a check should be performed whether the static initializers for the class are executed.
It seems that in multithreaded environment classes with non-trivial static initializers can be a source of cont...
Did anyone handle such scenario in the code?
User is typing something in the input area (say, rich text box). This causes multiple TextChanged events to fire. We want to capture only last changed event when user stops typing (i.e.: no changed events for 5 seconds).
Does anyone have a clean C# snippet of doing that?
...
I'm stuck in an "advanced" ASP.NET class right now and my instructor just put forth an opinion that I'm not sure about. (I say "advanced" because he's still using HTML tables for page layout and we just talked about the incredibly advanced topic of Master Pages. I need eye bleach!)
He states that instead of, say, creating a Person class...