Solved

multiple forms masterpage / regular page

Posted on 2006-11-03
3
238 Views
Last Modified: 2011-09-20
A error message shown that I can only use one form.
Actually, I already set up masterpage and one form is inside of masterpage.
And all other pages in the future will contain form for sure. How can I code to avoid the error message?
I am new of asp.net 2.0 Please explain /code as clear as possible.
0
Comment
Question by:riskyricky1972
  • 2
3 Comments
 
LVL 12

Expert Comment

by:craskin
ID: 17871128
there's no way around using only 1 form as far as i know. in asp.net, though, i don't really know why you'd want to? maybe you can explain your need for more than 1 form?
0
 

Author Comment

by:riskyricky1972
ID: 17871188
Another form on the masterpage is for Treeview  <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" ImageSet="Arrows">
That required to use form.



                   
0
 
LVL 12

Accepted Solution

by:
craskin earned 200 total points
ID: 17872072
so why not just put your content control inside the form on the masterpage? why do you need another form on your detail page? you can put a script block on any detail page without any trouble and since it all loads inside the master page's form, there shouldn't be any problem.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now