I am using ASP.NET, C# version 2.0

My concern is that, when the user will close the document on the web
browser, my code will get the line-count through your control and save
in the DB.

Please help me to get line count of the opened document in the component
in the IE.

If possible please send me the sample code to get the line-count using
Javascript.