C# and ASP.Net
Using and grouping RadioButton Controls in a Repeater
Nov 10th
By default, you cannot group radiobutton controls within a repeater as the repeater mangles the names. I had this exact problem when changing from checkboxes to radio buttons – after searching Google for 10 mins, I found a post at the following site by Eric Smith which i’ll copy the relevant info here so I More >
Getting the control that posted back to asp.net application
Oct 7th
Need to know which specific control posted back to your page? (Original article at http://geekswithblogs.net/mahesh/archive/2006/06/27/83264.aspx)
/// <summary>
/// Tells us which control posted back
/// </summary>
/// <returns></returns>
public Control getPostBackControlName()
{
Control control = null;
//first we will check the “__EVENTTARGET” because if post back made by the controls
//which used “_doPostBack” function also available More >
Preparing an asp.net master page for print only view – stripping out css etc
Oct 7th
Searching google turned up nothing on this so did some digging in MSDN and worked out a method of disabling all the style sheets, javascript etc to produce a text only page:
1/ Add a content block to your master page – i’ve called mine ‘cssContentHolder’
<asp:contentplaceholder id=”cssContentHolder” runat=”server”>
<link rel=”stylesheet” href=”css/master.css” type=”text/css” media=”all” />
<link href=”css/flyout.css” media=”screen” rel=”stylesheet” More >
Muting audio channels using Mixer Control API
May 1st
I recently had a problem on a job where no matter what we did, we could not control the left/right balance programmatically on two specific PC’s.
We tried using various methods:
Windows Media player API
DirectSound APi
WinMM.dll
Praying
None of them worked although you could control the balance using the Windows sound vol (sndvol.exe) program from the taskbar.
We decided to More >
URL Rewriting in Asp.net using URLRewriter
Apr 1st
One way to get yourselves rated better in the search engines is to get rid of the basic aspx page and replace it with something much more descriptive so this article goes on how to use URLrewriting in your project.
Developers issue death warrant for IE6 | News | TechRadar UK
Feb 24th
A campaign calling for the immediate death of Internet Explorer 6 is picking up pace, with a host of developers castigating the browser that ‘hindered the development of the web’.
.net magazine is supporting a campaign to rid the world of IE6 – a browser that is still being used by a large proportion of people More >
Client Socket Programming in C# using the built in libraries – a fully working production example Part 2
Jan 16th
My previous article which you can find at http://blog.xploiter.com/index.php/2009/01/16/socket-programming-in-c-using-the-built-in-libraries-a-fully-working-production-example-part-1/ covered the creation of a solid production ready Socket Server written in C#. I promised to follow up with part 2 which would be a suitable client so without further ado, here we go
Socket Programming in C# using the built in libraries – a fully working production example Part 1
Jan 16th
One of the things i’ve noticed over the last few months in particular is the lack of decent programming examples in C# for a suitable client/server socket solution that just works! I was working on a contract that needed a robust and stable communications mechanism between multiple PC’s on a closed network for a Railway Simulator and Aircraft Simulator I was working on.
How to programmatically turn on the Numlock Key
Nov 7th
The following code will allow you to turn on the numlock key upon startup. Can’t credit anyone as i’m not sure where it came from but it does work 100%
using System;
using System.Runtime.InteropServices;
class SetNumlockKeyOn
{
[StructLayout(LayoutKind.Sequential)]
More >