I added code to one button but while clicking it raises "Object expected" Javascript error
Me.btnReport.Attributes.Add("onclick", String.Concat(New String() {"Javascript:ShowDocument('frmDocReport.aspx?PrjId=", Me.droplstProject.SelectedItem.Value, "&Type=", Me.droplstType.SelectedItem.Value, "&RecPerPage=", Me.droplstPAGE.SelectedItem.Value, "&DocNo=", Me.txtSearch.Text, "')"}))
I think its simple but I am not able to solve
In my view source I can see like this
onclick="Javascript:ShowDocument('frmDocReport.aspx?PrjId=48&Type=0&RecPerPage=5&DocNo=');"