hi,
i have added
btnSave.Attributes.Add("OnClick", "javascript:showAlert();"); in the load event of my page and checking on the button click if the session is empty then showing the alert.
but on the button click it is not showing the the alert window.
can i do it alert on server side.
i have used asp .net button server control (<asp:button/>)
is that the problem
what might be wrong?
function
showAlert()
{
var Ses = '<%=(string)Session["objOrganizationHierarchyAccessList"]%>';
if(Ses == null)
{
radalert('Please Add Role to the user!', 330, 100);
}
}