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
16Jul/090

Server.MapPath() error ‘ASP 0173 : 80004005′

Posted by Joey

I had a problem today with Server.MapPath() while trying to check for images using a relative path. I got the following error:

Server.MapPath() error ‘ASP 0173 : 80004005′

My code being;

Dim fs
Set fs = Server.CreateObject(“Scripting.FileSystemObject”)
If fs.FileExists(Server.MapPath(“http://localhost/images/myimage.jpg”)) Then
‘do something
Else
‘do something else
End If

Basically I needed to pass virtual path in my app. So I had to… Continue reading

Filed under: C#, Stuff No Comments