runat server附加属性仅适用于IE

时间:2014-02-09 19:35:35

标签: c# asp.net vb.net user-controls runatserver

<cc2:FindEntity ID="feCiudad" runat="server" DataKeyField="id" 
   DataTableName="tbl_ciudad" TextBoxDisplayField="descripcion" 
    Width="315px" NoFoundMessage="No existe"></cc2:FindEntity>

服务器端

Protected Sub btnGuardar_Click(ByVal sender As Object, ByVal e As System.EventArgs)       
   Handles btnGuardar.Click If feCiudad.SelectedValue <> Nothing 
      Then ... In IE the selectedValue is != null 
      but in other browsers always is null

我在客户端动态添加一个属性(SelectedValue =“1”),但在帖子中,Firefox中的服务器上的值变为null,Chrome但在服务器中IE变为1。

为什么呢? :(

0 个答案:

没有答案