Email list management

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/3/2013 7:31:42 AM
Gravatar
Total Posts 13

Email list management

Hi.

I want to use third-party service to manage my email list of subscribers. So I have to use a specific "action" attribute and some specific <input> tags. But I nave no suggestion where should I put them? 

10/3/2013 12:21:43 PM
Gravatar
Total Posts 18439

Re: Email list management

Hi,

To do a form post to another site or a different page than the current one you would have to make a custom feature using the same technique explained in the PayPal Buy Now Button article for the same reasons discussed there. Use an <asp:Button and set the postbackurl property to the url you want to post to. You cannot do it just using the Html Content Feature.

Hope that helps,

Joe

10/4/2013 1:03:25 PM
Gravatar
Total Posts 13

Re: Email list management

This article describes how to make a custom feature using VS and source code. But I use the pre-compiled deployment package of mojoportal. How can I make a custom feature in that case?

10/4/2013 1:18:40 PM
Gravatar
Total Posts 18439

Re: Email list management

Please read the article fully and carefully. The article does not require Visual Studio, the example code in the article can be put in a text file and saved with .ascx extension (as it says in the article). A Text editor like Notepad can be used, the example uses inline code so there is nothing that needs to be compiled in VS.

It does require some knowledge of ASP.NET development to make even a simple custom feature. If you make mistakes you will need to look in the mojoportal log for logged errors to figure out the problem, whereas using VS one can debug problems more easily.

10/4/2013 3:06:01 PM
Gravatar
Total Posts 13

Re: Email list management

I've understood at last  :). But in the article there is only an installing for the source code. To install a custom feature for the pre-compiled deployment package you should copy your .ascx file into /Modules folder.

10/4/2013 3:26:29 PM
Gravatar
Total Posts 18439

Re: Email list management

The article links to the Hello World article for more information, you need to read and understand that one too.

 

10/5/2013 3:55:32 PM
Gravatar
Total Posts 13

Re: Email list management

I'm still solving my problem :).

So I have the following code of a subscribe form:

<form action="http://xxxxx.ru/subscribe/process/?rid[0]=Site_News&doneurl=http%3A%2F%2Fmysite.com%2FDefault.aspx" method="post" target="_blank" id="subscr-form-3570" onsubmit="return jc_chkscrfrm(this, false, false, false, false)" >

<style type="text/css">

</style>

<table align="center" border="0" cellspacing="0" cellpadding="3"><tbody>
        <tr>
            <td><input name="lead_name" type="text" onblur='if(this.value=="") this.value="Input your name"'  onfocus='if(this.value==" Input your name") this.value=""' value="Input your name"/></td>
        </tr>
        <tr>
            <td><input name="lead_email" type="text" onblur='if(this.value=="") this.value="Input your e-mail"'  onfocus='if(this.value=="Input your e-mail") this.value=""' value=" Input your e-mail"/></td>
        </tr>
        <tr>
            <td><input name="lead_subscribe" type="submit" value="Subscribe!" /></td>
        </tr></tbody>
    </table>
<script language="JavaScript" src="http://madeinexcel.justclick.ru/media/subscribe/helper2.js.php?r=first"></script>
<script language="JavaScript">jc_setfrmfld()</script>

</form>

I understand I need to transform it into a ModuleControl, It should include 2 <asp:TextBox> and 1 <asp:Button>.

I should specify the PostbackUrl property of the button. Should it be the value of the action attribute of the form above? And what about other attributes of the form and the button click event?

You must sign in to post in the forums. This thread is closed to new posts.