ASP.NET contains a simple method to encrypt sections of web.config files. It is simple to do this by code and it is simple to do this by command line with the aspnet_regiis tool for web.config files. And although the underlying API isn’t ASP.NET specific, there is no tool like aspnet_regiis for app.config files. I am aware of the workaro...
why i generate instance outside of class. i give inheritance snifC to sinifD i need to create instance sinifC sinifc= new sinifC() in SinifD out side of constructor?
public class sinifC
{
public void method3()
{
Console.WriteLine("Deneme3");
}
}
public class sinifD : sinifC
{
...
In a previous question I asked possible programatic ways of maximising the largest block allocatable on the LOH. I'm still seeing the problems, but now I'm trying to get my head around why the LOH seems to grow and shrink in size, yet I'm still seeing OutOfMemoryExceptions that tally with what others have reported as being due to LOH fra...
I'm starting with the two values below:
finalString = "38,05,e1,5f,aa,5f,aa,d0";
string[] holder = finalString.Split(',');
I'm looping thru holder like so:
foreach (string item in holder)
{
//concatenate 0x and add the value to a byte array
}
On each iteration I would like to concatenate a 0x to make it a hex value and add it to...
Hey, i know the 5 registry hives have large 8-digit values for their handles and i have written a function which maps the value to the hive name.
However, i'm also getting (in my data) much smaller numbers like 60, 120 etc and i have no idea which registry keys these represent. What could i do to find out?
...
Hi,
I know there are a few ways to use value converter in xaml, like using StaticResource to get converter from resources or Static to get from a static instance. My question is, for whatever reason, I have a converter instance created in the code behind, and can be accessed through a non static property, How can I use this instance of ...
I'm looking at building some unit tests to ascertain if resources are leaking (or not) using the unit testing framework that comes with Visual Studio.
At present, I'm evaluating the latest version of ANTS Profiler, but I can't quite work out if it allows me to force a snapshot from code (so that I can take a snapshot, run a unit test a ...
I'am a bit confused about the use of Isolated Storage on a IIS server.
I understand the goal of Isolated Storage : provides a safe place to store data with no worry about how and where is this place.
Since Isolated Storage have a by-user and by-assembly approach, I'am not to wild about using it on a IIS server where applications have a...
I want to rotate an image with asp.net. I used TranslateTransform and RotateTransform. After rotation, the image is damaged. How can I solve this problem?
...
We have a .NET app that needs to examine a folder that may contain COM libraries (DLL and OCX.) When we do encounter a COM library one thing we need to accomplish is to extract the GUID from the COM DLL or OCX.
Is there a straightforward way to do this with .NET without using 3rd party libraries?
...
I have an app that works fine on 32-bit systems, but fails on XP 64 bit systems. I've tracked it down to the connection string defined in my app.config thus:
<connectionStrings>
<clear/>
<add name="IFDSConnectionString"
connectionString="Data Source=fdsdata;Initial Catalog=IFDS;
Trusted_Connection=true;Connec...
What kind of algorithm Array.Reverse(string a), uses behind the scene to reverse the string?
...
The Visual Studio unit test tool publicize.exe appears to be unsupported. Bugs aren't getting fixed in it and I'm hitting blocking bugs where it crashes when creating private accessor assemblies for perfectly valid assemblies.
Do any alternative tools exist for publicize.exe?
(I'm aware of InternalsVisibleTo, and the arguments for...
Hi all,
I have a Webapp which connects to 2 DBs (one core, the other is a logging DB).
I must now create a Windows service which will use the same business logic/Data access DLLs. However when I try to reference 2 session factories in the Service App and call the factory.GetCurrentSession() method, I get the error message "No session ...
Okay... I'm writing a .NET CF (VBNET 2008 3.5 SP1) application, which has one master form, and it dynamically loads specific UserControls based on menu click, in a sort of framework idea.
There are certain methods and properties these controls all need to work within the app.
Right now I am doing this as an Interface, but this is aggrav...
Guys, I am trying to write a class in C# that can be used as a direct replacement for the C# Bitmap class. What I want to do instead though is perform all graphic functions done on the bitmap using the power of the video card. From what I understand, functions such as DrawLine or DrawArc or DrawText are primitive functions that use simpl...
Hi everyone,
Please suggest me a C# cross-platform solution to copy a File with progress.
The method should be able to copy the file on Mono as well on .NET.
P.S. Most of the solutions here refers to CopyFileEx (which uses PInvoked and I am not sure if this will works on a Mono)
P.S.S. Many thanks in advance!
--
Murat
...
What's the cleanest way of editing the characters in a string in C#?
What's the C# equivalent of this in C++:
std::string myString = "boom";
myString[0] = "d";
...
Hi,
I have .net webservice working in computer machines, am i not sure whether i can use the same in iphones.
Can i run the webservices webmethods that is developed for web-browsers in iphones?
Thanks.
...
Hi,
I use VS2008 C# + Windows Forms. I can't understand why comboBox does not behave the way it should.
In Design mode, I added a comboBox to my form, and edit Items to add "A" and "B". Double-clicking brings me to SelectedIndexChanged event, which I edit to display the selected text with MessageBox.
private void comboBoxImageSet_Sele...