Developer forum

Forum » Development » Event Subscription Custom Module

Event Subscription Custom Module

Kevin Krämer
Reply

Hi

Im currently working on a Event Subscription module, but i have encountered some problems and after trying for hours and searching the forum i haven't got it to work properly.

1. Problem

In the _edit.aspx i want to have something similar to the NewsletterV3 module, where i can see all the Newsletters and decide wich Newsletter i can subscribe to via the module (In my case, wich Events should be available in the form.)

Im kinda at a loss how to design the _edit.aspx and the _edit.aspx.cs file

 

2. Problem

Since i couldn't find out how to solve problem 1, i moved along with getting the Form to work. Right now im loading all created Events (that needs to change as soon as i know how to solve problem 1, so it dynamiclly chooses wich events to show based on my selection). The problem right now is i have no clue how to handle the checked Events as soon as i hit submit, since it potentially could be 1 or 5 events.

 

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Kevin

To do the _Edit.aspx file, see this article:

http://devierkoeden.com/articles/custom-modules-part-2-7-steps-to-building-a-custom-module-background.aspx

And all the other great articles here:

http://devierkoeden.com/articles.aspx

Your 2nd problem, check this article:

http://devierkoeden.com/articles/custom-modules-part-7-dealing-with-user-input.aspx

 
Kevin Krämer
Reply

Hi Nicolai

Thanks for the reply.

I have actually used the sites you linked to, but i struggle to figure out how to dynamicly see if a check box has been checked. Since the guide concentrates about one dropbox. I need somehow a loop to check if 1 or severel checkboxes have been checked (Since i in theory could have an unlimited number of checkboxes.)

For the _edit.aspx page, i know how to do 1 checkbox at a time, but again i need somekind of loop to get all the events in the DB and then according to that number create the checkboxes.

 

 

You must be logged in to post in the forum