473,324 Members | 2,268 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,324 software developers and data experts.

Customize user control

Does someone know how can I make a user control which allow me to
customize it like a datagrid or a repeater ...
For example, I would like to call my control in an aspx page like this
:

<%@ Register TagPrefix="TAG" TagName="MyUserControl"
Src="~/ascx/myUC.ascx" %>

<TAG:MyUserControl runat="server">
<Header>
<table>
<tr>
<td>This is a title</td>
</tr>
</Header>
<Items>
<Item name="item1" value="value1" />
<Item name="item2" value="value2" />
<Item name="item3" value="value3" />
</Items>
<Footer>
</table>
</Footer>
</TAG:MyUserControl>

In this way, <Header> and <Footer> tags are set like templates for the
control, and the body of the control is rendered by a repeater in my
..ascx file using datas set into <Items> tag.

I can't find the way to use what I set into <Header>, <Footer> and
<Items> tags. I'd like to know if it's possible with a user control and
how to do it, and if it's not possible, how to do it with a custom
control.

Many thanks for any help ;)

Julien

Nov 19 '05 #1
0 999

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

Similar topics

4
by: balachandar | last post by:
hi, How to Customize Internet Explorer Menus Using JS and Any other Scripting Language? I am in need to protect my website from saving files from the file menu in IE and Printing too.Can...
14
by: deko | last post by:
The below code dials a phone number when the subform datasheet cell containing the number is double clicked. The problem is that the dialer application (c:\windows\dialer.exe) pops up windows on...
3
by: sachin | last post by:
How to customize PrintPreviewDialog, such that, addition of a new button, change the functionality of existing button should be possible programatically. Sample code will help a lot. Moreover, what...
0
by: Seko | last post by:
Hi! I have an application written in VC++ that uses wizards to get input from the user. ( the wizards are implemented by using CPropertySheet.SetWizardMode() ) My question is, how can I...
5
by: Sun Jian | last post by:
Hi, I am trying to customize the asp.net validation to achieve the following: Upon submitting the form, client side validation will run, and it will stop at the first error detected. For...
3
by: Mikaël PLOUHINEC | last post by:
Hello, I work in a ASP.NET (C#) project. I would like to create an user control with a label and a textBox. My component myTextBox.ascx is present in my page (aspx) with <toto:TextBoxPerso...
6
by: serge calderara | last post by:
Dear all, I was wondering is there is a way to customise the treView control in order to get any Control as a Node. What I try to do is having a Progress bar as a treeview node object. Is...
3
by: bala | last post by:
Hi Gurus The scenario A MS Access frontend application with Oracle Backend (Linked Tables). The Database UserID and password is not stored and each user has a unique UserID and password. There...
4
by: Michael | last post by:
I am considering building my WebForm page using Web Parts, so that my users can customize Web application's user interface. Is there any good information on it? or step by step demo?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.