Solved

stub not being called by the control

Posted on 2012-04-04
3
409 Views
Last Modified: 2012-04-04
I have a dropdownlist and I created a javascript function to do an eo web essentials callback on the panel it is in
function changeList() {
 eo_Callback("<%=cbpprocess.ClientID %>");
 }

Open in new window

The code for the button is
<asp:DropDownList ID="ddlUnfilteredList" runat="server" Width="508px" 
Height="22px" onselect="changeList();">

Open in new window

I load the Dropdownlistbox on page load and it fills
I double click the dropdownlist in design mode to make the stub in vb.net
I add code to the stub
 
Protected Sub ddlUnfilteredList_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ddlUnfilteredList.SelectedIndexChanged
 Call fillMembers()
 End Sub

Open in new window

When I run the code and select the dropdownlist it does not go to the stub? does anybody know why?

Any help would be greatly appreciated!!!!
R3nder
0
Comment
Question by:r3nder
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 37806891
I believe you are working with client-side scripting when you use onselect. Have you tried it like this:

<asp:DropDownList ID="ddlUnfilteredList" runat="server" Width="508px" 
Height="22px" OnSelectedIndexChanged="ddlUnfilteredList_SelectedIndexChanged">

Open in new window

0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37807530
Try changing

<asp:DropDownList ID="ddlUnfilteredList" runat="server" Width="508px"
Height="22px" onselect="changeList();">

to

<asp:DropDownList ID="ddlUnfilteredList" runat="server" Width="508px"
Height="22px" onselect="changeList(); return true;">

If it still does not work, try adding AutoPostBack = "true"
0
 
LVL 6

Author Closing Comment

by:r3nder
ID: 37807931
Autopostback="true" worked
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question