-
call parent page from user control to invoke page methods
To illustrate how we will accomplish this using Reflections, we will be using repeater in a user control within a page. Your repeater loads data easily within the user control code behind, but you want to utilize the “ItemCommand” event of the repeater to update some values on the page page. Here’s how this can…
-
C# .Net Clone and Copy Objects using Extension Methods
One of my earliest blog articles – Clone Objects in .Net Using Reflections – briefly discusses shallow and deep object copying and cloning. For more info. on the semantics and what these terms really mean, see referenced wikipedia article. You may or may not already be familiar with cloning native objects in .Net, such as…
-
C# Create a Windows Installer Class Custom Action bootstrap DLL in .Net
The standard windows installer project included with Visual Studio right out of the box is great in many deployment scenarios. For more advanced needs, organizations and developers usually defer to 3rd party solutions, such as InstallShield, Wise, wix or NSIS (NullSoft). These solutions are all very well tested and have minimal learning curve in a…
