Wednesday, June 18, 2008

Long time no written.... I know - have lot of work on my head, on daily work, on allrise.com, on other things that on my mind - but I love it, I love to be busy, the disadvantage of it is the fact that the when you're busy the time runs too fast (mmm.. maybe I'll post a claim about it on allrise.com site).

I bumped into a great post (sent to me by my allrise.com co-founder - Erez Eden) which outlines some great tools to help you develop fatser web pages (I sure of it that you already know some of them, if not - you may take a look and discover it).

You can find it here.

Promise to post some more, I have great materials to share with you.. on the meanwhile bye bye!

Posted by: Eran Nachum (c)
Post Date: 6/18/2008 12:47:23 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [2] | Trackback   #
 Wednesday, May 07, 2008

I faced a 'problem' while needed to add a postback event to the server while generating client code from the server on runtime.

You could think about a way of creating server control in the code behind and attaching it an event to its OnClick (or other event), but this one is good enough only to server controls that knows to do postback.

What will you do if you'll want to add postback event to a generic client control such as html-table-cell of other client controls that doesn't need to contact the server beside the postback event?

The GetPostBackEventReference method of the Page object's ClientScript property supports this action and let you perform this action. By MSDN property summary, this one "Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified control that handles the postback and a string argument of additional event information".

// ...

TableCell tc = new TableCell();
// Add some attributes or styling...
tc.Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(this, <argument>));

// Do you stuff (add the cell to the table) etc.

Posted by: Eran Nachum (c)
Post Date: 5/7/2008 3:40:56 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #
 Wednesday, April 30, 2008

Caught Microsoft with the pants down ;)

and thanks to Rael Kahn that draw my attention!

Posted by: Eran Nachum (c)
Post Date: 4/30/2008 12:37:46 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #
 Tuesday, April 29, 2008

Are you a SVN users? I am one of them...

I will not outline here the great benefits of SVN, this related to other topic (if you don't know it yet, you must check it out here - {it's a source control software}), but I want to introduce you the plugin for the Visual Studio IDE.

The software allows you to perform the most common version control operations directly from inside the Microsoft Visual Studio IDE.

You can find it here.

BTW, AnkhSVN (the creator) is an active open source project with multiple committers from around the world, you can also get be involved of one or be a part of them (details on their site).

Enjoy...

Posted by: Eran Nachum (c)
Post Date: 4/29/2008 9:36:47 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #

I want to recommend you about a great article that was written by a friend of mine - Boaz Davidoff, about duplex web services.

He found a great way for multiple clients to communicate through web services that push events/messages to the client.

I will not get down on details here (this you can read on the article), but this is a great example of server-side multi-threading techniques.

I read some related stuff about this issue on the web and found that Microsoft covered this solution under the WCF environment, but my POC has proven that Boaz's solution is much more easier to understand (if you don't have the minimal knowledge on WCF) and to implement or customize to your own requirements.

So if you have a client application that requires real time information to be pushed from the server, or from other clients, this might be the ticket. 

The article is on the codeproject.com site here.

Posted by: Eran Nachum (c)
Post Date: 4/29/2008 9:23:55 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [0] | Trackback   #