Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8610125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:03:18+00:00 2026-06-12T04:03:18+00:00

I have been doing classing ASP and pretty new to ASP.NET. In classic ASP,

  • 0

I have been doing classing ASP and pretty new to ASP.NET. In classic ASP, I am normally response.write all the submitted values, make sure I am able to capture correct values, put those values in the SQL String, then response.write the SQL string before insert to SQL Server.
This helps to troubleshoot when there is an “SqlException” error, I just need copy/paste the whole query string in Server Management Studio and run it.

I wonder if there is any option in ASP.NET in which can perform sililiar like classic ASP. In ASP.Net, it display some errors, but it doesn’t show the value that I am submitting. For example, “[SqlException (0x80131904): Incorrect syntax near ‘]'”, I know where the problem in the query after review in the codes, but I would like to write whole the query string (with values submitted) in the screen so I can copy/pasted it in SQL Server Management Studio to troubleshoot it easier.

Debuging the errors/problems is very important for newbie like me. If there is no option like I described above in ASP.Net, please advise other alternative options if you know one.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:03:19+00:00Added an answer on June 12, 2026 at 4:03 am

    In the Microsoft IDEs (Visual Studio at least) you can click in the left margin (next to the line numbers if you have them turned on) and set breakpoints. You can test your code by hitting the green arrow (start debigging) or hitting I think it’s F5.

    When you hit a breakpoint while debugging, the code stops executing and you can mouse over variables (like your SQL Statement) and make sure it’s what you’re expecting.

    You could also turn on tracing in your page using Trace=”True” in the @Page directive, and use Trace.Warn to render your variable in the trace data. (This gives you a ton of other data in addition to what you’re looking for)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been doing ASP.NET for a while, and have done very little in
I have been doing some research on test driven development and find it pretty
i have been doing some looking at dlls. what exactly are all the uses
I have been doing this: public List<Role> GetRoles() { List<Role> result = new List<Role>();
I have been doing so research lately for a new project and have ended
I have been doing some research about how to do custom profileprovider in .NET
I have been doing project on rails and I am very new to it.
I have been doing active development in C# for several years now. I primarily
I have been doing TDD and was using it more as unit testing than
I have been doing PHP stuff for almost one year and I have never

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.