Open popup window on selectedIndexChange of "asp:dropdownlist"
-
Hi, In my application i have a "asp:dropdownlist" control on whose selectedIndexChange event i need to call a javascript function. But i get build error:Too many characters in character literal. If i remove 'runat=s"server" then its doesn't give build error, but on load of page, it doesn't show the control. Spanish Turkish English What can i do get rid of the build error, n for the javascript code to get executed successfully? Could anyone plz help? Thanks
-
Hi, In my application i have a "asp:dropdownlist" control on whose selectedIndexChange event i need to call a javascript function. But i get build error:Too many characters in character literal. If i remove 'runat=s"server" then its doesn't give build error, but on load of page, it doesn't show the control. Spanish Turkish English What can i do get rid of the build error, n for the javascript code to get executed successfully? Could anyone plz help? Thanks
use onClick event instead of OnSelectedIndexChanged Best Regard Pathan
GOD HELP THOSE WHO HELP THEMSELVES
-
use onClick event instead of OnSelectedIndexChanged Best Regard Pathan
GOD HELP THOSE WHO HELP THEMSELVES
-
Hi, In my application i have a "asp:dropdownlist" control on whose selectedIndexChange event i need to call a javascript function. But i get build error:Too many characters in character literal. If i remove 'runat=s"server" then its doesn't give build error, but on load of page, it doesn't show the control. Spanish Turkish English What can i do get rid of the build error, n for the javascript code to get executed successfully? Could anyone plz help? Thanks
-
The
OnSelectedIndexChanged
is server event and not suitable for your purposes. The client-side event you are looking for isonchange
. So in the codebehind write: ddlListSelect.Attributes.Add("onchange", "javascript:openPopupNew('frmPopup.aspx')");