MSDN screencast – exploring hot topic,in 10-15 minutes

1 בדצמבר 2008

For those of you that are not familiar with screencast,  "Don't have the time to read a 10-page how-to article or watch a full length webcast? Try an MSDN screencast, a webcast that takes you step-by-step to discovering new functionality or exploring a hot developer topic, all in 10-15 minutes. View them online now or download for later reference."  Have fun
תגיות: ,
אין תגובות

Problem when using AddWebPart

27 במאי 2008

It seems that there is no way to dynamically add webpart in post request. Writing something like that no going to do the job WebPart myWebPart = WebPartManager1.CreateWebPart(userControl); WebPartManager1.AddWebPart(myWebPart, WebPartZone1, 0); (on the next request you are not going to see the added webPart) Why? In brief - it related to view state of the new control and page lifecycle How to solve it? There is a need to call SetPersonalizationDirty(); after adding the new webpart. One problem SetPersonalizationDirty() is not a public method in webPartManager class (protected.) So, how to solve it? 1. Create your own WebPartManager by inherit MS WebPartManager 2. Add new method as public that calls SetPersonalizationDirty public...
תגיות: , ,
אין תגובות

Using ReSharper with Visual Studio 2005 & 2008 on the same machine

21 בדצמבר 2007

Lately I'm working with VS 2008 & VS 2005 on the same machine - no issues until now ... :) After installing VS2008, ReSharper 3.0 didn't seem to be working - why? - because there are 2 version of ReSharper 3.0 one for 2005 and one for 2008 - there is a need to install both of them. after find out that it work also with 2008. BTW - The 3.0 version doen't have support for c# 3.0 features. Cheers,Ran  
אין תגובות

How to register to partial-page rendering AJAX events.

20 בדצמבר 2007

While using AJAX.Net and specifically while using PageRequestManager there are several events that we can use. beginRequest - event the raised before any server request. endRequest - event that raised after the sever request end. pageLoaded - event after all page content is refreshed pageLoading - raised after endRequest but before pageLoaded.  When we can use it? Anytime when you want to do JS code before/after AJAX call -    Example:  For example if you like to show loading icon while calling server request and hide it when done. we just need to register to add_beginRequest and add_endRequest events and do the needed JS code there.   The Icon that will be present...
תגיות: , , ,
אין תגובות