How to Retreive ASP.Net Controls value in JavaScript
<script type="text/javascript" language="javascript">
function GetLabelValue{
try
{
var sLblValue= document.getElementById("lblResourceSelected").innerText;
}
catch (err)
{
alert("error ... .... ..")
}
}
</script>
////////////////////////////////////////////////
<asp:Label ID="lblResourceSelected" runat="server" Text="Selecte Resource From List">
</asp:Label>
<script type="text/javascript" language="javascript">
function GetLabelValue{
try
{
var sLblValue= document.getElementById("lblResourceSelected").innerText;
}
catch (err)
{
alert("error ... .... ..")
}
}
</script>
////////////////////////////////////////////////
<asp:Label ID="lblResourceSelected" runat="server" Text="Selecte Resource From List">
</asp:Label>
No comments:
Post a Comment