I have a class that have this method for search. My problem is, A class does not support Client Script. It will only work if I place it in a Web Page. Help! What is the other way to do it. Btw, I will call this Method on my web Page.
public void SearchAffectedUser()
{
//some code here
if (dr.Read())
{
//some code here
}
else
{
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "clientScript", "<script type=\"text/javascript\">alert('Record Not Found. Please try again');</script>");
}