Notice that I have used the ViewState. The reason is I need to maintain the value of read file at multiple post backs. Notice one more thing here I have used the ‘ReadAllText’ method that returns the file in form of string. You can perform the similar task by using the StreamReader. But this will not read file from server it reads from buffer. To read file from server you always need to save the file in ‘wwwroot’ and then access. Remember one thing, to work with File Class you need to import the System.IO namespace. Now add the code in cmdViewFilePro event:
5- now by Doubvle clicking on form its load Event is created then used that Event and write the code below as it is written .this code infact use to insert the values of Ckeck list box.
Now in the lats create the check list box check event by selecting the events against Check list Box events.
And write the Code below this code infact distinguish between the check list of Box and generate its String value and Copy it to the label.