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 3968330
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:49:45+00:00 2026-05-20T03:49:45+00:00

I need to have a textbox on a ASP.NET page in which a user

  • 0

I need to have a textbox on a ASP.NET page in which a user would paste code and select one of the preset languages (C#, VB.NET, Python, Ruby etc) and I need to verify if the code compiles successfully. If it doesn’t, then I need to show the errors and warnings with line numbers.

How do I go about doing this?

  • 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-05-20T03:49:46+00:00Added an answer on May 20, 2026 at 3:49 am

    You’ll need to host all sorts of compilers you’d like to support and use their APIs. If a compiler doesn’t expose an API, you’d need to use System.Diagnostics.Process to launch it and grab the output for parsing.

    This is far from a trivial task though.
    If you’re confident you need this, ask yourself several questions.

    • Which languages, platforms and languages do you plan to support? Python and Ruby, do you mean .NET versions of them or do you want to use their standard compilers? Which versions?
    • Do these compilers have any public APIs? Will you need to run them as executables?
    • If the site is going to be used concurrently by many users, how do you plan to distribute the load? Compiling is an intensive process and having a lot of people doing it will overload your server. Also note that compilation always takes time so you’ll need to think how to present it to user. Do you want it to start immediately or do you want to put users in a queue?
    • What is the user coding scope? Is user input limited to one method contents, or does the user have to write the whole file? Is any code added by system by default? How do you resolve the references e.g. for C# code? Are some libraries referenced by default?

    And this is just the tip of the iceberg.

    Answering your comment, yes, there is a compiler API for C# and VB .NET which is called CodeDOM.
    There’s plenty of information about it on the net. You may want to check out this question as well.

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

Sidebar

Related Questions

On one of my ASP.NET pages I have several asp:textbox fields. On this page
I have an ASP.NET page (WebForm) on which I set the content of a
I am using ASP.NET 3.5 and C#. On my page I need to have
I have a few section in an ASP.NET page and need to validate them
I have a textbox on an asp.net page. I use a barcode scanner to
I have a DDL and ASP.NET Textbox. I would like to populate the text
I have an ASP.NET page where I need to figure out where the style
I have a dynamically created TextBox in a C#/ASP.NET web page that I want
Using ASP.Net, VB.Net In my web page, i have the textbox values when i
On my C# asp.net webform I have a search page that has roughly 20

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.