Solved

stub not being called by the control

Posted on 2012-04-04
3
397 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 74

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now