473,396 Members | 1,998 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,396 software developers and data experts.

Creating a web control with editable regions (template control?)

Hi

I'm trying to create a control with multiple regions that can be
edited - maybe as templates I guess.

I've seen a control that was done by Scott Mitchell which has rounded
corners surrounding the control - here is a link to the page
http://aspnet.4guysfromrolla.com/articles/081104-1.aspx) and this
essentially has one editable region that will then be surrounded by
the borders.

What I'm trying to achieve is a control with 2 or more areas that may
be templates (or not) but allow me to put the control on the page and
then include other elements.

The key things I want to achieve are that I can do similar to the
following

<xxx:MyContainer id="MyControl1" runat="server>
<area1>Some stuff including controls</area1>
<area2>Some more stuff including controls eg <asp:TextBox id="TextBox1
etc etc></asp:TextBox></area2>
</xxx:MyContainer>

What I then want is that when this displays something like a table
will surround the 2 areas -- like a regular Html table with borders
etc - I cant really upload an image to best describe this but
hopefully you can get the idea.

Then in the page that has the MyContainer control I can directly refer
to the control TextBox1 rather than having to do something like

MyControl1.FindControl("TextBox1").

I know this is sort of possible using ParseChildren and
PersistChildren and I have played with template controls but what
happens is the templates are display away from the rest of the
elements (Html table like stuff) I want to include. If I ignore the
Parse and Persist children stuff it works BUT I cant get direct access
to the control and have to resort to FindControl to get to the control

Any ideas?

James Beauchamp

Jun 21 '07 #1
0 1100

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

Similar topics

1
by: dSchwartz | last post by:
I am creating a totally adminable news system in asp.net (C#, SQL server). what i want to accomplish is allow multiple news templates to be read by an admin area. heres how it works...
4
by: Martin | last post by:
I want to build a data entry form for creating and updating info on something. When I'm first creating an item all the fields need to be editable. There after some fields become readonly. Most...
1
by: Don | last post by:
I created a Web User Control in my project and need to use it in a datagrid. The data in this control needs to be updated and the control has several properties that need to be databound. Using...
9
by: Niels Jensen | last post by:
Hi All, I'm desperately looking for help regarding the following: I need to make a hexmap in it's own scrollable window on a form, when I say hex map I mean a graphical hexagon surrounded by...
4
by: GregG | last post by:
Greetings, I have been working with the new GridView control, and while figuring out most of it's idiosyncrasies on my own, have stumbled upon a problem I cannot seem to resolve. We have...
9
by: hazz | last post by:
I want to display 'n' records for a table-driven data entry page. The first column should be readonly and the 2nd column, a checkbox WRITABLE (NOT READONLY). I can't use the gridview because it...
8
by: Spleenwort | last post by:
With regard to XML comments in c#. I think that #regions should be self-documenting relative to XML comments or that a <region> tag should be defined and auto-inserted when you type #region...
5
by: MarGera332 | last post by:
Hey Everyone I have just finished the design for the pages, and i am now going to put together the templates, i have set my editable regions, but when i create a new page from the template, the...
1
by: wizardry | last post by:
I'm having problems with this templete i created and defined editable regions 3 to be exact and saved as templete. then i created a new page from the templete i just created so the links were...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.