Hello Friends,
Today i faced a situation, where I'm calling javascript function on button event and at the same time the validation summary must be called called.
Example:
<asp:Button ID="btnAddCandidate" runat="server" Text="Submit" CausesValidation="True"
ValidationGroup="1" OnClick="btnAddCandidate_Click" OnClientClick="validateResume();"/>
Javascript Code:
function validateResume(){
var hdn = document.getElementById('lnkbtnViewResume');
if(hdn.style.visibility=='hidden')
document.getElementById('lblresume').innerHTML="<ul><li>Please Upload Resume</li></ul>";
}
Problem is both are not working simultaneously.
Any solution??