Marchello Lippi

Marchello Lippi

  • NA
  • 5
  • 4.8k

show result in silverlight (web page) instead of writing into txt file

Oct 24 2012 7:11 AM
Hi all, 

I hope this is correct category... 

I'm new to Silverlight. My code works in Window Forms: 

        static void Main()
       
{
           
DBConnect dbconnect = new DBConnect();

           
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Temp\WriteLines4.txt", true))
           
{
                file
.WriteLine(dbconnect.CountPublic());
           
}

            dbconnect
.CloseConnectionPublic();
       
}

It connects to database, counts rows in table, writes result into txt file and closes connection. 

Now my need is to show result in silverlight (web page) instead of writing into txt file. How do I start?