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   #