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

I have an ASP.NET page with a gridview control on it with a CommandButton
I have in here an old web application written in ASP.Net 2.0 + AJAX.
Just beginning my journey in ASP.Net MVC and I have a query about something
in my application i have an form where user enter their username first .
alt text http://img3.imageshack.us/img3/1488/advancedsearch.png I'm building an Advanced Search interface in an ASP.NET application. I
I am working with ASP.NET MVC2 RC and can't figure out how to get
I am attempting to allow my web designers to use the metadata we have
I've created a simple .NET usercontrol for logging into a members area on a
So I did some reading of the related questions and had some interesting stuff
Is there an easy wayt o capture a keypress (in my case: F5) in

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.