Hi I'm really new to C#, more familiar with .ne but haven't code much in a while.
I am not sure how to populate a table with data after clicking a search button.. know how to do this in .net but eve after looking at examples I'm not sure how to do this in C#
this is what I have in .net but i need to find a way to do it in C# since the whole project will be in C#.
is there another way to use "Dim" ?
protected Sub seachMarks_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles searchMarks.Click
Dim systemmgr As New SchoolSystem.Controller
Dim myDS As DataSet
Try
myDS = systemmgr.GetMarkSubmissionList(courseid.Text, semester.Text)
If myDS.Tables(0).Rows.Count = 0 Then
FormMessage.Text = "No students in this course/semester."
Else
myDS.Tables(0).DefaultView.Sort = "Name ASC"
MarkList.DataSource = myDS.Tables(0)
MarkList.DataBind()
End If
Catch ex As Exception
FormMessage.Text = ex.Message
End Try
End Sub