|
Home > Archive > Microsoft Content Management Server > November 2004 > Form Submission
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| John Duff 2004-10-31, 7:46 am |
| Hi we've just recently migrated our site over to MCMS 2002. I'm
currently experiencing a problem with our search form. we currently
have a search text field box at the top of every page, which at the
moment can only be activated by clicking on the "search now" link.
However most of users would activate the search by pressing enter
after filling in their search criteria, this longer works. What i get
instead is an ugly url pointing to /NR/exe/with a long GUID of the
current posting that i'm in.
I have an onSubmit command in the form tag around the search box.
This points to a search function which does the page submit. I've
been told that in you can't wrap a form within a form..
I've messed about with the page_load event in the code behind to tell
it to submit the search text field...to no avail..
Can anyone give me some suggestions as this is driving me up the
wall!!!!
Thanks in advance
John.
| |
| Angus Logan [MVP] 2004-10-31, 7:46 am |
| Hi John,
When ASPX templates postback the target is the template file.
Stefan has written a HttpModule that turns "ugly url's" into nice URL's.
Description: "When postbacks happen by switching from edit mode to live mode
or being caused by ASP.NET controls the URL in a browser will become an ugly
string. This HttpModule solves this. Details see here:
http://weblogs.asp.net/stefan_gossn.../23/118623.aspx Last
updated based on the infos here:
http://blogs.msdn.com/stefan_gossne.../29/122527.aspx Last
update on: August 27th - now allows duplicate posting names, multiple form
tags and also handles auth cookie expiration with forms login correct. In
addition a buffer overrun error was corrected. "
Download it at
http://www.gotdotnet.com/Community/...9F-BB688C39E6E2
Regards
--
________________________________________
Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"John Duff" <johnduffy75@yahoo.ie> wrote in message
news:efd5552f.0410310422.4de42f78@posting.google.com...
> Hi we've just recently migrated our site over to MCMS 2002. I'm
> currently experiencing a problem with our search form. we currently
> have a search text field box at the top of every page, which at the
> moment can only be activated by clicking on the "search now" link.
> However most of users would activate the search by pressing enter
> after filling in their search criteria, this longer works. What i get
> instead is an ugly url pointing to /NR/exe/with a long GUID of the
> current posting that i'm in.
>
> I have an onSubmit command in the form tag around the search box.
> This points to a search function which does the page submit. I've
> been told that in you can't wrap a form within a form..
>
> I've messed about with the page_load event in the code behind to tell
> it to submit the search text field...to no avail..
>
> Can anyone give me some suggestions as this is driving me up the
> wall!!!!
> Thanks in advance
> John.
| |
| John Duff 2004-11-01, 8:46 pm |
| Thanks for that Angus.
Cheers
JOhn.
| |
| John Duff 2004-11-01, 8:46 pm |
| Hi Angus, just implemented Stephans code, but its not solving the
problem i'm experiencing (Maybe Stephan you migt have an idea if u
read this posting). I no longer see the ugly URL but the form isn't
submitting to the correct action i.e. carrying out the search...
As explained in previous posting, users can activate the search by
clicking the javascript link "Search", however when they just enter
their search criteria in the text box and press enter, the form
submits on itself...
I have an OnSumit on the form, however this form is encapsulated by
the default form used for MCMS purposes....therefore it probably voids
my form...
Is there anyway around this????
Thanks in advance for any help...
John.
"Angus Logan [MVP]" <angus_logan@data3.com.au> wrote in message news:<#ZOhYZ0vEHA.2540@TK2MSFTNGP09.phx.gbl>...[vbcol=seagreen]
> Hi John,
>
> When ASPX templates postback the target is the template file.
>
> Stefan has written a HttpModule that turns "ugly url's" into nice URL's.
>
> Description: "When postbacks happen by switching from edit mode to live mode
> or being caused by ASP.NET controls the URL in a browser will become an ugly
> string. This HttpModule solves this. Details see here:
> http://weblogs.asp.net/stefan_gossn.../23/118623.aspx Last
> updated based on the infos here:
> http://blogs.msdn.com/stefan_gossne.../29/122527.aspx Last
> update on: August 27th - now allows duplicate posting names, multiple form
> tags and also handles auth cookie expiration with forms login correct. In
> addition a buffer overrun error was corrected. "
>
> Download it at
> http://www.gotdotnet.com/Community/...9F-BB688C39E6E2
>
> Regards
> --
> ________________________________________
>
> Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
> Product Specialist
> Microsoft Application Solutions
> Data#3 Limited
> E angus_logan@data3.com.au
> BLOG www.anguslogan.com
> ________________________________________
> "John Duff" <johnduffy75@yahoo.ie> wrote in message
> news:efd5552f.0410310422.4de42f78@posting.google.com...
| |
| Stefan [MSFT] 2004-11-01, 8:46 pm |
| Hi John,
you need to ensure that the form of ASP.NET does not get rendered.
My stager allows to send a specific http header.
Test for this and add a
<% if ...{ %>
<% } %>
block around the form tags of ASP..NET.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"John Duff" <johnduffy75@yahoo.ie> wrote in message
news:efd5552f.0411011022.27381716@posting.google.com...
> Hi Angus, just implemented Stephans code, but its not solving the
> problem i'm experiencing (Maybe Stephan you migt have an idea if u
> read this posting). I no longer see the ugly URL but the form isn't
> submitting to the correct action i.e. carrying out the search...
>
> As explained in previous posting, users can activate the search by
> clicking the javascript link "Search", however when they just enter
> their search criteria in the text box and press enter, the form
> submits on itself...
>
>
> I have an OnSumit on the form, however this form is encapsulated by
> the default form used for MCMS purposes....therefore it probably voids
> my form...
>
> Is there anyway around this????
>
> Thanks in advance for any help...
>
> John.
>
>
>
>
>
> "Angus Logan [MVP]" <angus_logan@data3.com.au> wrote in message
news:<#ZOhYZ0vEHA.2540@TK2MSFTNGP09.phx.gbl>...[vbcol=seagreen]
mode[vbcol=seagreen]
ugly[vbcol=seagreen]
Last[vbcol=seagreen]
form[vbcol=seagreen]
In[vbcol=seagreen]
http://www.gotdotnet.com/Community/...9F-BB688C39E6E2[vbcol=seagreen]
| |
| John Duff 2004-11-02, 5:50 pm |
| Sorry Stefan i'm not following you, can you expand a bit. Do you mean
the form i use to submit the search or the inbuilt form that MCMS
attaches to the template page to operate. If its the former, what
criteria am i testing for in the if else statement??.
I just want to be able to submit the search form and not the MCMS
form....
Thanks
John.
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message news:<uzo508FwEHA.1204@TK2MSFTNGP10.phx.gbl>...[vbcol=seagreen]
> Hi John,
>
> you need to ensure that the form of ASP.NET does not get rendered.
> My stager allows to send a specific http header.
> Test for this and add a
>
> <% if ...{ %>
> <% } %>
>
> block around the form tags of ASP..NET.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> MCMS FAQ:
> http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
> http://www.gotdotnet.com/community/...t+S
erver
> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "John Duff" <johnduffy75@yahoo.ie> wrote in message
> news:efd5552f.0411011022.27381716@posting.google.com...
> news:<#ZOhYZ0vEHA.2540@TK2MSFTNGP09.phx.gbl>...
> mode
> ugly
> Last
> form
> In
> http://www.gotdotnet.com/Community/...9F-BB688C39E6E2
| |
|
|
|
|
|
|
|