Tag Archive
ASP.NET Asus p4C800 Blogging blog updates c# Color Codes Color Hex Codes compair Drupal and WordPress corporate networks cpu errors Delphi delphi Prism Delphi Prism 2010 Delphi RAD dll Drupal easy blogging Firebird GAC GacUtil Google Maps Google Maps not displaying hardware HTML IE6 Intel Intel servers Microsoft Visual Studio modules motherboard Online Writing pascal Plagiarism programmign Programming PublicKeyToken Quiet Mouse Self.AutoPostBackControl Stealing Articles system fail cpu test TDateTime Triond Unix Timestamp Visual Studio 2010 tricks WordPress
Auto Indent Visual Studio 2010 Code With Ctrl-K-F
In Visual Studio 2010, hitting Ctrl-K, Ctrl-F will auto indent a highlighted section. Ctrl-A, Ctrl-F Ctrl-F will do the whole file.
How to get Session Parameters in an ASP.NET ASMX service.
Session parameters get used a lot in ASP.NET pages and they work pretty well, but when you try to use them in an ASMX web service, you get errors. So, how do you get the session parameters? It turns out that it is really simple. Just add “EnableSession = true” to your WebMethod and it [...]
Parser Error Message: Could not load file or assembly ‘VJSharpCodeProvider
I have been working on an ASP.NET website for quite a while and recently went to flip it onto a different server for testing. Like many before me, I was pretty baffled when I got a configuration error claiming that I needed the VJSharpCodeProvider. I don’t even use Visual J Sharp. Further research came up [...]
Delphi Prism 2010 Does Not Seem To Use Subdirectories
When working on an ASP.NET website, I find it a lot easier if you put related sections in seperate subdirectories. For example: CSS and Javascript can be put in a directory with caching in order to speed up the page loads Pages that are only available to certain roles (i.e. “Admin”) can be put in [...]
Accessing Firebird from Delphi Prism 2010.
Here is a quick routine to read values from a Firebird Database into Delphi Prism. uses FirebirdSql.Data.FirebirdClient; method RunSqlCmd(sqlCmd: string; resultName: string; var FieldVar: array of string; FieldName: array of string): string; var conStr: string; count: integer; i,j: Integer; colName: string; val: string; dataType: System.Type; [...]
For Delphi 2007 RAD ASP.NET development, Borland.Data.AdoDbxClient
I have been doing quite a bit of ASP.NET development using Delphi 2007 RAD. After a lot of testing, it looks like the Borland.Data.AdoDbxClient leaks quite badly (i.e. on XP aspnet_wp.exe and on Win Server 2003 w3wp.exe uses more and more memory until it fails). First of all, a huge thanks to Felix John COLIBRI for his very useful articles:
Delphi ASP.NET keeps inserting an illegal command if you install the latest Visual Studio
As a long term professional Delphi developer, it was a bit annoying when I cam across a recent post to the forums. It appears that if you have Delphi (in my case Delphi 2007) and install Microsoft Visual Studio 2008 (aka the competition) or install updates to ASP.NET 2.5, it screws up Delphi. The main thing that I have noticed is that now Delphi keeps inserting “Self.AutoPostBackControl := nil;”, which does not compile into the code! What a pain. The really frustrating part is that I don’t see any real response from CodeGear.
Delphi 2007 will quietly delete callbacks in ASP.NET pages.
Well, I just got nailed by Delphi again… In Delphi 2007 (I use RAD Architect), if you are working on ASP.NET pages, there is a nasty gotcha.
If you are run your website from Delphi, then try to flip between the desing and aspx tabs in Delphi, the next time that you compile, it will clear most of the InitializeComponent section (everything but the Page_load). This means that all your buttons and dropdowns will no longer have events tied to them. If you are paying attention, the compiler does give you a warning about functions that are declared but not used.