Hi Sid.Mup,
replace
OnClientClick="javascript:return alertSid();"
with
OnClientClick="javascript: alertSid();"
the return statement is not allowing next function to execute.
FYI: the html generated for your button will be like this:
<input type="submit" name="btnOpenAlert" value="Alert" onclick="javascript: return alertSid(); ;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("btnOpenAlert", "", true, "", "", false, false))" id="btnOpenAlert" />
The WebForm_DoPostBackWithOptions function is added by Asp.Net and the return statement of your function is not allowing it to execute hence to validation summary message.
Hope this will help.
Thanks,
Hemant