same page display "onchange"

Results 1 to 2 of 2

Thread: same page display "onchange"

  1. #1
    Join Date
    Dec 1969

    Default same page display "onchange"

    I have a dropdown with all my client&#039;s list. If I need to edit any client, I would want to select any client in the drop dpwn and the details of the client are seen below.<BR>I have reached the stage where I got the details of the first record in that table, using datalist. But I need the detail of the client selected in the drop down.<BR>In classic Asp we would do something like<BR><BR>Select * from Clients Where client_ID = Request("select")<BR><BR>Any help<BR>thanx

  2. #2
    Join Date
    Dec 1969

    Default RE: same page display

    You should be able to use a simple OnClick event to call a sub that identifies which list item has been selected. <BR><BR>Hope this helps.......<BR><BR>Tom T<BR><BR>&#060;Script runat="server"&#062;<BR><BR> Dim PickedItem as String<BR><BR> Sub PickOne(s As Object, e As EventArgs )<BR><BR> PickedItem = ListStuff.SelectedItem.Text<BR><BR> Select * from Clients Where client_ID = PickedItem<BR><BR> End Sub<BR><BR><BR>&#060;/Script&#062;<BR><BR>&#060;ASP:DropDownList <BR> id="ListStuff" <BR> onClick="PickOne" <BR> runat="Server" /&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts