When developing custom Sitefinity widgets, you want to make sure that the ascx file used for the display can be…
Tag Archives: asp.net
How to: Check for Enter/Return inside a textbox (server-side binding)
Working with textboxes on a page, you may find yourself wanting to submit the data as soon as the Enter/Return…
How to: Troubleshoot “The event handler ‘OnClick’ is not allowed in this page”
While working with an asp.net page in SharePoint 2007 (or, in any other situation where you get this error), when…
How to: Get the currently logged on user’s Username and ID (ASP.NET – v:3.5+)
There’s very easy and practical way to deal with the need to get a user’s Username and ID when programming…
How to: Solve the “empty Ajax Update Panel” predicament; or, why do controls that live in an UpdatePanel always display last.
A funny thing happens if you’re using an empty Ajax Update Panel on your page/control definition in order to programmatically…
How to: Get a list of the names of all the computers on a domain
How to: Get a list of all computers on the domain add the following references: System.DirectoryServices System.Net System.Net.NetworkInformation The following…
How to: Add data to the Application Cache programmatically
There’s two ways to add data to the Application Cache. Notice that this is different to the Session cache in…
Basics: Page/Control Lifecycle (ASP.NET)
Embarrassing as it may be, I need to keep a note of the lifecycle of pages and controls cause, still,…
How to: Add custom Web User Controls to SiteFinity as widgets
I started working with Sitefinity lately. An interesting CMS product that helps achieve a lot of functionality right out of…
Quick tip: Troubleshoot Response.Redirect() in a try/catch clause
If you have a Responce.Redirect(“urlToNavigateTo”) method in your try section of a try/catch clause, you will notice that the debugger…