5
Answers

gridview with itemtemplate checkboxex in asp.net

lalitha

lalitha

14y
12.5k
1
Hi please help me resolve this very urgent..

I have a gridview with courses to register in a semester with various fields like days(mon.tues..) and timing(1:30 to 2:30). A student has to select the courses by checking the checkbox and press the submit button. there are time clashes between few courses, I want to add the functionality where when one checkbox is checked then a method should be called where the timing of the other courses are compared with the selected one, and the same timing courses corresponding checkbox should be disabled.
Answers (5)
0
Abhishikt Kujur

Abhishikt Kujur

NA 3 0 18y
Hi all,
        After searching a while i got some results...I had to search files from a server location so it was needed a path to map with server which I did using,        
                            string StrRoot_E = Server.MapPath("../FolderName1/");
var StrRoot_E contains the string "../FolderName1/" is the path for the specific server Directory and to extract files of specific types,
                           string files_E() = Directory.GetFiles(StrRoot_E, "*.zip");
"*.zip " is the filetype which is stored in an array of strings,and then you can extract each file from that array of strings and can use for purpose.

Method Server.MapPath() takes string argument which is the physical path in your server while method Directory.GetFiles() takes two arguments, the Path of the Directory and the fileType both as strings.