Validus … talkin bout <code> n sh!t

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
1Jul/110

How to find the name of a sql server

Posted by Joey

Fast way to get a sql server name, great if you’re dealing with multiple sql servers.

1

This will return the Windows computer name on which the sql server instance is currently running on.
It will return NULL if there is an error.

1

This will return the instance & computer name

[code… Continue reading

Filed under: Databases No Comments
21Jun/110

ASPxCombobox displays System.Data.DataRowView

Posted by Joey

If the combobox has ‘System.Data.DataRowView’ as values it means you haven’t set the TextField & ValueField for the combobox, so it doesn’t know what to use.

1… Continue reading

Filed under: C# No Comments
7Jun/110

ASPxRadioButtonList Example

Posted by Joey

Great tag for grouping radio buttons. By default it will render vertically, to change this simply add RepeatDirection=”Horizontal”
1

Link to DevExpress Doco

Filed under: C# No Comments