S
Sean
I have a situation whereby I need to modify the text string appearing on an
ASP button with some text derived from a Javascript function. But I am
unsure of the correct syntax to do so.
Currently the I am just modifying the text in a SPAN next to the button as
opposed to change the button text itself. But it's not ideal really.
Currently I am have this:
<div id="section2">
<asp:TextBox CssClass="textbox" ID="txtSearch" runat="server"
Width="370px" TabIndex="0" />
<asp:Button ID="cmdDoIt" runat="server" onclick="cmdDoIt" Text="Search"
/>
<script type="text/javascript" language="javascript">
function ChangeOptionName(sText) {
document.getElementById("notify_using_se").innerHTML = "with " +
sText; }
</script>
<span id="notify_using_se"></span>
</div>
The javascript function is called by the on_click event of an option button
but I want to change Text="Seach" of the ASP button to the text returned by
the Function ChangeOptionName(sText)
Thanks in advance for any guide lines
ASP button with some text derived from a Javascript function. But I am
unsure of the correct syntax to do so.
Currently the I am just modifying the text in a SPAN next to the button as
opposed to change the button text itself. But it's not ideal really.
Currently I am have this:
<div id="section2">
<asp:TextBox CssClass="textbox" ID="txtSearch" runat="server"
Width="370px" TabIndex="0" />
<asp:Button ID="cmdDoIt" runat="server" onclick="cmdDoIt" Text="Search"
/>
<script type="text/javascript" language="javascript">
function ChangeOptionName(sText) {
document.getElementById("notify_using_se").innerHTML = "with " +
sText; }
</script>
<span id="notify_using_se"></span>
</div>
The javascript function is called by the on_click event of an option button
but I want to change Text="Seach" of the ASP button to the text returned by
the Function ChangeOptionName(sText)
Thanks in advance for any guide lines