Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# netnut 11/15/2006 7:41 PM
Is it possible to have a control from the User module (register.ascx) load a control from another custom module?

What I would like to do is have a user fill out a form immediately AFTER they register. This form should appear on the same "page" and at the same time as the "Thanks for registering" message.

I have tried calling the LoadControl() method from the code behind of register.ascx but nothing happens. If I add a panel to register.ascx and try programmatically adding the control, I get an "object not set to the instance of an object" error.

I am sure this must be possible but cant get my head around the requirements. Any tips would be greatly appreciated.

BTW, I am using Cuyahoga 1 - the production release.
# martijnb 11/17/2006 8:18 AM
There are multiple solutions.

The first is to add your own custom control to the module and make it possible for the module controller (ProfileModule.cs) to load your control based on a new pathinfo parameter (besides ViewProfile, EditProfile, Register and ResetPassword).

Another option is to add an outbound connection to the ProfileModule that can be linked to your own custom module that has to accept the same action as inbound connection. When this is done, you can link the section that contains the ProfileModule to the section that contains your custom module. Check the UserModule-ProfileModule or the SearchInputModule -> SearchModule for an example.