PC Review


Reply
Thread Tools Rate Thread

How to compile c# code dynamically?

 
 
Senthil Kumar via .NET 247
Guest
Posts: n/a
 
      21st Mar 2005
Hi Frends,

I have a "a.aspx.cs" and "b.aspx.cs", can i compile b.aspx.cs from a.aspx.cs?

Thanks in advance

Best Regards,
Senthil kumar Ramachandran

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>bJOOPwmxPkqACl03wxL7Tg==</Id>
 
Reply With Quote
 
 
 
 
Adam Clauss
Guest
Posts: n/a
 
      21st Mar 2005
Take a look at:
http://www.codeproject.com/dotnet/CodeFromCode.asp

It's in VB.NET, but you should be able to translate it pretty easily.

In particular, look at the ProcessExpression method, the part commented as
"Compiling the source file to an assembly DLL (IL code)."

Then the very next section shows how to call something from the compiled
code.

--
Adam Clauss
(E-Mail Removed)

"Senthil Kumar via .NET 247" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Frends,
>
> I have a "a.aspx.cs" and "b.aspx.cs", can i compile b.aspx.cs from
> a.aspx.cs?
>
> Thanks in advance
>
> Best Regards,
> Senthil kumar Ramachandran
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>bJOOPwmxPkqACl03wxL7Tg==</Id>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to dynamically compile file with custom tool? tomerdr@gmail.com Microsoft C# .NET 0 14th Mar 2008 08:03 PM
Compile C#-Code and C++-Code into one class library Ezmeralda Microsoft C# .NET 3 14th Dec 2007 03:44 PM
how can i compile csharp code to machine code permanently? putchar Microsoft C# .NET 3 1st Mar 2005 12:05 PM
how do I dynamically change an html meta tag from my code behind code? ntm Microsoft ASP .NET 2 19th Jan 2004 05:00 PM
Compile C# and VB.Net code together? Özden Irmak Microsoft C# .NET 5 24th Dec 2003 12:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:08 PM.