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

dropdownlist on usercontrol populate host page label

I am new to vb.net and am getting frustrated and cannot find a post on
the subject. I have a usercontrol (.ascx) with a dropdownlist. on the
selectedindexchanged event of the codebeside of the .ascx page, i would
like the newly selected value of the dropdown box to populate a label
on the host page(.aspx). It seems easy and if the label is on the
control I can get it to work with minimal effort. Please advise me on
how to do this. I prefer vb.net. I am using vs2005. thanks

Aug 31 '06 #1
2 1962
KJ
You will need to set the autopostback property of the dropdownlist to
true. If this doesn't help, please post some code...

bo******@gmail.com wrote:
I am new to vb.net and am getting frustrated and cannot find a post on
the subject. I have a usercontrol (.ascx) with a dropdownlist. on the
selectedindexchanged event of the codebeside of the .ascx page, i would
like the newly selected value of the dropdown box to populate a label
on the host page(.aspx). It seems easy and if the label is on the
control I can get it to work with minimal effort. Please advise me on
how to do this. I prefer vb.net. I am using vs2005. thanks
Aug 31 '06 #2
your usercountrol should fire an event, that the page handles, or have a
label control property for the label, that the page sets, then the
usercontrol will know the proper label

-- bruce (sqlwork.com)

<bo******@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>I am new to vb.net and am getting frustrated and cannot find a post on
the subject. I have a usercontrol (.ascx) with a dropdownlist. on the
selectedindexchanged event of the codebeside of the .ascx page, i would
like the newly selected value of the dropdown box to populate a label
on the host page(.aspx). It seems easy and if the label is on the
control I can get it to work with minimal effort. Please advise me on
how to do this. I prefer vb.net. I am using vs2005. thanks

Aug 31 '06 #3

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

Similar topics

12
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option...
0
by: Shane O. Pinnell | last post by:
I am sure this has come up before, but I haven't been able to find an answer as of yet. That said, any help is definitely appreciated! I have a datagrid populated from a dataset. I have a...
2
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
3
by: Patrick.O.Ige | last post by:
I created a USERCONTROL and i want to call a LABEL from an ASPX page. The USERCONTROL is in the ASPX page I have the label :- Label lblstr = new Label(); And displaying using:-...
1
by: Joe | last post by:
Hello All: I have created a class (UpdatedDropDown) that inherits from DropDownList and I have included the following code in this class: Public Class UpdatedDropDown Inherits DropDownList ...
12
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control...
9
by: Marcelo Cabrera | last post by:
Hi, I have a user control that in turn creates a bunch of webcontrols dynamically and handles the events these webcontrols raise. It used to work fine on ASP .Net 1.1 but when compiled on 2.0 it...
2
by: Michael | last post by:
Hi again, I really hope that there is a simple solution to this one, cause I'm having simular things happening to other controls on this usercontrol. I have the following control:...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
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...
0
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,...
0
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...

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.