Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
Protected Sub btnsearch_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnsearch.Click
      Dim code As String = txtCode.Text
      Dim objs As New SearchPerBySchool
      Dim year As String = ddyear.SelectedItem.Text

      If code.Length <> 9 Or code = "" Or code.Substring(0, 3) <> "500" Then
          MsgBox("Please enter a valid EmisCode")
      ElseIf objs.Search_School_performance(code, year).Rows.Count > 0 Then
          'Response.Redirect("ViewSchoolPer.aspx?EmisCode=" & txtCode.Text & "&ddyear=" & ddyear.SelectedItem.Text)
          Chart1.DataSource = objs.Search_School_performance(code, year)
          'Chart1.Series("grade").XValueMember = "grade"
          'Chart1.Series("TotalPass").YValueMembers = "TotalPass"
          Chart1.DataBind()
      End If
      'Response.Redirect("ViewSchoolPer.aspx")

  End Sub
Posted
Comments
[no name] 29-Aug-11 8:34am    
Where are you stuck? If you do not have the patience to explain your problem properly, then I do not think anyone here will have the patience to study your code and provide an answer.
_Zorro_ 29-Aug-11 9:46am    
I'm sorry, but your question has absolutely no sense to me...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900