这不就是判断值是否相等吗,然后设置DetailsView1的visible吗

解决方案 »

  1.   

    1. 你加载的时候 先查询 shipment_header上的internal_shipment_num字段 值,赋值给Label2.Text;2. 在 button 的onclick事件 中去判断   if(textbox.Text==Label2.Text)
       {
           DetailsView1去显示值。
       }
       else
       {
       label1.text="不匹配";
       detailsView1.visible=false;
       }
      

  2.   

    Button 事件中
    2楼很详细  正解