0
Answer

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

Marchello Lippi

Marchello Lippi

12y
1.1k
1
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?