zaterdag, september 30, 2006

 

Google Web Toolkit - Build AJAX apps in the Java language

for you Java coders out there....

http://code.google.com/webtoolkit/

donderdag, september 28, 2006

 

ATLAS + Masterpages + WebParts - webservice troubles

As you could have red in my Ajax presentation sheets (http://dotnetpret.blogspot.com/2006/09/ajax-buzz-or-here-to-stay-lecture.html) used webservices must origin in the same domain, but not only that, there are also issues with different subdirectories. Today I sufferd the consequents of this issues, in my test page the ATLAS autocomple control I build worked fine, putting the same control on a webpart and using this part in my on masterpages based portal nothing happend! and worse, no errrors, not even JavaScript error.

To cut the story short. When using asynchronous callbacks in your masterpagebased pages, put your webservice (*.asmx) files in the same directory as the masterpage!!!

zondag, september 24, 2006

 

VS2005 - template versus snippets

I'm using codesnippets a lot, also for instant building of our own custom classes (inheritance, bunch of overloads and methods) Now I remembered that it is also possible to create custom templates. For class templates this is a bit more faster because by selecting your custom template (add new item...) you can modify your template so it will fill in the namespace and class name automatically.

Summary:
Class structure - > use templates
properties/methods -> use snippets


Possible parameters (put into your template like this: $myparam$)
itemname
The user-provided name from the dialog. This value is often used for naming classes and files.
safeitemname
The same as itemname but with all unsafe characters removed.
safeitemrootname
The name of the root item, which can be used for multi-item templates. For example, if you have partial classes, or a code-beside or code-behind scenario, you can use this item in the secondary files when you need the safeitemname of the main item being created.
projectname
The user-provided name of the project for a project template.
safeprojectname
The user-provided name of the project for a project template with all unsafe characters removed.
rootnamespace
The root namespace of the project for an item template, which can be used to replace the namespace in a project item source file.
guid[1-10]
A GUID that can be used as a unique identifier for uses such as project GUID in the project file. You can specify up to 10 different GUID parameters using the syntax: guidx, where x is a number between 1 and 10.
time
The current time in the format DD/MM/YYYY HH:MM:SS.
year
The current four-digit year.
username
The Windows username of the logged-in user.
userdomain
The Windows domain of the logged-in user.
machinename
The name of the machine where the template is being used.
clrversion
The version of the common language runtime being used.
registered-organization
The registered organization of the user based on the system settings.
wizarddata
A single string that can be any XML or string data included in the WizardData element in a template metadata file.

how to refs:
http://codebetter.com/blogs/david.hayden/archive/2005/11/06/134343.aspx
http://msdn.microsoft.com/msdnmag/issues/06/01/CodeTemplates/

zaterdag, september 23, 2006

 

Create Elegant Code with Anonymous Methods, Iterators, and Partial Classes

This article discusses:
Iterating over collections
Spanning class definitions across files
Anonymous methods for use with delegates
Other new C# features in Visual Studio 2005

not new, but good article

http://msdn.microsoft.com/msdnmag/issues/04/05/C20/

first thing u run into:

http://ken.friislarsen.net/blog/2005/07/25/implementing-the-generic-ienumerable-interface/


vrijdag, september 22, 2006

 

Ajax, buzz or here to stay... lecture sheets

dinsdag, september 19, 2006

 

Atlas behavior to handle text changes

a 'changed' event to be fired when the text in an input field changes, but only after the user has paused/stopped typing for a certain amount of time.

http://aspadvice.com/blogs/garbin/archive/2006/02/25/15360.aspx
http://aspadvice.com/blogs/garbin/archive/2006/01/23/14786.aspx

zondag, september 10, 2006

 

Base4.net - nblogr

vrijdag, september 08, 2006

 

Intellisense in skinfiles

Missing intellisense in skin files is very annoying, but here a simple trick to fix that problem!

1. Go to Tools->Options menu.
2. Pick Text Editor -> File Extesion fom a tree at the left part of Options dialog.
3. Type skin in Extesion text box.
4. Select User Control Editor from Editor dropdown.
5. Click Add and then Ok to close dialog and re-open your skin files.

http://vladimir.bychkov.info/blog/PermaLink,guid,be76b3bf-c524-456c-9c8f-a2584924aa32.aspx