Sunday, May 11, 2008

Congratulations to us!!!

I am (very) excited - I admit it; AllRise.com has been selected as one of the 10 finalist projects to be presented in Startup 2.0 in Barcelona.

As AllRise.com co-founder and CTO, this event and accomplishment is one of a kind, we actually did it after hard work which just started again...

Some information about the competition:

StartUp2.0 is a competition of European web 2.0 sites whose objectives are to promote and reward the European startups (either created or willing to do so in the future) that work in the field of 2.0 technologies.

The number of projects (brands) that were participated in the first election was 174, and only 10 of them (were selected by the jury and bloggers) (which include us) are going to present in the competition itself.

The competition will be set at on May, 21th, wish us good luck!

The official startup 2.0 site is here.

Posted by: Eran Nachum (c)
Post Date: 5/11/2008 3:15:46 PM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | | 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 | | Trackback   #