ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Get Line number where exception has occurred using C# and VB.Net in ASP.Net<p>Hi&nbsp;nauna,</p> <p>Refer below article.</p> <h1 class="header"><a title="Error logging and Exception handling in ASP.Net using C# and VB.Net'a" href="https://www.aspsnippets.com/Articles/Error-logging-and-Exception-handling-in-ASPNet-using-C-and-VBNet.aspx">Error logging and Exception handling in ASP.Net using C# and VB.Net</a></h1>https://www.aspforums.net:443/Threads/301110/Get-Line-number-where-exception-has-occurred-using-C-and-VBNet-in-ASPNet/https://www.aspforums.net:443/Threads/301110/Get-Line-number-where-exception-has-occurred-using-C-and-VBNet-in-ASPNet/Tue, 08 Jan 2019 22:40:19 GMTGet Line number where exception has occurred using C# and VB.Net in ASP.Net<p>its good, but how can i get the control name which control is giving error, like which textbox or which check box? please advice i am really thankful to you</p>https://www.aspforums.net:443/Threads/301110/Get-Line-number-where-exception-has-occurred-using-C-and-VBNet-in-ASPNet/https://www.aspforums.net:443/Threads/301110/Get-Line-number-where-exception-has-occurred-using-C-and-VBNet-in-ASPNet/Tue, 08 Jan 2019 22:44:48 GMTGet Line number where exception has occurred using C# and VB.Net in ASP.Net<p>You can't get the control id. Only you can get the line number causing the error from&nbsp;ex.StackTrace.</p> <p>From that line you can go and check your code.</p>https://www.aspforums.net:443/Threads/301110/Get-Line-number-where-exception-has-occurred-using-C-and-VBNet-in-ASPNet/https://www.aspforums.net:443/Threads/301110/Get-Line-number-where-exception-has-occurred-using-C-and-VBNet-in-ASPNet/Wed, 09 Jan 2019 05:20:40 GMT