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

Working with controls inside a repeater

I need to know how to handle controls inside a repeater, how to send and
recieve data from another page to one spesific control inside a repeater.

Clue:
I have a repeater that dynamicly lists out different kind of webcontrols
(based on some criterias). Each textboxes inside the repeater need to have a
"browse" button, when clicking that button another page shall open (popup)
and the user can bwrowse for some content to insert. When clicking "ok" in
the poput, the content (from a textbox) shall be inserted into the textbox
in the repeater.

Example:
Textbox 1 - button 1
Textbox 2 - button 2
Textbox 3 - button 3
..
..
..

If I click "button 1", a popup is opened and I can fill in a url path in a
textbox. When clicking "ok" in that popup I shall return to my repeater page
and the content shall be inserted into textbox1. If I click button 2, the
content shall be inserted into textbox 2 and so on...

This seems to be very hard to make, does anybody have some examples how to
do this? Please :)
<asp:Repeater runat="server" ID="repAttributes">
<ItemTemplate>

<asp:TextBox runat="server" ID="txtImageUrl" width="650px" />
<asp:Button runat="server" ID="btnImageUrl" Text="Browse" />

</ItemTemplate>
</asp:Repeater>

Mar 30 '08 #1
1 1918
I got it solved by using ClientId code behind.
"Øyvind Isaksen" <oy****@webressurs.nowrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I need to know how to handle controls inside a repeater, how to send and
recieve data from another page to one spesific control inside a repeater.

Clue:
I have a repeater that dynamicly lists out different kind of webcontrols
(based on some criterias). Each textboxes inside the repeater need to have
a "browse" button, when clicking that button another page shall open
(popup) and the user can bwrowse for some content to insert. When clicking
"ok" in the poput, the content (from a textbox) shall be inserted into the
textbox in the repeater.

Example:
Textbox 1 - button 1
Textbox 2 - button 2
Textbox 3 - button 3
.
.
.

If I click "button 1", a popup is opened and I can fill in a url path in a
textbox. When clicking "ok" in that popup I shall return to my repeater
page and the content shall be inserted into textbox1. If I click button 2,
the content shall be inserted into textbox 2 and so on...

This seems to be very hard to make, does anybody have some examples how to
do this? Please :)
<asp:Repeater runat="server" ID="repAttributes">
<ItemTemplate>

<asp:TextBox runat="server" ID="txtImageUrl" width="650px" />
<asp:Button runat="server" ID="btnImageUrl" Text="Browse" />

</ItemTemplate>
</asp:Repeater>

Mar 30 '08 #2

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

Similar topics

8
by: Invalidlastname | last post by:
Hi, We are developing an asp.net application, and we dynamically created certain literal controls to represent some read-only text for certain editable controls. However, recently we found an issue...
3
by: Kelly Leahy | last post by:
I'm using an Asp:Repeater control with a text box in the item templates. This is for a system that has a number of items that the user can edit and I'd like to generate them based on a list. ...
0
by: MattB | last post by:
I fixed my "can't get the textbox.text" issue by making sure I was only binding the repeater on the first load of the page (if Not IsPostBack). Now I'm adding other controls to my repeater and am...
1
by: Bennett Haselton | last post by:
If I have this code for repeater, it gives a compilation error saying "The type or namespace name 'MyValue2' could not be found": <asp:Repeater id="MyList" runat="server"> <ItemTemplate>...
3
by: sorCrer | last post by:
Hi All, Posted after extensive searching! I have a nested repeater control as follows: (Simplified ;-)) <table> <asp:repeater id=parent onItemDataBound=createChild> <tr><td>Level...
3
by: Scott at Cedar Creek | last post by:
Can I put a repeater inside a FormView? Can I put a repeater inside that repeater? If so, what happens when the FormView.Mode is "Edit?" When they click the EDIT button is my repeater data also...
1
by: Jonathan Wood | last post by:
Okay, as evidenced by other questions, I am an experienced programmer very new to ASP.NET. I have a vertical navigation bar. It is all one color with several panels inside it with a different...
3
by: Iain Buchanan | last post by:
Moving this code below from v1.1 to 2.0... am now getting this bug... After I bind a repeater I move the repeater inside the placeholder using controls.add(), but when I do this, all the...
1
by: Andy B | last post by:
I have a repeater control with an ItemTemplate inside of it. In the ItemTemplate, I have a div with a link that calls a javascript function to make an asp:Panel control visible or invisible. I need...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.