Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# Web Application

Status
Not open for further replies.

pmccafferty

Programmer
Aug 21, 2006
3
US
Is it possible to envoke methods and procedures from an existings C# file and use them in a Web Application?


For example: Is this possible?
"test.cs"

using System;
namespace test
{
public class test()
{

string test()
{
return "Hello World";
}
}
}

Having "Hello World" displayed in a webpage after calling test() inside an HTML or other web document;
 
That's what codebehind does. You can also call any class from the page itself. Additionally, you could use a web service or remoting, if the class isn't to be part of the web project itself.

----------------------------------------

TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top