473,396 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re: Post to another page (MasterPage, In JavaScript)

bruce barker wrote:
Webforms don't really support this model.
It doesn't have to, as html does. The OP is using a regular htlm form,
not a ASP.NET server control form.

--
Göran Andersson
_____
http://www.guffa.com
Jun 28 '08 #1
3 1919
Cat
On Jun 29, 8:00*am, Göran Andersson <gu...@guffa.comwrote:
bruce barker wrote:
Webforms don't really support this model.

It doesn't have to, as html does. The OP is using a regular htlm form,
not a ASP.NET server control form.

--
Göran Andersson
_____http://www.guffa.com
This is a big problem then. The containtarea should be surrounded by a
form (or an exception is thrown), and forms cannot be nested. For
example, if I want to insert a PayPal button which uses a form posted
to the PayPal server, PayPay said that all In eed to do is to copy and
paste the code, but pasting that into a contentarea doesn't work
because two forms get nested. ASP.NET's form is always confusing and
make things complicated...

As a workaround I inserted an iframe, which is a simple .html file,
into the contentarea, then pasted the PayPal code into the .html file,
set target="_top" for the form. It worked anyway.
Jul 18 '08 #2
Cat wrote:
On Jun 29, 8:00 am, Göran Andersson <gu...@guffa.comwrote:
>bruce barker wrote:
>>Webforms don't really support this model.
It doesn't have to, as html does. The OP is using a regular htlm form,
not a ASP.NET server control form.

--
Göran Andersson
_____http://www.guffa.com

This is a big problem then. The containtarea should be surrounded by a
form (or an exception is thrown),
Which exception? I'm pretty sure that a content area doesn't have to be
inside a server form...
and forms cannot be nested. For
example, if I want to insert a PayPal button which uses a form posted
to the PayPal server, PayPay said that all In eed to do is to copy and
paste the code, but pasting that into a contentarea doesn't work
because two forms get nested. ASP.NET's form is always confusing and
make things complicated...

As a workaround I inserted an iframe, which is a simple .html file,
into the contentarea, then pasted the PayPal code into the .html file,
set target="_top" for the form. It worked anyway.
--
Göran Andersson
_____
http://www.guffa.com
Jul 20 '08 #3
Cat
On Jul 21, 3:52*am, Göran Andersson <gu...@guffa.comwrote:
Cat wrote:
On Jun 29, 8:00 am, Göran Andersson <gu...@guffa.comwrote:
bruce barker wrote:
Webforms don't really support this model.
It doesn't have to, as html does. The OP is using a regular htlm form,
not a ASP.NET server control form.
--
Göran Andersson
_____http://www.guffa.com
This is a big problem then. The containtarea should be surrounded by a
form (or an exception is thrown),

Which exception? I'm pretty sure that a content area doesn't have to be
inside a server form...
and forms cannot be nested. For
example, if I want to insert a PayPal button which uses a form posted
to the PayPal server, PayPay said that all In eed to do is to copy and
paste the code, but pasting that into a contentarea doesn't work
because two forms get nested. ASP.NET's form is always confusing and
make things complicated...
As a workaround I inserted an iframe, which is a simple .html file,
into the contentarea, then pasted the PayPal code into the .html file,
set target="_top" for the form. It worked anyway.

--
Göran Andersson
_____http://www.guffa.com
Ah. I was confused. I tested again and found that it was because the
content page contained ASP.NET controls. When I created master/content
pages within a WYSIWYG tool, it added a server form at the master
page, and none for the content pages.
Thank you for pointing out.
Jul 20 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
5
by: Federico | last post by:
I have a problem, I have an event declared in a Master Page, and I want to use in a Content Page holder of a Content Page. When I want to create the method to handle the event, I can njot reference...
4
by: Mori | last post by:
I am using masterPage and I need to populate a textbox that is in a content control with data from popup page that is not part of the master page. This code works if no masterpage is involved. ...
1
by: rockdale | last post by:
Hi, I have a page which use a masterpage. And I put a javascript in this page like below: <%@ Page Language="C#" MasterPageFile="~/SITE.master" CodeFile="TEST.aspx.cs" Inherits="TEST_aspx"...
1
by: Larry Rebich | last post by:
I'm using some Java Script I found that supports a 'back' button on my ASP.Net page. The Asp.Net page uses a Master page. I thought I'd put the Java Script in a Java Script file . The thought was...
0
by: e_spork | last post by:
I am using Page.ClientScript.RegisterStartupScript to throw up a Javascript alert box. When I click OK on the alert box, all the controls on my page disappear and I don't understand why. I can...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
5
by: =?Utf-8?B?TWF0Y29u?= | last post by:
Hello, I have a asp.net 2.0 (vb.net) page, which uses a master page, and there is a javascript function (myfunction) defined in the <headof that master page. Is there a way to run the function...
10
by: goscottie | last post by:
Hi, Simply put, I have a control in MasterPage and another in content. When the control in content fires off post back, MasterPage also runs and returns post back. I want to control these where...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.