joeydaly.com #code #afl #tennis

20May/110

C# how to use dictionary

Posted by Joey

Dictionaries are like two dimensional arrays, I think is the best way to describe it. Anyway, here’s some sample code on how to create and use a dictionary

1… Continue reading

16May/110

how to select columns from a stored proc

Posted by Joey

Okay so recently I’ve had to select only certain columns from a large stored proc that may return like 4 columns. How to do this?

DECLARE @tableVar table (Surname varchar (100), FirstName varchar(255), Email varchar(100), Age int)
INSERT INTO @tableVar EXEC dbo.usp_getSomeData
SELECT Surname, Email FROM @tableVar… Continue reading

10May/110

ASPxGridView – The target x for teh callback could not be found or did not implement ICallbackEventHandler

Posted by Joey

Okay, so this error came up the other day as a javascript popup. I was trying to do a gridview within a gridview and give it an editform. So my problem was the event handlers it was listening for, such as OnRowUpdating… etc.
So check you’re code to see if you’re missing any event handlers you haven’t declared. I commonly made this mistake of not deleting old event handlers… Continue reading