-1
我哈瓦DDL和textbox..if我的文本框的值在DDL已經存在意味着在DDL已經存在我應該顯示的短信..仍然沒有得到解決方案..請幫助我嗎?
我想比較calidator..but不工作,,,
<asp:DropDownList ID="ddlmothertongue" AppendDataBoundItems="True" runat="server"
CssClass="dd_NoWidth" Width="136px"
OnSelectedIndexChanged="ddlmothertongue_SelectedIndexChanged"
AutoPostBack="True" DataSourceID="SqlDataSource1"
DataTextField="mothertongue"
DataValueField="mothertongue">
<asp:ListItem Value="0" Text="-Select-"></asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:NewMatrimonyConnectionString %>"
SelectCommand="SELECT distinct [mothertongue] FROM [tbl_mothertongue]union all select 'Others'"></asp:SqlDataSource>
<asp:TextBox ID="txtmothertongue" runat="server"
Visible="False" AutoPostBack="True"></asp:TextBox>
<asp:TextBox ID="txtmothertongue" runat="server" Visible="False"
AutoPostBack="True"></asp:TextBox>
那麼你在這裏有什麼問題?請更具體! – 2011-05-13 10:25:07
你的問題含糊不清。很難說出這裏要問什麼。爲此,我投票決定關閉它。 – Steven 2011-05-13 10:25:44
請在主題中提出真正的問題。 – 2011-05-13 10:57:01