473,406 Members | 2,620 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,406 software developers and data experts.

How to display FORM in DIV?

I have a small FORM with an updatepanel control (ajax) that needs to
display in a DIV. There are two DIVs side by side in this page
(parent). A link is clicked in the left DIV, it loads an aspx page
(child) into the right DIV. That works fine if no FORM tags are in
the DIV (i.e. in the child). If I leave the FORM tag out of the child
and use the parent page's FORM, I run into problems with the
updatepanel in the child. The error says I need a scriptmanager,
which the parent has. I guess it isn't recognized because the aspx
I'm calling is processed before it gets into the parent (?).

Anyone have some suggestions on how I can do this?

Thanks,
Brett

Jan 29 '07 #1
3 2010
I'm not sure I understand, but it sounds similar to what we are
doing. We use ajax to return the HTML from a UserControl (not
entire .aspx page), then update the innerHTML of the panel with the
HTML from the user control. UserControls don't have "forms" so we did
not run into any issues.

Here's something else to check. Are you having problems with multiple
"forms" or are you having problems with multiple "forms where
runat=server"?

Jan 29 '07 #2
Here's something else to check. Are you having problems with multiple
"forms" or are you having problems with multiple "forms where
runat=server"?
No, I understand nested FORMs can't be used but it sounds as though
you guys aren't using AJAX updatepanel control either. That's where my
problem is. If I weren't trying to do a partial page update in this
one area (innerHTML section), it would work fine.

Jan 29 '07 #3
Not sure if this is the best way, but here's what we are doing. We've
got about about 10 UpdatePanels on one page and they each look like
this.
<div id="divXXX" style="background-color:#CFE6CF;cursor:hand;height:
25px;" align="center">
Panel title goes here
</div>
<asp:UpdatePanel ID="upnlXXX" runat="server">
<ContentTemplate>
<asp:Panel ID="pnlXXX" runat="server" style="width:100%;">
<!-- User Control Goes In Here -->
<uc:MyPanelContentUserControl ID="ucXXX" runat="server" />
</asp:Panel>

<cc1:CollapsiblePanelExtender ID="cpeXXX" runat="server"
TargetControlID="pnlXXX"
CollapsedSize="0"
Collapsed="true"
ExpandControlID="divXXX"
CollapseControlID="divXXX" />
</ContentTemplate>
</asp:UpdatePanel>
We're using a separate ASP.Net "Client Callback" to replace the
contents of each user control in each panel when the contents need to
be updated.

Jan 30 '07 #4

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
1
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
3
by: ApexData | last post by:
I am using a continuous form for display purposes. Above this form, a single record is displayed so that when the user presses my NewButton they can enter a NewRecord which gets added to the...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.