Tuesday, October 5, 2010

Export the datagrid Image to excel

Use the full path

some thing like this.. just use the padding too here for reference :)

Return (HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) & HttpContext.Current.Request.ApplicationPath & "/thumbs/" & strArgument.PadLeft(7, Convert.ToChar("0")) & "_80.jpeg")

Monday, October 4, 2010

unable to copy from obj/debug to Bin in dotnet

Use this in the Build Events...

if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"