我们如何在RadioButtonList的SelectedValue属性中调用java脚本函数..当我们从数据库中找到值时? [英] How we call java script function in SelectedValue attribute of RadioButtonList..when we found value from Database ?

查看:131
本文介绍了我们如何在RadioButtonList的SelectedValue属性中调用java脚本函数..当我们从数据库中找到值时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过的代码如下: -



My tried code as below :-

<asp:RadioButtonList ID="rblGoalMet" runat="server" CssClass="content" RepeatDirection="Horizontal" SelectedValue="return selectValue(<%# eval("goalMet")%>);"   >
    <asp:ListItem Value="completely">completely</asp:ListItem>
    <asp:ListItem Value="partially">partially</asp:ListItem>
    <asp:ListItem Value="nAtAll">not at all</asp:ListItem>
</asp:RadioButtonList>







但我收到错误: - :服务器标签不能包含<%...%>构造。



请帮帮我...



我想使用java脚本功能...我知道: -

SelectedValue =<%#eval(goalMet)%>工作得很好,但我有一些条件检查..所以我想调用一个java脚本函数...




But i got error :-: Server tags cannot contain <% ... %> constructs.

Please Help me ...

I want to use java script function...i known :-
SelectedValue="<%# eval("goalMet")%>" is working well but i have some conditional checking..so i want to call a java script function...

推荐答案

你好,

请为此尝试selectedindexchanged事件。
hello,
please, try selectedindexchanged event for that.


这篇关于我们如何在RadioButtonList的SelectedValue属性中调用java脚本函数..当我们从数据库中找到值时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆