Posts

Showing posts from October, 2009

WCF: This collection already contains an address with http scheme.

Ran into this problem earlier. The solution can be located here http://social.msdn.microsoft.com/forums/en-US/wcf/thread/12003fe3-917b-47fa-b768-a7914a374e66/ and http://geekswithblogs.net/robz/archive/2007/10/02/WCF-in-IIS-with-Websites-that-have-Multiple-Identities.aspx o

User control event/viewstate missing during postback

User control event/viewstate missing during postback Question : Some of your web control's events goes missing or cannot be caught when you load it in a user control? Answer: Always use the Control.UniqueID generated for you by ASP.Net when assigning it to a NAME property of your control. The complete Control.UniqueId is available when you assess this in OnPreRender stage. Check your Control.UniqueID which is render into the NAME property of your control on a HTML page. ASP.Net keeps track of the control using Control . UniqueID which makes events / viewstate works. If you override your UniqueID (for javascript manipulation) you might get this problem. Why does it work on your Page but not in user control? On a page, when your control is renders, it probably use name like “MyControl” but in user control this is automatically change to “ctl$_MyControl”. ASP.Net is no longer able to resolve your control id if you override your Control.ID. For example, I created a

ASP.Net and JQuery

Anyone looking to get JQuery working on ASP.net can try this link : http://blog.dreamlabsolutions.com/post/2009/02/24/jQuery-document-ready-and-ASP-NET-Ajax-asynchronous-postback.aspx It describes everything you need to know to get it working together.