Page_LoadComplete not calling from User Control

Posted: Wednesday, January 18, 2012 in asp.net

If you add Page_LoadComplete method to a user control it’s not getting called like Page_load or Page_init. For this what you can do is call the main page’s Page_LoadComplete event from user control. Add an event handler for LoadComplete event in the user control’s page init

protected void Page_Init(object sender, EventArgs e)
{
this.Page.LoadComplete += new EventHandler(Page_LoadComplete)
}

ModalPopupExtender, User Control And Button PostBack

Posted: Wednesday, January 11, 2012 in asp.net

I spent some time today to figure out why, a button on a page didn’t not postback after clicking on it.

The scenario is like this,

I have a user control and it’s been calling from the ModalPopupExtender based on some logic, but not always. And I have another button for some other function in the page. But this button didn’t cause postback even the ModalPopupExtender was in hide mode. Later on I figured out the reason.

The reason was the use control which was calling from ModalPopupExtender had some validation controls. so even the ModalPopupExtender was in hide mode still it was causing the validations. So I set CausesValidation=”false” on my button and then the postback started working.

New job and MVP for 8th consecutive time

Posted: Sunday, January 1, 2012 in asp.net, MVP, Personal

First if all happy new year to all.. 2011 was an eventful  year. Got married and moved to Dubai .last December I moved to a new job. after working as a lead.Net developer for veripark for almost 1year then I joined with dominateRFID as a Software Development Manager. Looking forward to the challenge and fun with this new opportunity.

Just few minutes ago I received the mail from Microsoft, stating that I have been awarded as Microsoft MVP for ASP.NET/IIS. Well since I moved to UAE, there wasn’t any major activities I could do offline as I was doing with Sri lanka .NET User Group, but I started on developing a community portal with Microsoft gulf. Still this is under development. Any way looking forward for more active and exciting year.

In my web project for all the pagers I was inheriting from base page. Then I realize that in VS it gives and error in HTML design mode saying  “Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.”

The issue was that I was using session object in the OnInit method in my base class.so then I move my code to OnLoad mothod and then in VS the rendering error disappeared.

BTW in first scenario also when I run the code it worked well.

Why Employees Leave Organizations

Posted: Thursday, December 15, 2011 in Personal

A nice blog post .. worth reading

http://masterdno.wordpress.com/2011/08/12/why-employees-leave-organizations-by-azim-premji-ceo-%e2%80%93-wipro/

smtp4dev

Posted: Tuesday, December 6, 2011 in .NET, Microsoft

I’m sure that most of the devs out there have faced this issue. Have you ever wanted to test SMTP mail sending logic on dev machine and wanted to use a SMTP server?
smtp4dev will give you a dummy SMTP server in order to test your mail sending logic. This will listen on port 25 on your dev machine. This is really nice utility to have.

You can download this on codeplex :- http://smtp4dev.codeplex.com/

windows 8 developer preview

Posted: Thursday, September 15, 2011 in Microsoft

I just installed windows 8 developer preview. Well what can I say?  I think this will be the best Microsoft OS to date. Really fast and superb user experience. and IE 10 seems to be cool.

so now its time to get hands on VS 11 develope preview and build apps for windows …. http://www.buildwindows.com/

If you went to install win 8 developer preview Scott Hanselman has a nice blog post on how to do it safely:-
http://www.hanselman.com/blog/GuideToInstallingAndBootingWindows8DeveloperPreviewOffAVHDVirtualHardDisk.aspx

 

 

Apple and Google in the buzz ..is Microsoft sleeping? ..Well, I think after reading some of the things around the web something cool going to come out soon. I think it will be something to do with Facebook, Twitter and may be with G+ but definitely not another social site.. But who knows. Will it be a competitor to these or an ally?
 What is this hype about Tulalip ? is it true ? well time will tell

While glancing through the sessions on 2011 Microsoft Worldwide Partner Conference, I saw there is a session called The Future of Middleware and the BizTalk Roadmap. It was talking about how the public and private cloud going to come into the picture and the role of next versions of AppFabric.
Here is a like to the video and the session presentation:-
http://digitalwpc.com/Videos/AllVideos/Permalink/e821e9f8-e379-45b0-8879-12fe271c86be#fbid=kabifNmTBRl

Dealing with Biztalk

Posted: Tuesday, May 10, 2011 in BizTalk, Microsoft

Well these days I’m into some BizTalk projects. Getting used to it after working years with ASP.NET and Web related stuff. Well BizTalk also in most occasions has to deal with TCP or TCP/IP, but it kind of interesting that you have to learn lots of concepts to what you know already. on top of it, if you need to learn BizTalk ESB toolkit things getting more interesting… sometimes you feel lost with all of the new vocabulary and concepts… any way if any of you like to get an idea of biztalk and trying start on it, yes you can got to BizTalk site and start on self-learning but I recommend first to get an understanding with connected system concepts ,  ESB  (enterprise service bus) architecture and Integration patterns. here is a good site called Enterprise Integration patterns that you can start with.

http://www.enterpriseintegrationpatterns.com/