hi there,
in ASP.NET 1.1 - debugging i can see that the dropdownlist item within the
repeater is being populated and i do "droplist1.data bind" but when the page
loads there is no data.
on top of page i declare "public DL as new DropDownList"
What i'm doing is the following: on the page load, i create a new istance of
"DL" and populate it with the data from database (1 db call), then when i
bind the repeater, as it goes through each ItemDataBound event, i do
"rptDropLis t = dl.
In debugging, it shoes dl.items.count= 12 and i can see the data, but the
repeater items just show up blank, and yes i have set the DataValueField and
DataTextField also.
any help appreciated,
Paul 1 2107
never mind, problem solved...
rptDropList.dat asource = dl.datasource
rptDropList.dat abind
"Milsnips" <mi******@hotma il.comwrote in message
news:Oo******** ******@TK2MSFTN GP04.phx.gbl...
hi there,
in ASP.NET 1.1 - debugging i can see that the dropdownlist item within the
repeater is being populated and i do "droplist1.data bind" but when the
page loads there is no data.
on top of page i declare "public DL as new DropDownList"
What i'm doing is the following: on the page load, i create a new istance
of "DL" and populate it with the data from database (1 db call), then when
i bind the repeater, as it goes through each ItemDataBound event, i do
"rptDropLis t = dl.
In debugging, it shoes dl.items.count= 12 and i can see the data, but the
repeater items just show up blank, and yes i have set the DataValueField
and DataTextField also.
any help appreciated,
Paul
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: kamaumalone |
last post by:
I have a dropdownlist which lives inside of a repeater. The repeater
accepts user input via textboxes and the aforementioned dropdownlist.
The repeater accepts phone numbers and allows for an arbitrary number
of empty rows to be added to it.
So, if a user knew in advance that they wanted to add 3 phone numbers,
they can type the nuber '3' in a textbox (outside the repeater)
and click a button (also outside of a repeater), and 3 new empty ...
|
by: JazzLover |
last post by:
We have some javascript code that depends on the name of the
dropdownlists to be the same as it parses them in an array, but within
a repeater the webcontrols generate a uniqueid with ctl0: and some
other junk prepended. Is there anyway we can prevent the dropdownlist
from writing out its mangled name?
|
by: Olav Tollefsen |
last post by:
I have a Web Form with a DataList. Inside the ItemTemplate, I have a
DropDownList control.
<asp:DataList ID="ProductDataList" Runat="server">
<ItemTemplate>
<asp:DropDownList ID="DropDownList1" Runat="server"
DataTextField="PropertyValue" DataValueField="PropertyValueId">
</asp:DropDownList>
</ItemTemplate>
</asp:DataList>
|
by: Roshawn Dawson |
last post by:
Hi,
I have a repeater control. This control will render a number of
textboxes on the page. Each textbox has its onblur event wired to a
JScript function. Here's a sample:
<asp:textbox onblur="blip(this,<%# Container.ItemIndex %>)"
text="<%#Container.DataItem("Quantity")%>" />
The binding expression included within the JScript function is giving me
|
by: Daniel Doyle |
last post by:
Hello and apologies in advance for the amount of code in this post. I've
also sent this message to the Sharepoint group, but thought that ASP.NET
developers may also be able to help, even though it's a Sharepoint WebPart.
I'm trying to do something fairly simple, create a datagrid that displays
where
and when a person works and allows them to change some of the information
via DropDownLists.
When the user clicks to edit a row, three of...
| |
by: Jeremy |
last post by:
Hello All,
I have a Repeater which contains a Dynamic DropDownList within its
itemtemplate. I know I have struggled with this before and I am pretty sure I
had to save a bunch of crap manually to the viewstate, but does anyone know
what would cause those DropDownList objects to clear out on postback. Is
there a setting on the Repeater I am forgetting about? I tried tooling with
EnableViewState but that did not work. The Repeater gets...
|
by: craigkenisston |
last post by:
I have a form with a repeater that is filled from a BLL object, and a
dropdownlist.
The dropdownlist has a parameters that is used in the BLL class, the
number of rows about to be displayed.
I have a databind in the Page_Load and I have a
ddlRowsPerPage_SelectedIndexChanged even in the dropdownlist.
However, I never get the correct number of rows because, the Page_Load
with the databinding is fired first, then the SelectedIndexChange...
|
by: Brad Baker |
last post by:
I'm going a little crazy :) I'm trying to bind a repeater control to a
dataset on page load using the following code:
if (Request.QueryString != null)
{
string customerid = Request.QueryString;
//open connection
SqlConnection m_conn = new SqlConnection("Server=server;
Database=database; UId=username; Pwd=password");
|
by: Brad Baker |
last post by:
I am trying to make a "tabbed" interface by iterating through a dataset with
a conditional statement. For example:
----------------------------------------------------------------------------------------------------------------------
| <a href="config.aspx?siteid=FIEJGIE">Site 1</a| Site 2 | <a
href="config.aspx?siteid=DFOWEMF">Site 3</a>|
In the example above site 2 is the "current" tab.
I have the following code at the top of my...
|
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...
|
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,...
| |
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |