PC Review


Reply
Thread Tools Rate Thread

How to display FORM in DIV?

 
 
brett
Guest
Posts: n/a
 
      29th Jan 2007
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

 
Reply With Quote
 
 
 
 
GroupReader
Guest
Posts: n/a
 
      29th Jan 2007
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"?

 
Reply With Quote
 
brett
Guest
Posts: n/a
 
      29th Jan 2007
> 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.

 
Reply With Quote
 
GroupReader
Guest
Posts: n/a
 
      30th Jan 2007
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Form: display query result and update based on form entrie Bryan Microsoft Access 0 25th Mar 2009 02:28 PM
Display totals on a form of selected data/Change query fields from form weircolin@googlemail.com Microsoft Access Form Coding 5 14th Aug 2006 03:06 PM
Can I cursor through a Master form and display a synchronized Detail form? Shayne G. Wright Microsoft Access Forms 1 26th Jan 2005 09:26 PM
using an unbound form to search odbc/sql and display results on that same form... Lee Taylor-Vaughan Microsoft Access Form Coding 0 30th Nov 2004 04:54 PM
Form Display Problem, Flickering, display delay =?Utf-8?B?SmFtZXMgTGk=?= Microsoft Dot NET Framework Forms 1 10th Oct 2004 07:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:32 PM.