Solved

How do I nest a content form inside another content form in asp.net in c# csharp?

Posted on 2010-09-04
5
439 Views
Last Modified: 2012-08-14
I have a master page, and a content form inside it, let's call it X. Now I want to add a content form inside of x, let's call it y.

It seems a content form must have a master page, and I can't seem to do it.

The reason I want to do this, is because I want to allow a user to only change the content of form Y, so that they have no control over X. Content form Y will be in another folder, and the user will ftp only to that one.

So, can I nest a content form inside another content form? Thanks!!

By the way, the only thing that will be in this form is simple html tags and text, nothing fancy.
0
Comment
Question by:yaronusa
5 Comments
 
LVL 16

Accepted Solution

by:
Vikram Singh Saini earned 250 total points
ID: 33605992
Hi,

The question you are asking is making us confuse...

I have a master  page, and a content form inside it
So the content form referred here is the .aspx page or the <form> tag in Master page?

It seems a content  form must have a master page, and I can't seem to do it.
Why you are not able to do it?

If I assume that you are talking about .aspx page as content form. And you are trying one content form into another content form. So in that case we cannot merge tow forms.

So, can I nest a  content form inside another content form?No nesting of content form is not allowed in asp.net but master pages nesting is allowed.

The reason I want  to do this, is because I want to allow a user to only change the content  of form Y, so that they have no control over X
Use appropriate logics to prevent user from modying form X. Try using panel instead of form.

Regards,
VSS
0
 
LVL 5

Assisted Solution

by:bmxer
bmxer earned 250 total points
ID: 33607321
Master pages can be nested.  The content place holder that your referring to is where the content goes for a given master page

For your problem, I'd simply add a separate content place holder in the master-page.
0
 

Author Closing Comment

by:yaronusa
ID: 33650818
Thank you. I ended up using a Master Page, and then a Nested Master Page, and then a Web Content Form, with the idea that I will put the Web Content Form in a folder that will be controlled via FTP.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
consuming an asmx web service in winforms application 3 26
Server Error 11 47
Angular - break the dataset in chunks? 7 40
IIS Authorization for Web Service 2 23
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

864 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

22 Experts available now in Live!

Get 1:1 Help Now