dropdownlist.OnSelecteItemChanges,,,,

  • Thread starter Thread starter genc_ymeri
  • Start date Start date
G

genc_ymeri

Hi over there,
I didn't expect not to get this right a way but the problem I'm having is
this :

I have a Webform with a a dropdownlsit [two items {Yes, No}] Of course I
have the dropdownlist a serverside control.

How can I pop up a message dialog on the client-side when the user select
Yes from my dropdownlist ???
 
function ChangeForOccupation(value)
{ if(value==Yes) {// do your stuff }
<asp:dropdownlist id="DropDown_Occupation" runat="server" Width="256px"
CssClass="input" onchange="ChangeForOccupation(value);">
<asp:ListItem Value="Yes" Selected="True">Yes</asp:ListItem>
<asp:ListItem Value="Yes">Yes</asp:ListItem>
 
I tried this as thte first attempt, but what I got is :
ChangeForOccupation(value) is not member of myForm.aspx


Asela Gunawardena said:
function ChangeForOccupation(value)
{ if(value==Yes) {// do your stuff }
<asp:dropdownlist id="DropDown_Occupation" runat="server" Width="256px"
CssClass="input" onchange="ChangeForOccupation(value);">
<asp:ListItem Value="Yes" Selected="True">Yes</asp:ListItem>
<asp:ListItem Value="Yes">Yes</asp:ListItem>


genc_ymeri said:
Hi over there,
I didn't expect not to get this right a way but the problem I'm having is
this :

I have a Webform with a a dropdownlsit [two items {Yes, No}] Of course I
have the dropdownlist a serverside control.

How can I pop up a message dialog on the client-side when the user select
Yes from my dropdownlist ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top