Tuesday, August 23, 2011

How to Retreive ASP.Net Controls value in JavaScript

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>


            

No comments:

Post a Comment

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...