我需要使用IdataReader在表示层中调用方法并将其显示在DridView上的帮助 [英] I need help for calling a method in a presentation Layer using IdataReader and display it on a DridView

查看:81
本文介绍了我需要使用IdataReader在表示层中调用方法并将其显示在DridView上的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim objs As New Emis_Business_Layer.Districts

      Dim District As String
      Dim Ownership As String = DropDownList5.SelectedItem.Text
      Dim emiscode As String = txtemiscode.Text


      If District = objs._Get_General_Info_All(DropDownList_District.SelectedItem.Text, DropDownList5.SelectedItem.Text, txtemiscode.Text).Count > Then

          GridView1.DataSource = objs.Get_School_Info(DropDownList_District.SelectedItem.Text)
          GridView1.DataBind()

          Exit Sub

      End If

      If objs._Get_General_Info(DropDownList_District.SelectedItem.Text, Ownership).Count > 0 Then
          GridView1.DataSource = objs.Get_School_Info(DropDownList_District.SelectedItem.Text)
          GridView1.DataBind()
          Exit Sub

      End If

      If objs.Get_School_Emiscode(emiscode).Count > 0 Then

          GridView1.DataSource = objs.Get_School_Info(DropDownList_District.SelectedItem.Text)
          GridView1.DataBind()
          Exit Sub
      Else
          lblerror.Text = "Information those not match"

      End If

推荐答案

我在您的代码中看到一个缺失的值(> 0).它甚至不会编译.可能是拼写错误.只需检查一下即可.
I can see a missing value (> 0) in your code. It won''t even compile. It could be a typo. Just check it.
If District = objs._Get_General_Info_All(DropDownList_District.SelectedItem.Text, DropDownList5.SelectedItem.Text, txtemiscode.Text).Count > 0 Then


这篇关于我需要使用IdataReader在表示层中调用方法并将其显示在DridView上的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆