Just change the code to save the image with name same as
Student ID.
Something like-
Dim imageName As String = Session("stud_id").ToString
Note: You need to make sure that ``Session("stud_id")`` is available prior to this statement.
To find the path of the file saved in your application folder, you can use
HttpServerUtility.MapPath Method[
^]
Something like following may help-
HttpContext.Current.Server.MapPath("../Captures/"+Session["stud_id"].ToString+".png")
Hope, it helps :)