Click here to Skip to main content
16,005,149 members
Home / Discussions / C#
   

C#

 
GeneralRe: BigEndian Format Pin
S. Senthil Kumar3-Jul-05 23:40
S. Senthil Kumar3-Jul-05 23:40 
Questionnetworking ? Pin
Anonymous3-Jul-05 17:05
Anonymous3-Jul-05 17:05 
AnswerRe: networking ? Pin
Yulianto.3-Jul-05 18:32
Yulianto.3-Jul-05 18:32 
GeneralOutlook express add in Pin
Wessam Fathi3-Jul-05 14:15
Wessam Fathi3-Jul-05 14:15 
GeneralRe: Outlook express add in Pin
Carsten Zeumer3-Jul-05 22:16
Carsten Zeumer3-Jul-05 22:16 
GeneralFree resources Pin
Libor Tinka3-Jul-05 13:15
Libor Tinka3-Jul-05 13:15 
GeneralRe: Free resources Pin
Dave Kreskowiak3-Jul-05 16:21
mveDave Kreskowiak3-Jul-05 16:21 
GeneralC# and ASP.NET Pin
valvet3-Jul-05 12:59
valvet3-Jul-05 12:59 
Hey.. I'm very new to this but I'll try explaining the best I can.

Say I have a function in a "class library" project which gets imported by my "ASP.NET Web Application".

Now in my ASP.NET project I got:

private void Button1_Click(object sender, System.EventArgs e)
{
TestClass test = new TestClass();

test.TestFunction();
}

and my TestFunction looks like this:

public void TestFunction()
{
Console.WriteLine( "testing.." );
}

How would I go about writing the output of my TestFunction() to the actual page in my ASP.NET project? Do I need to set the message from TestFunction() to a public string and then use that string to display what I need on the web page?

Another example..

public void TestFunction()
{
try
{
Console.WriteLine( "testing.." );
}
catch( Exception E )
{
Console.WriteLine( "Ex: {0}", E.Message );
}
}

if TestFunction() should error now, it'll print out the Exception message to the console.. but I need it to print to the web page instead. I guess setting a string to the text now is not going to work.

Hope you understand and thanks for the help!
GeneralRe: C# and ASP.NET Pin
Guffa3-Jul-05 13:35
Guffa3-Jul-05 13:35 
GeneralRe: C# and ASP.NET Pin
valvet4-Jul-05 3:01
valvet4-Jul-05 3:01 
Generalrich text box problems Pin
snouto3-Jul-05 12:40
snouto3-Jul-05 12:40 
Generalcontrols Pin
Anonymous3-Jul-05 11:20
Anonymous3-Jul-05 11:20 
GeneralRe: controls Pin
Christian Graus3-Jul-05 11:53
protectorChristian Graus3-Jul-05 11:53 
GeneralSplash Screen Architecture Pin
1nsp1r3d3-Jul-05 10:24
1nsp1r3d3-Jul-05 10:24 
GeneralRe: Splash Screen Architecture Pin
Christian Graus3-Jul-05 11:55
protectorChristian Graus3-Jul-05 11:55 
GeneralRe: Splash Screen Architecture Pin
1nsp1r3d3-Jul-05 12:34
1nsp1r3d3-Jul-05 12:34 
GeneralRe: Splash Screen Architecture Pin
Christian Graus3-Jul-05 12:49
protectorChristian Graus3-Jul-05 12:49 
GeneralRe: Splash Screen Architecture Pin
S. Senthil Kumar3-Jul-05 19:33
S. Senthil Kumar3-Jul-05 19:33 
GeneralRe: Splash Screen Architecture Pin
Christian Graus4-Jul-05 13:09
protectorChristian Graus4-Jul-05 13:09 
GeneralRe: Splash Screen Architecture Pin
S. Senthil Kumar4-Jul-05 19:22
S. Senthil Kumar4-Jul-05 19:22 
GeneralRe: Splash Screen Architecture Pin
cmaissan4-Jul-05 14:16
cmaissan4-Jul-05 14:16 
GeneralRe: Splash Screen Architecture Pin
1nsp1r3d5-Jul-05 0:11
1nsp1r3d5-Jul-05 0:11 
GeneralMDI Form Pin
Newbie_Toy3-Jul-05 8:25
Newbie_Toy3-Jul-05 8:25 
GeneralRe: MDI Form Pin
Libor Tinka3-Jul-05 12:56
Libor Tinka3-Jul-05 12:56 
GeneralRe: MDI Form Pin
Libor Tinka3-Jul-05 12:58
Libor Tinka3-Jul-05 12:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.