Solved

stub not being called by the control

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

17 Experts available now in Live!

Get 1:1 Help Now