473,624 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customised web controls in a data list/repeator

Hi there,

I have a set of products each of which has attributes (color size etc), is
it possible to use a data list or repeator to display all the items and
provide combo box with a unique set of attributes in each list/repeator item
as a sort of sub query.

Thanks for any help,

Steve

Nov 18 '05 #1
2 1444
Sure, do it in the itemdatabound event. First place an empty radiobutton list where you want it to appear.

then in ItemDataBound, you'll need to do something like this (This example is for a datagrid, but a datalist/repeater shouldn't be much different)

If e.Item.ItemType <> ListItemType.He ader AND _
e.Item.ItemType <> ListItemType.Fo oter then
Dim rbl as RadioButtonList = e.Item.Cells(0) .Controls(0) 'the hard part is figuring out exactly where the radiobuttonlist is in the mess

rbl.datasource = "whatever"
...
rbl.databind
End If

"Steve Lloyd" <st************ ****@livenowpay later.co.uk> wrote in message news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Hi there,

I have a set of products each of which has attributes (color size etc), is
it possible to use a data list or repeator to display all the items and
provide combo box with a unique set of attributes in each list/repeator item
as a sort of sub query.

Thanks for any help,

Steve


Nov 18 '05 #2
Shall give that a go, thanks
"Raterus" <ra*****@spam.o rg> wrote in message
news:ez******** ******@TK2MSFTN GP09.phx.gbl...
Sure, do it in the itemdatabound event. First place an empty radiobutton
list where you want it to appear.

then in ItemDataBound, you'll need to do something like this (This example
is for a datagrid, but a datalist/repeater shouldn't be much different)

If e.Item.ItemType <> ListItemType.He ader AND _
e.Item.ItemType <> ListItemType.Fo oter then
Dim rbl as RadioButtonList = e.Item.Cells(0) .Controls(0) 'the hard
part is figuring out exactly where the radiobuttonlist is in the mess

rbl.datasource = "whatever"
...
rbl.databind
End If

"Steve Lloyd" <st************ ****@livenowpay later.co.uk> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Hi there,

I have a set of products each of which has attributes (color size etc), is
it possible to use a data list or repeator to display all the items and
provide combo box with a unique set of attributes in each list/repeator item as a sort of sub query.

Thanks for any help,

Steve

Nov 18 '05 #3

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

Similar topics

1
3353
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is comprised of a DataGrid may have separate permissions for adding, deleting and updating a news item. Problem Up until now, I have been implementing security directly inside the control. I will test directly against the security model to see if...
3
2459
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a button inside a-tag with attribute target isn't anything new relating ASP.Net, its same old HTML). He claimed that you could change another page´s controls´s property´s value from another frame by using this method: ' Page "Bottom"
2
2059
by: Alfredo Barrientos | last post by:
Hi, I have been reading information about asp.net webcontrols, and i have found a term "List bound controls". What are "List Bound Controls"?? Which are the differences between these controls and the others?? how many webcontrols are list bound controls?? any url in microsoft.com talking about lista bound controls??
1
1068
by: muthu | last post by:
Hi freinds, Iam using repeator control in my application.The code behind is vb.net. I have n number of rows and 5 columns in the repeator control.In the ItemDataBound event of the repeator control i have a variable which should get the value of first column in the repeator column.How can i achieve that... Pls help me out .......
0
343
by: muthu | last post by:
Hi guys, Iam using a repeator control in my page.In wich i have dropdown list as the last column.I have a label in the first column.Now i have binded a datable to the repeator in the page load event.And assigned vale to the label in html as <asp:Label ID="c_invAmt" Runat="server" cssclass="smcsAmountLabel"> <%# DataBinder.Eval(Container.DataItem,"InvoiceAmount") %> </asp:Label>
2
2097
by: NH | last post by:
Is it possible to create a gridview control that allows scrolling on the columns. I have a gridview with a list of people names in the first column and the rest of the columns are week dates just showing a certain value for each person for the week. My gridview currenntly shows 10 weeks. But can I fix the person column and allow scrolling on the other columns so you can scroll up to 30 or 40 weeks easily. This is similar to excel in...
15
3611
by: mc | last post by:
I'm writing an app for managing Task Lists, I'm trying to add some controls to a form that I can use to link tasks, my original intention was to: - Add two list boxes, one listing "all Tasks" and the other listing "Linked Tasks", I have two buttons which in javascript move items from the first list into the second. Then when a user clicks a thrid button I would like to save this data.
0
841
by: koonda | last post by:
Hi all, I have been working on a "web interface" project but I am unable to get it working. Here is what I want to implement. I have been trying to bind the 5 Listbox controls to a single Repeator Control. I have populated the 5 Listbox controls from the underlying database tables. Whenever the user selects values from each listbox controls the result should be displayed in the Repeater control. I can bind one listbox to the Repeater but I...
12
1593
by: Bob Jones | last post by:
I have an odd business requirement and I think that the implementation is not correct in the terms of OOP development. Any help on the concepts would be very appreciated! We currently have a custom Page object which is derived from the base Page object. We also have custom controls that derive from a base class that performs custom drawing and inherits from our own IOurControl interface. There is also a special caching layer in the mix...
0
8168
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8330
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
8471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7153
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
6107
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
5561
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
4167
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1474
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.