A webpage(.aspx) which has a button along with onclick event which was working as expected. But, I'd like to access a div tag (status) at javascript method
when I click asp button (btnValidate). My aim is hide/visible div based on the action happened inside code behind event.
How can I do this?
/** My Button Control Definition **/
<div style="top:0px;margin-top:0px;">
<asp:Button ID="btnValidate" runat="server" Text="Renew"
CssClass="SubmitButton" onclick="btnValidate_Click" />
</div>
/** Div status needs to be accessed in javascript when click asp.net button **/
<div id="status">
<!-- Some control goes here for status -->
</div>
/** Button code Behind event **/
protected void btnValidate_Click ( object sender, EventArgs e )
{
/** Some code goes here **/
}