Browse by Tags

All Tags » c# (RSS)

C# Training using 4994 Microsoft Courseware by Palermo4

This was my first time teaching the 4994 Microsoft courseware at Interface Technical Training .  The course is an introduction to programming using either C# or VB.  At Interface, we teach it exclusive to the language.  This week I had...
Filed under: ,

Video: Two New Methods in System.GC by Palermo4

In my latest video, I demonstrate how to use two new methods of the System.GC class in the .NET Framework v3.5:  AddMemoryPressure and RemoveMemoryPressure.  You will see the impact of using these methods correctly when allocating unmanaged...

Video: Interactive Silverlight Using Ajax by Palermo4

Need dynamic data in your Silverlight application? Want to create a nice interactive experience for users of your site? In my latest video, I demonstrate how to generate XAML dynamically on the server based on user input - and serving that content through...

HttpRequest Using IsAjax & IsJson Extension Methods by Palermo4

Although the ScriptManager has a property named IsInAsyncPostBack to determine an AJAX call, the control is scoped to the page it is contained in. If writing code in a custom HTTP module, what if I need to know in the BeginRequest event whether the current...

How To: Access Underlying Data of the ObjectDataSource by Palermo4

A gentleman in my ASP.NET 2.0 class a while ago asked me how to access the underlying object used for the ObjectDataSource control. Suppose you have some code in App_Code like so: public class DataManager { public DataSet SelectDataSet() { // code that...
Filed under: , , , ,

Revision: Get the Value of a Control Without an Instance of the Control by Palermo4

On an earlier post, I provided code that would retrieve the value of a control from the HTTP post without the need for an instance of the control . With good feedback, I made some modifications as follows: public static string GetControlValueFromRequest...
Filed under: , , ,

Revision: Case-Insensitive String Equality by Palermo4

I made revisions to my method for comparing strings while ignoring case . This is in light of some good feedback I received. Here is the updated method: public static bool AreEqualIgnoreCase( string firstString, string secondString) { // if references...
Filed under: , ,

How To: Create a Strongly-Typed Property For HttpContext.Items by Palermo4

HttpContext.Items is one of my favorite properties in ASP.NET. If I want to communicate a value from the HTTP pipeline to a page and then to a user control, this is my method for doing so. Because the Items property is an implementation of IDictionary...
Filed under: , , ,

How To: "Upsert" Into AppSettings by Palermo4

ASP.NET 2.0 allows developers to update or insert values into web.config programmatically. This allows senior ASP.NET developers to create an administration or support page to modify values into web.config sections - without tampering with the web.config...
Filed under: , , ,

AJAX Without ASP.NET AJAX by Palermo4

On day nine of my "post a blog every day in July" mission, I want to share how to get AJAX behavior in ASP.NET without using AJAX Extensions 1.0. Keep in mind, I prefer to use AJAX Extensions! This blog is for those out there that need a sprinkle of AJAX...
Filed under: , , ,
More Posts Next page »