justoverback
Hectopat
- Katılım
- 28 Ekim 2018
- Mesajlar
- 79
Ekleye bastığımda her defasında yeniden tablo oluşturup veri ekliyor. Dolayısıyla 1'den fazla veri ekleyemiyorum.
Evrensel alana datatable tanımlayınca bu sefer hiç ekleme yapmıyor.
[CODE lang="aspnet" title="default.aspx"] <dx:BootstrapLayoutItem Caption="ID" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkID" runat="server" ReadOnly="false">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Miktar" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkMIK" runat="server" ReadOnly="false">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Fiyat" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkFIY" runat="server" ReadOnly="false" AutoPostBack="True" OnTextChanged="stkFIY_TextChanged">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Tutar(₺)" ColSpanMd="12">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkTUT" runat="server" ReadOnly="true">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Ekle" ShowCaption="false" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapButton ID="BootstrapButton4" runat="server" AutoPostBack="false" Text="Ekle" OnClick="BootstrapButton3_Click"></dx:BootstrapButton>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapGridView ID="BootstrapGridView3" ClientInstanceName="BootstrapGridView3" runat="server">
</dx:BootstrapGridView>[/CODE]
Evrensel alana datatable tanımlayınca bu sefer hiç ekleme yapmıyor.
[CODE lang="aspnet" title="default.aspx"] <dx:BootstrapLayoutItem Caption="ID" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkID" runat="server" ReadOnly="false">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Miktar" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkMIK" runat="server" ReadOnly="false">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Fiyat" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkFIY" runat="server" ReadOnly="false" AutoPostBack="True" OnTextChanged="stkFIY_TextChanged">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Tutar(₺)" ColSpanMd="12">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapTextBox ID="stkTUT" runat="server" ReadOnly="true">
</dx:BootstrapTextBox>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapLayoutItem Caption="Ekle" ShowCaption="false" ColSpanMd="6">
<ContentCollection>
<dx:ContentControl>
<dx:BootstrapButton ID="BootstrapButton4" runat="server" AutoPostBack="false" Text="Ekle" OnClick="BootstrapButton3_Click"></dx:BootstrapButton>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapLayoutItem>
<dx:BootstrapGridView ID="BootstrapGridView3" ClientInstanceName="BootstrapGridView3" runat="server">
</dx:BootstrapGridView>[/CODE]