Solved

Using mulitple GridViews in a Dreamweaver SPRY tabbed panel page

Posted on 2009-05-13
1
426 Views
Last Modified: 2012-06-22
I have a page built with multiple tabs.  Each tab houses a gridview (connected to SQL Server via stored procedures)

When there is just one tab set up, it works great.  However, when I have two or more I get the error of only one form run at the server per page.  Is there a work around using Gridview and mutliple calls on one page?
0
Comment
Question by:KENNETH_MCKINNEY
1 Comment
 
LVL 25

Accepted Solution

by:
Rouchie earned 500 total points
ID: 24424777
It sounds as though DW is misbehaving and creating a new FORM RUNAT=SERVER tag inside the content div for each panel.

Create your code as you have been doing, but then go into Code View and remove all FORM RUNAT=SERVER tags except the first one, and all </FORM> tags except the last one.

The purpose of this is to ensure that your spry widget is contained inside the form tag that ASP needs to connect to SQL.

Alternatively in code view, ensure you page structure looks like this:

<body>
<form runat="server">
   <div class="TabbedPanels" id="TabbedPanels1">
       .... list and divs go here
   </div>
</form>
</body>

Finally remove any extra FORM tags DW adds when new gridviews are created.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question