Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to Capture click-event of DropDownList box

Reply
Thread Tools

How to Capture click-event of DropDownList box

 
 
AuntieMom AuntieMom is offline
Junior Member
Join Date: Mar 2009
Posts: 1
 
      03-24-2009
The situation:

A GridView Object is populating a DetailsView Object and I have a dropdownlist within the DetailsView. When this page loads there will always be only one record in the dropdownlist object, then the user needs to click the down arrow to repopulate the dropdownlist control.

How can I capture the <clicking> of the dropdownlist in order for me to re-populate the dropdownlist with the corresponding values.

I have:
<asp:UpdatePanel ID="upLD2" runat ="server" >

<ContentTemplate >
<aspropDownList ID="LD2" runat="server" AutoPostBack="True"
DataSourceID="odsLByD"
DataTextField="LD" DataValueField="LCode">
</aspropDownList>
<asp:ObjectDataSource ID="odsLByDi" runat="server"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetLByEmpID"
TypeName="LBLL">
<SelectParameters>
<asp:ControlParameter ControlID="grdEmp" Name="EmpD" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</ContentTemplate>

<Triggers>
<asp:AsyncPostBackTrigger ControlID ="LD2" EventName ="SelectInitialItem" />
</Triggers>
</asp:UpdatePanel>

</EditItemTemplate>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
Screen Capture With Mouse , Mouse Position Capture Max Java 7 08-08-2009 11:51 PM
SuperVideoCap work as a broadcast capture and screen capture and record tool. hely0123 Media 0 10-30-2007 08:59 AM
DataList - Capture the SelectedIndexChanged of a dropdownlist within template Todd Fisher ASP .Net 2 07-19-2007 11:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57