473,801 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:MyContaine r 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.Find Control("TextBo x1").

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 1115

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

Similar topics

1
3598
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 (hopefully): an artist creates a news template (html file), drops it into a specific directory, now a client can choose that template and edit a certain number of fields. the artist has to be able to specify these fields in the template somehow, example:
4
2933
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 of these fields are text based, and I really want to have them appear as a label rather than a text box that is read only. I really want different behaviour for creation, edit and view. I guess I need to write a templated data-bound control.
1
1511
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 the designer I created a a dataGrid with an Edit, Update, Cancel column, and an empty template column. I have overridden ItemDataBound to instantiate my control, set the properties using DataItems, and add this control to the template column...
9
4658
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 other hexagons the same size. The program I'm writing imports region information i.e 10,13 would be a hexagon, 10 hex columns to the right and 13 hex rows down from hex 1,1.
4
5348
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 table displayed in a GV control. It allows for editing and selecting, etc. Some of the fields are 60 characters long, but only the first 20 or so are relevant, and all of them have to fit on one line within the row -
9
3533
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 creates -> checked="checked" disabled="disabled" What I need is more like this; <form id="form1" runat="server"> <div> <table>
8
1759
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 (blah, blah). Anyone have any suggestions for having regions and their comments show up in XML comments...
5
2605
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 regions that i should be able to change can not be accessed, now i think i know the reason why and that is because i am using over-flow which is set to hidden, on the main content div, because every time i worked on the page i had to double click the...
1
1302
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 their to update the editable regions. but when i publish the new templete it doesnt update the child file. thanks in advance for your help!
0
9698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10516
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10262
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9101
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7589
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6829
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4156
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.