Validus … talkin bout <code> n sh!t

12Dec/110

DevExpress v2

Posted by Joey

DevExpress last week (I think) released dxv2!

http://devexpress.com/Subscriptions/DXperience/DXv2/announce.xml

The biggest feature here is the touch. You can now develop apps and websites for Mobile devices with touch capabilities. On top of this there are the usual release features and bug fixes.

I’m yet to upgrade to it, possibly over the Christmas break will give it a crack :)Continue reading

Filed under: C# No Comments
25Nov/110

ASPxGridview – Specified method is not supported

Posted by Joey

I keep getting this error whenever I create a new ASPxGridView with RowUpdating/RowInserting/RowDeleting.

Basically my code behind looks like so:

1

Originally when I first create… Continue reading

Filed under: C# No Comments
18Nov/110

c# how do get yesterday’s date

Posted by Joey

Simple one, figured I’d post it anyway.

You may have a scenario where you want to get today, yesterday or tomorrow’s date.

Just a note, I’m not using any date format so by default it’ll do mm/dd/yyyy etc..
1… Continue reading

Filed under: C# No Comments
14Nov/110

DevExpress: Remove old toolbox items in Visual Studio

Posted by Joey

This is a common error I’ve had since upgrading to the newest DevExpress Tools, so today I decided enough is enough!
Well actually it was after I had numerous errors after accidentally dragging the wrong ASPxGridView toolbox item. I dragged the v9.3 instead of v11.1.

These are the steps I did to fix this.

Go… Continue reading

Filed under: C# No Comments
28Oct/110

ASPxGridView: How to remove command buttons on individual rows

Posted by Joey

I’ve had this come up many times. Let say we want a grid for users.
You have a GridView with some data columns e.g. Id, Name, Email and then you have 3 command buttons; View, Edit & Delete.

If we had an Admin as a user we don’t want a delete button to render against that user. So how do we do this?

Using CommandButtonInitialize, as the name… Continue reading

Filed under: C# No Comments
27Oct/110

Uncaught Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException

Posted by Joey

Got this error with a part of our system that users a built in ajax call.

This is the full error stack trace:

1
Uncaught Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException: The script ‘http://localhost/ScriptResource.axd?d=RdrMrDIqMUWDZUGk1HLoz3DQ–nxs6_OshH5AE4paXP2ecuMfZMCKDB3qoZzh59m8opSrKYYvuUs3nHBBPkMoJetCjuhLVGKnKD6zFvQ_xhQ5PtENGhta9Du8PDUgExG41_pNH4_11kTTLijRHMd4ZYDse01&t=ffffffff8b3ffb57′ failed to load. Check for:

Inaccessible path.

Script errors. (IE) Enable ‘Display a notification about every script error’ under advanced settings.

Missing call to Sys.Application.notifyScriptLoaded().
Sys$WebForms$PageRequestManager$_scriptIncludesLoadCompleteScriptResource.axd:1266
Sys$WebForms$PageRequestManager$_scriptIncludesLoadFailedScriptResource.axd:1304
(anonymous function)ScriptResource.axd:31
(anonymous function)ScriptResource.axd:47… Continue reading

Filed under: C# No Comments
12Oct/110

Developers in a new job?

Posted by Joey

Found the following article on Slashdot, rather interesting.

http://ask.slashdot.org/story/11/10/11/1650246/ask-slashdot-standard-software-development-environments

“I have only been doing software development for about 5 years, and worked most of it at one company. I recently switched to a new company and am amazed at the lack of technology used in their development process. In my previous position, we used continuous integration, unit testing, automated regression testing, an industry standard (not open… Continue reading

Filed under: C#, Stuff No Comments
11Oct/112

Camtasia Recorder as a Development Tool

Posted by Joey

Today I feel like taking a turn away from all code examples.

Recently I’ve been trying to bridge the gap between Testers & Developers. The hardest thing to do, is have that synergy between both teams where they completely understand each other. Sometimes it feels like you’re both speaking different languages and nothing gets completed!

One of the biggest problems I’m facing is the fact we do not… Continue reading

Filed under: C#, Stuff 2 Comments
10Oct/111

DevExpress ASPxCallback crash course

Posted by Joey

I keep forgetting how to create a simple callback, so I’ve decided I’ll quickly make this post.

Scenario: I have a button, that I want to execute a method, but I don’t want to use a Full Postback, so I’ll use a Callback.

Firstly lets put code up our button & callback
1

Next add the Callback
1
<%@… Continue reading

Filed under: C# 1 Comment
16Sep/110

The type or namespace name ‘Orientation’ does not exist in the namespace ‘DevExpress.Web.ASPxMenu’

Posted by Joey

Another error from the DevExpress Upgrade to 11.1.7, following error:

1

Fix:
use System.Web.UI.WebControls.Orientation.Vertical… Continue reading

Filed under: C# No Comments