Problem with tag... Options
Jasko
Posted: Wednesday, February 20, 2008 10:10:27 AM
Rank: Devotee

Joined: 12/11/2006
Posts: 47
Hi people,

I am having a bit of a problem on a site I'm currently building.

I have two forms on the page. One where people can subscribe to a newsletter and one where people can submit comments for a blog post.

My problem is that the only form that is working, where both of these options are, is the comment form.

When I try to subscribe to the newsletter from the page, nothing happens. But if I try to subscribe to the newsletter from my frontpage there is no problem.

Has anyone experienced this kind of problem before? And most importantly: How can it be solved?

/Jan
Jasko
Posted: Wednesday, February 20, 2008 10:11:54 AM
Rank: Devotee

Joined: 12/11/2006
Posts: 47
Whoops...I forgot to mention that I have the newsletter form in the master template and det blog comment form in a textpage. Don't know if this is any kind of help? :)

/Jan
Skiltz
Posted: Wednesday, February 20, 2008 10:51:19 AM

Rank: Devotee

Joined: 12/6/2007
Posts: 61
My guess would be you need to use different "validation groups" on your submit buttons and then change the textboxes, validators appropriately.

New Zealand Umbracoee
Jasko
Posted: Wednesday, February 20, 2008 11:08:28 AM
Rank: Devotee

Joined: 12/11/2006
Posts: 47
Hi Matthew,

I'm not quite sure that I understand what you're suggesting? :)

When I view the source on the page that contains both forms, the following is being rendered for the comment form

Code:

<div id="kommentarForm">
<form method="post" action="/blog/blogindlaeg-1.aspx" id="ctl09">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTkzNjk4NjQ4D2QWAgIBD2QWAmYPZBYCAgEPZBYCAgEPZBYCAgEPZBYCAgIPZBYCAgEPFgIeBFRleHQFFlRhayBmb3IgZGluIGtvbW1lbnRhci5kZESMelC3WYkP/F0OPCiBpSHki2/5" />
</div>

<script type="text/javascript">
<!--
var theForm = document.forms['ctl09'];
if (!theForm) {
    theForm = document.ctl09;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->

</script>


<script src="/WebResource.axd?d=OO-pMY_8FUYYSd0Xbt8feA2&amp;t=633198061452695000" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1YyRxGviUkQQmzuMnuE3UcI41&amp;t=633159491002343750" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1Y8lPGWYX5k6mw1pYWZoFlhN8nRcjfPDzAiW_9IDncPgR0&amp;t=633159491002343750" type="text/javascript"></script><script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('umbracoScriptManager', document.getElementById('ctl09'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90);
//]]>
</script>

<div id="AutoForm_10_PanelInput">
    
    <div id="umbracoAutoForm">
    
  <fieldset>

            <p><label for="AutoForm_10_propertyName">Navn:</label><input name="AutoForm_10$propertyName" type="text" id="AutoForm_10_propertyName" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyEmail">E-mail:</label><input name="AutoForm_10$propertyEmail" type="text" id="AutoForm_10_propertyEmail" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyKommentar">Kommentar:</label><textarea name="AutoForm_10$propertyKommentar" rows="10" cols="40" id="AutoForm_10_propertyKommentar" class="umbEditorTextFieldMultiple"></textarea></p><p><label for="AutoForm_10_propertyCaptcha">Skriv talrækken i nedenstående felt:</label><span id="AutoForm_10_propertyCaptcha"></span><div class="umbCaptchaHolder"><img src="/umbraco/plugins/helloPelican/captcha/image.aspx" class="umbCaptcha"/>
    <input class="umbCaptchaField" type="text" id="AutoForm_10_propertyCaptcha" name="AutoForm_10_propertyCaptcha" value=""/></div>
    </p>
        <p><input type="submit" name="AutoForm_10$Button1" value="Send kommentar" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;AutoForm_10$Button1&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="AutoForm_10_Button1" class="umbracoAutoFormButton" /></p>
    </fieldset>        
    </div>

</div>


And only this is shown for the newsletter subscription

Code:

<?ASPNET_FORM>
        <div id="newsletterSubscription"><fieldset><p><strong>Tilmeld nyhedsbrev</strong></p><input type="hidden" name="umbSubscribeMemberAction" value="subscribe" /><ol><li><label for="umbSubscribeName">Navn:</label><input id="navn" type="text" name="umbSubscribeName" value="" /></li><li><label for="umbSubscribeEmail">E-mail:</label><input id="e-mail" type="text" name="umbSubscribeEmail" value="" /></li><li><input type="submit" value="Tilmeld" id="tilmeld" /></li></ol></fieldset></div>

</?ASPNET_FORM>


I am wondering why the <?ASPNET_FORM> tag is written in the source, instead of rendering the form?

Is it at all possible to have them both rendered???

/Jan
Jasko
Posted: Wednesday, February 20, 2008 11:08:36 AM
Rank: Devotee

Joined: 12/11/2006
Posts: 47
Hi Matthew,

I'm not quite sure that I understand what you're suggesting? :)

When I view the source on the page that contains both forms, the following is being rendered for the comment form

Code:

<div id="kommentarForm">
<form method="post" action="/blog/blogindlaeg-1.aspx" id="ctl09">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTkzNjk4NjQ4D2QWAgIBD2QWAmYPZBYCAgEPZBYCAgEPZBYCAgEPZBYCAgIPZBYCAgEPFgIeBFRleHQFFlRhayBmb3IgZGluIGtvbW1lbnRhci5kZESMelC3WYkP/F0OPCiBpSHki2/5" />
</div>

<script type="text/javascript">
<!--
var theForm = document.forms['ctl09'];
if (!theForm) {
    theForm = document.ctl09;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->

</script>


<script src="/WebResource.axd?d=OO-pMY_8FUYYSd0Xbt8feA2&amp;t=633198061452695000" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1YyRxGviUkQQmzuMnuE3UcI41&amp;t=633159491002343750" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1Y8lPGWYX5k6mw1pYWZoFlhN8nRcjfPDzAiW_9IDncPgR0&amp;t=633159491002343750" type="text/javascript"></script><script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('umbracoScriptManager', document.getElementById('ctl09'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90);
//]]>
</script>

<div id="AutoForm_10_PanelInput">
    
    <div id="umbracoAutoForm">
    
  <fieldset>

            <p><label for="AutoForm_10_propertyName">Navn:</label><input name="AutoForm_10$propertyName" type="text" id="AutoForm_10_propertyName" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyEmail">E-mail:</label><input name="AutoForm_10$propertyEmail" type="text" id="AutoForm_10_propertyEmail" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyKommentar">Kommentar:</label><textarea name="AutoForm_10$propertyKommentar" rows="10" cols="40" id="AutoForm_10_propertyKommentar" class="umbEditorTextFieldMultiple"></textarea></p><p><label for="AutoForm_10_propertyCaptcha">Skriv talrækken i nedenstående felt:</label><span id="AutoForm_10_propertyCaptcha"></span><div class="umbCaptchaHolder"><img src="/umbraco/plugins/helloPelican/captcha/image.aspx" class="umbCaptcha"/>
    <input class="umbCaptchaField" type="text" id="AutoForm_10_propertyCaptcha" name="AutoForm_10_propertyCaptcha" value=""/></div>
    </p>
        <p><input type="submit" name="AutoForm_10$Button1" value="Send kommentar" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;AutoForm_10$Button1&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="AutoForm_10_Button1" class="umbracoAutoFormButton" /></p>
    </fieldset>        
    </div>

</div>


And only this is shown for the newsletter subscription

Code:

<?ASPNET_FORM>
        <div id="newsletterSubscription"><fieldset><p><strong>Tilmeld nyhedsbrev</strong></p><input type="hidden" name="umbSubscribeMemberAction" value="subscribe" /><ol><li><label for="umbSubscribeName">Navn:</label><input id="navn" type="text" name="umbSubscribeName" value="" /></li><li><label for="umbSubscribeEmail">E-mail:</label><input id="e-mail" type="text" name="umbSubscribeEmail" value="" /></li><li><input type="submit" value="Tilmeld" id="tilmeld" /></li></ol></fieldset></div>

</?ASPNET_FORM>


I am wondering why the <?ASPNET_FORM> tag is written in the source, instead of rendering the form?

Is it at all possible to have them both rendered???

/Jan
Jasko
Posted: Wednesday, February 20, 2008 11:08:45 AM
Rank: Devotee

Joined: 12/11/2006
Posts: 47
Hi Matthew,

I'm not quite sure that I understand what you're suggesting? :)

When I view the source on the page that contains both forms, the following is being rendered for the comment form

Code:

<div id="kommentarForm">
<form method="post" action="/blog/blogindlaeg-1.aspx" id="ctl09">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTkzNjk4NjQ4D2QWAgIBD2QWAmYPZBYCAgEPZBYCAgEPZBYCAgEPZBYCAgIPZBYCAgEPFgIeBFRleHQFFlRhayBmb3IgZGluIGtvbW1lbnRhci5kZESMelC3WYkP/F0OPCiBpSHki2/5" />
</div>

<script type="text/javascript">
<!--
var theForm = document.forms['ctl09'];
if (!theForm) {
    theForm = document.ctl09;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->

</script>


<script src="/WebResource.axd?d=OO-pMY_8FUYYSd0Xbt8feA2&amp;t=633198061452695000" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1YyRxGviUkQQmzuMnuE3UcI41&amp;t=633159491002343750" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1Y8lPGWYX5k6mw1pYWZoFlhN8nRcjfPDzAiW_9IDncPgR0&amp;t=633159491002343750" type="text/javascript"></script><script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('umbracoScriptManager', document.getElementById('ctl09'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90);
//]]>
</script>

<div id="AutoForm_10_PanelInput">
    
    <div id="umbracoAutoForm">
    
  <fieldset>

            <p><label for="AutoForm_10_propertyName">Navn:</label><input name="AutoForm_10$propertyName" type="text" id="AutoForm_10_propertyName" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyEmail">E-mail:</label><input name="AutoForm_10$propertyEmail" type="text" id="AutoForm_10_propertyEmail" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyKommentar">Kommentar:</label><textarea name="AutoForm_10$propertyKommentar" rows="10" cols="40" id="AutoForm_10_propertyKommentar" class="umbEditorTextFieldMultiple"></textarea></p><p><label for="AutoForm_10_propertyCaptcha">Skriv talrækken i nedenstående felt:</label><span id="AutoForm_10_propertyCaptcha"></span><div class="umbCaptchaHolder"><img src="/umbraco/plugins/helloPelican/captcha/image.aspx" class="umbCaptcha"/>
    <input class="umbCaptchaField" type="text" id="AutoForm_10_propertyCaptcha" name="AutoForm_10_propertyCaptcha" value=""/></div>
    </p>
        <p><input type="submit" name="AutoForm_10$Button1" value="Send kommentar" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;AutoForm_10$Button1&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="AutoForm_10_Button1" class="umbracoAutoFormButton" /></p>
    </fieldset>        
    </div>

</div>


And only this is shown for the newsletter subscription

Code:

<?ASPNET_FORM>
        <div id="newsletterSubscription"><fieldset><p><strong>Tilmeld nyhedsbrev</strong></p><input type="hidden" name="umbSubscribeMemberAction" value="subscribe" /><ol><li><label for="umbSubscribeName">Navn:</label><input id="navn" type="text" name="umbSubscribeName" value="" /></li><li><label for="umbSubscribeEmail">E-mail:</label><input id="e-mail" type="text" name="umbSubscribeEmail" value="" /></li><li><input type="submit" value="Tilmeld" id="tilmeld" /></li></ol></fieldset></div>

</?ASPNET_FORM>


I am wondering why the <?ASPNET_FORM> tag is written in the source, instead of rendering the form?

Is it at all possible to have them both rendered???

/Jan
Jasko
Posted: Wednesday, February 20, 2008 11:09:32 AM
Rank: Devotee

Joined: 12/11/2006
Posts: 47
Hi Matthew,

I'm not quite sure that I understand what you're suggesting? :)

When I view the source on the page that contains both forms, the following is being rendered for the comment form

<htmlOutput>
<div id="kommentarForm">
<form method="post" action="/blog/blogindlaeg-1.aspx" id="ctl09">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTkzNjk4NjQ4D2QWAgIBD2QWAmYPZBYCAgEPZBYCAgEPZBYCAgEPZBYCAgIPZBYCAgEPFgIeBFRleHQFFlRhayBmb3IgZGluIGtvbW1lbnRhci5kZESMelC3WYkP/F0OPCiBpSHki2/5" />
</div>

<script type="text/javascript">
<!--
var theForm = document.forms['ctl09'];
if (!theForm) {
theForm = document.ctl09;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->

</script>


<script src="/WebResource.axd?d=OO-pMY_8FUYYSd0Xbt8feA2&amp;t=633198061452695000" type="text/javascript"></script>


<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1YyRxGviUkQQmzuMnuE3UcI41&amp;t=633159491002343750" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=G_UlCK5iBqXEwtv0rXcxzr9W6pqKDcJ57_rya5KR3hXB2q4C_MDdxDeM4gzCA2-uFFjV5tzsuuMrvTNf22m1Y8lPGWYX5k6mw1pYWZoFlhN8nRcjfPDzAiW_9IDncPgR0&amp;t=633159491002343750" type="text/javascript"></script><script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('umbracoScriptManager', document.getElementById('ctl09'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90);
//]]>
</script>

<div id="AutoForm_10_PanelInput">

<div id="umbracoAutoForm">

<fieldset>

<p><label for="AutoForm_10_propertyName">Navn:</label><input name="AutoForm_10$propertyName" type="text" id="AutoForm_10_propertyName" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyEmail">E-mail:</label><input name="AutoForm_10$propertyEmail" type="text" id="AutoForm_10_propertyEmail" class="umbEditorTextField" /></p><p><label for="AutoForm_10_propertyKommentar">Kommentar:</label><textarea name="AutoForm_10$propertyKommentar" rows="10" cols="40" id="AutoForm_10_propertyKommentar" class="umbEditorTextFieldMultiple"></textarea></p><p><label for="AutoForm_10_propertyCaptcha">Skriv talrækken i nedenstående felt:</label><span id="AutoForm_10_propertyCaptcha"></span><div class="umbCaptchaHolder"><img src="/umbraco/plugins/helloPelican/captcha/image.aspx" class="umbCaptcha"/>
<input class="umbCaptchaField" type="text" id="AutoForm_10_propertyCaptcha" name="AutoForm_10_propertyCaptcha" value=""/></div>
</p>
<p><input type="submit" name="AutoForm_10$Button1" value="Send kommentar" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;AutoForm_10$Button1&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="AutoForm_10_Button1" class="umbracoAutoFormButton" /></p>
</fieldset>
</div>

</div>
</htmlOutput>

And only this is shown for the newsletter subscription

<htmlOutput>
<?ASPNET_FORM>
<div id="newsletterSubscription"><fieldset><p><strong>Tilmeld nyhedsbrev</strong></p><input type="hidden" name="umbSubscribeMemberAction" value="subscribe" /><ol><li><label for="umbSubscribeName">Navn:</label><input id="navn" type="text" name="umbSubscribeName" value="" /></li><li><label for="umbSubscribeEmail">E-mail:</label><input id="e-mail" type="text" name="umbSubscribeEmail" value="" /></li><li><input type="submit" value="Tilmeld" id="tilmeld" /></li></ol></fieldset></div>

</?ASPNET_FORM>
</htmlOutput>

I am wondering why the <?ASPNET_FORM> tag is written in the source, instead of rendering the form?

Is it at all possible to have them both rendered???

/Jan
Jasko
Posted: Wednesday, February 20, 2008 11:11:12 AM
Rank: Devotee

Joined: 12/11/2006
Posts: 47
Hi Matthew,

I'm not quite sure that I understand what you're suggesting? :)

When I view the source on the page that contains both forms, the comment form is being rendered properly. But the newsletter subscription is rendered with the <?ASPNET_FORM> with the HTML output inside it.

Is it at all possible to have them both rendered???

/Jan
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.