You can invoke a C# or a managed .Net dll from a Native application written in VC++ or C++ in several ways. Here are the three main ways you can use to achieve this.
Use a C++/CLI wrapper
Host CLR (Common Language Runtime)
Convert .NET assembly to a COM server, and call it from C++ through [...]
By default, Asp.Net specifies a limit for the input stream buffering threshold. This limit can be used to prevent denial of service attacks that are caused, for example by users posting large files to the server. The default value for this is 4096 kb. If the threshold is exceeded, you get a ConfigurationErrorsExeption with a [...]
23Apr
Posted by admin as .Net, C#, Visual Studio
There usually are several occasions where you might want to loop through all the controls in a container like a panel or a form etc.. looking for a particular type of control. For example, lets say you have a panel on your form which has several CheckBoxes in it, and you wish to find out [...]
Escaping XML text basically means we are trying to replace the “<”, “>” etc. characters that are used to construct the XML with the encoded values. Here are the 5 values that we care about
XML Value
Encoded Value
<
<
>
>
“
"
‘
'
&
&
There are several ways in which you can escape an XML file or string in .Net.
1. Using Regular [...]
21Apr
Posted by admin as .Net, Asp.Net, IIS7, Microsoft, Visual Studio, Web
It is very simple to get the name of the application pool current worker process is associated with in Asp.NET. You can simple use the server variables for that. For example, to display the app pool name on your web page you can simply use the below code snippet.
<%= Request.ServerVariables("APP_POOL_ID") %>
This is usually helpful when [...]
On some occasions you might want to use retail versions of Asp.Net JavaScript libraries while debugging your code. (For starters, when in debug mode in Visual Studio, you are not using the release versions, instead you are using debug versions of the libraries). To achieve this all you have do is set the ScriptMode property [...]
15Sep
Posted by admin as .Net, Asp.Net, HTML, Microsoft, Technology, Web
On some occasions, you wish to initialize your Asp.net application even before it receives its first hit to get rid of any over heads like creating application domain, initializing the .net runtime environment etc.. To achieve this you can use aspnet_compiler to pre-compile ‘in-place’, so that in effect the application is primed. Compiling ‘in-place’ the [...]
15Sep
Posted by admin as .Net, Asp.Net, Microsoft, Technology, Web
For the starters, Adaptive control behavior is control behavior that is customized for target devices. ASP.NET provides an adaptive architecture that allows key life cycle stages of a control to be intercepted and substituted with custom behavior. A common example of adaptive control behavior is adaptive rendering where an ASP.NET Web page is rendered specific [...]
Take a look at this very interesting blog post series - 31 days of refactoring
http://www.lostechies.com/blogs/sean_chambers/archive/2009/07/31/31-days-of-refactoring.aspx
The various refactoring “methods” are getting more complex and interesting as the series continues.
IMHO, This is must read for all developers.
30Apr
Posted by admin as .Net, Microsoft, Technology, Visual Studio, Windows
Officially according to Microsoft .Net Framework 3.5 is not supported by Visual Studio 2005. I dot not know if there is a way to make the .Net FrameWork v3.5+ Asp.Net websites work with and Visual Studio 2005, but for any other windows projects, All you have to do is make a small change in your [...]