Forum
Merhaba arkadaşlar.
Hazırladığım formda grid içerisinde müşteri isimleri var. Grid içinden 1 müşteriyi işaretleyip yine form içindeki değiştir butonuna basarak popup pencere açmaktayım ve o pencerede müşteri bilgilerini değiştirmekteyim veya ilave bilgiler girmekteyim.
Butona bastığımda açılan popup boş görünüp kaybolup tekrar müşteri bilgileri ile ilgili textbox lar dolu geliyor. Bu gidip gelme olayını çözemedim.
Butonun AutoPostBack=False
protected void btnMusteriDegistir_Click(object sender, EventArgs e)
{
string ID = gridMusteri.GetRowValues(gridMusteri.FocusedRowIndex, "ID").ToString();
SqlCommand command = new SqlCommand("SELECT [ID], [ADISOYADI], [CEPTEL], [MAIL], [EVTEL], [ADRES] FROM [MUSTERILER] WHERE ID='" + ID + "'", baglanti);
baglanti.Open();
SqlDataReader rd = command.ExecuteReader();
if (rd.HasRows)
{
while (rd.Read())
{
txtDegMusAdi.Text = rd["ADISOYADI"].ToString();
txtDegMusTel.Text = rd["CEPTEL"].ToString();
txtDegMusEmail.Text = rd["MAIL"].ToString();
txtDegMusMeslek.Text = rd["EVTEL"].ToString();
txtDegMusAdres.Text = rd["ADRES"].ToString();
}
}
baglanti.Close();
}
- Sayfanın Page_Load ında if (!IsPostBack) denetimini yaptınmı ?
- ajax ın modal pop-up ı mı yoksa iki panel şeklinde mi yaptın ?
- Sayfa içerisinde update panel varmı
Pop up gidip gelmesi hususunda daha önceden bu etmenlerden dolayı sıkıntı yaşadığım için bu soruları sorma gereği gördüm
http://www.fastswf.com/wNo4Mp4
Dediğim olayı yukarıdaki linkden daha iyi görebilirsiniz. Butona tıklar tıklamaz ikinci bir yenileme oluyor.
Sorduğunuz sorulara gelince;
if (!IsPostBack) olayını kullanmadım.
Devexpress popupcontrol kullanıyorum.
updatepanel var.
Şuan ki sorun olsun veya olmasın sayfanın Page_Load ında if (!IsPostBack) { } denetimini yapmanı tavsiye ederim.
Örn:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// Page load kodların ....
}
}
<Triggers> ile işlemi gerçekleştirmişmiydin .aspx kodlarınıda gönderirmisin
https://www.devexpress.com/Support/Center/Question/Details/K18405
http://www.kaanaybat.com/asp-net-update-panel-kullanimi/
aşağıda aspx ve cs kodlarımı gönderdim.
teşekkürler...
aspx kodlarım
-----------------------------------------------------------------------------------------------------------------------------------------
<body>
<form id="form1" runat="server">
<div style="width: 100%; height: 40px">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
<div style="width: 1120px; height: 272px; margin-top: 15px; margin-left: 15px;">
<div style="width: 583px; height: 262px; float: left;">
<dx:ASPxGridView ID="gridMusteri" runat="server" AutoGenerateColumns="False" ClientInstanceName="grid" DataSourceID="dsMusteri" Font-Size="XX-Small" KeyFieldName="ID" Theme="DevEx" EnableTheming="True">
<SettingsBehavior AllowFocusedRow="True" />
<SettingsSearchPanel Visible="True" />
<Columns>
<dx:GridViewDataTextColumn FieldName="ID" ReadOnly="True" VisibleIndex="1" Visible="False">
<EditFormSettings Visible="False" />
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="ADISOYADI" VisibleIndex="2">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="CEPTEL" VisibleIndex="3">
</dx:GridViewDataTextColumn>
<dx:GridViewDataDateColumn FieldName="ILKTARIH" VisibleIndex="4">
</dx:GridViewDataDateColumn>
<dx:GridViewDataTextColumn FieldName="SORGUKAYNAGI" VisibleIndex="5">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="KAYITYAPAN" VisibleIndex="6">
</dx:GridViewDataTextColumn>
<dx:GridViewDataDateColumn FieldName="KAYITTARIHI" VisibleIndex="7">
</dx:GridViewDataDateColumn>
</Columns>
</dx:ASPxGridView>
</div>
<div style="width: 500px; height: 266px; float: left; margin-left: 15px;">
<div style="width: 100%; height: 120px;">
<div style="width: 160px; height: 120px; float: left;">
<dx:ASPxButton ID="btnYeniMusteri" runat="server" Height="100px" Width="150px" AutoPostBack="False">
<Image Url="~/Images/addmusteri.png">
</Image>
</dx:ASPxButton>
</div>
<div style="width: 160px; height: 120px; float: left;">
<dx:ASPxButton ID="btnMusteriDegistir" runat="server" Height="100px" Width="150px" OnClick="btnMusteriDegistir_Click" AutoPostBack="False">
<Image Url="~/Images/editmusteri.png">
</Image>
</dx:ASPxButton>
</div>
<div style="width: 160px; height: 120px; float: left;">
<dx:ASPxButton ID="btnYeniHareket" runat="server" Height="100px" Width="150px" EncodeHtml="False" OnClick="btnYeniHareket_Click" AutoPostBack="False">
<ClientSideEvents Click="function(s, e) {
popupMusteriHareketGiris.Show();
}" />
<Image Url="~/Images/actionmusteri2.png">
</Image>
</dx:ASPxButton>
</div>
<div style="width: 160px; height: 120px; float: left;">
<dx:ASPxButton ID="btnHareketGiris" runat="server" Height="100px" Width="150px" EncodeHtml="False" AutoPostBack="False">
<Image Url="~/Images/actionmusteri.png">
</Image>
</dx:ASPxButton>
</div>
<div style="width: 160px; height: 120px; float: left;">
<dx:ASPxButton ID="btnTeklifHazirla" runat="server" Height="100px" Width="150px" AutoPostBack="False">
<Image Url="~/Images/offers.png">
</Image>
</dx:ASPxButton>
</div>
<div style="width: 160px; height: 120px; float: left;">
<dx:ASPxButton ID="btnProforma" runat="server" Height="100px" Width="150px" AutoPostBack="False">
<Image Url="~/Images/contracts.png">
</Image>
</dx:ASPxButton>
</div>
</div>
</div>
</div>
<div style="width: 100%; height: 250px; margin-left: 15px">
</div>
<div style="width: 100%; height: 1284px">
<dx:ASPxPopupControl ID="popupYeniMusteri" runat="server" Height="289px" Width="408px" HeaderText="Yeni Müşteri Kaydı" AllowDragging="True" CloseAnimationType="Fade" Modal="True" PopupAnimationType="Fade" PopupElementID="btnYeniMusteri" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter">
<HeaderStyle BackColor="#33CC33" ForeColor="Black" />
<ContentCollection>
<dx:PopupControlContentControl runat="server">
<div style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;"
align="left">Müşteri Ad Soyad<dx:ASPxTextBox ID="txtYeniMusAd" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;"
align="left">Tel<dx:ASPxTextBox ID="txtYeniMusTel" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;"
align="left">E-Posta<dx:ASPxTextBox ID="txtYeniMusEmail" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;"
align="left">Mesleği<dx:ASPxTextBox ID="txtYeniMusMeslek" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div style="float:left; width: 361px; height: 105px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;"
align="left">Adres<dx:ASPxMemo ID="txtYeniMusAdres" runat="server" Height="71px" Width="357px">
</dx:ASPxMemo>
</div>
<div style="float:left; width: 359px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;"
align="left">
<dx:ASPxButton ID="btnYeniMusKaydet" runat="server" Text="Kaydet">
</dx:ASPxButton>
</div>
</dx:PopupControlContentControl>
</ContentCollection>
</dx:ASPxPopupControl>
<asp:SqlDataSource ID="dsRenk" runat="server" ConnectionString="<%$ ConnectionStrings:NeskarNetConnectionString %>" SelectCommand="SELECT [RENK] FROM [BDC_RENKLER]"></asp:SqlDataSource>
<asp:SqlDataSource ID="dsSaat" runat="server" ConnectionString="<%$ ConnectionStrings:NeskarNetConnectionString %>" SelectCommand="SELECT [saat] FROM [RandevuSaatleri]"></asp:SqlDataSource>
<asp:SqlDataSource ID="dsMusteri" runat="server" ConnectionString="<%$ ConnectionStrings:NeskarNetConnectionString %>" SelectCommand="SELECT [ID], [ADISOYADI], [CEPTEL], [ILKTARIH], [SORGUKAYNAGI], [KAYITYAPAN], [KAYITTARIHI] FROM [BDC_MUSTERITAKIP] where SILEN='-1'"></asp:SqlDataSource>
<asp:SqlDataSource ID="dsModel" runat="server" ConnectionString="<%$ ConnectionStrings:NeskarNetConnectionString %>" SelectCommand="SELECT [MODEL] FROM [BDC_ARACMODELLER]"></asp:SqlDataSource>
</div>
<div style="width: 100%; height: 323px">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<dx:ASPxPopupControl ID="popupMusteriDegisiklik" runat="server" AllowDragging="True" CloseAnimationType="Fade" HeaderText="Müşteri Değişiklik" Height="289px" Modal="True" PopupAnimationType="Fade" PopupElementID="btnMusteriDegistir" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Width="408px">
<HeaderStyle BackColor="#FF6600" ForeColor="Black" />
<ContentCollection>
<dx:PopupControlContentControl runat="server">
<div align="left" style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Müşteri Ad Soyad<dx:ASPxTextBox ID="txtDegMusAdi" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div align="left" style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Tel<dx:ASPxTextBox ID="txtDegMusTel" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div align="left" style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
E-Posta<dx:ASPxTextBox ID="txtDegMusEmail" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div align="left" style="float:left; width: 176px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Mesleği<dx:ASPxTextBox ID="txtDegMusMeslek" runat="server" Width="170px">
</dx:ASPxTextBox>
</div>
<div align="left" style="float:left; width: 361px; height: 105px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Adres<dx:ASPxMemo ID="txtDegMusAdres" runat="server" Height="71px" Width="357px">
</dx:ASPxMemo>
</div>
<div align="left" style="float:left; width: 359px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
<dx:ASPxButton ID="btnDegMusKaydet" runat="server" Text="Kaydet" Theme="DevEx">
</dx:ASPxButton>
</div>
</dx:PopupControlContentControl>
</ContentCollection>
</dx:ASPxPopupControl>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnMusteriDegistir" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
<div style="height: 575px">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<dx:ASPxPopupControl ID="popupMusteriHareketGiris" runat="server" AllowDragging="True" CloseAnimationType="Fade" HeaderText="Müşteri Hareket Girişi" Height="540px" Modal="True" PopupAnimationType="Fade" PopupElementID="btnYeniHareket" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Width="720px">
<HeaderStyle BackColor="#0066FF" ForeColor="Black" HorizontalAlign="Center" />
<ContentCollection>
<dx:PopupControlContentControl runat="server">
<div align="left" style="border: 1px outset #C0C0C0; float:left; width: 700px; height: 524px; font-family: tahoma; font-size: 12px; color: #313131; ">
<div style="width: 690px; height: 32px; border-bottom-style: outset; border-bottom-width: 1px; border-bottom-color: #C0C0C0; background-color: #F0F0F0; padding-left: 10px; padding-top: 8px;">
<dx:ASPxLabel ID="lblMusteriAdi" runat="server" Font-Bold="True" Font-Size="Larger" ForeColor="Black" Text=" ">
</dx:ASPxLabel>
</div>
<div style="border-bottom: 1px outset #C0C0C0; width: 100%; height: 55px">
<div align="left" style="float:left; width: 103px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Kayıt Tarihi<dx:ASPxDateEdit ID="dateHarGirKayTar" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="100px">
</dx:ASPxDateEdit>
</div>
<div align="left" style="float:left; width: 103px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Sorgu Kaynağı<dx:ASPxComboBox ID="cmbHarGirSorguKaynagi" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="85px">
<Items>
<dx:ListEditItem Text="Showroom" Value="Showroom" />
<dx:ListEditItem Text="LeadIT" Value="LeadIT" />
<dx:ListEditItem Text="Mail" Value="Mail" />
<dx:ListEditItem Text="Telefon" Value="Telefon" />
</Items>
</dx:ASPxComboBox>
</div>
<div align="left" style="float:left; width: 308px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
İlgilendiği Model<dx:ASPxComboBox ID="cmbHarGirModel" runat="server" DataSourceID="dsModel" EnableCallbackMode="True" Font-Size="XX-Small" TextField="MODEL" Theme="DevEx" ValueField="MODEL" Width="300px">
</dx:ASPxComboBox>
</div>
<div align="left" style="float:left; width: 103px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Renk<dx:ASPxComboBox ID="cmbHarGirRenk" runat="server" DataSourceID="dsRenk" EnableCallbackMode="True" Font-Size="XX-Small" TextField="RENK" Theme="DevEx" ValueField="RENK" Width="85px">
</dx:ASPxComboBox>
</div>
</div>
<div style="height: 214px">
<div style="width: 160px; height: 215px; padding-top: 5px; padding-left: 10px; float: left;">
<dx:ASPxRoundPanel ID="roundShowroom" runat="server" AllowCollapsingByHeaderClick="True" HeaderText="Showroom" Height="194px" ShowCollapseButton="True" View="GroupBox" Width="160px">
<PanelCollection>
<dx:PanelContent runat="server">
Demo<dx:ASPxComboBox ID="cmbHarGirShowDemo" runat="server" EnableTheming="True" Font-Size="XX-Small" Theme="DevEx" Width="80px">
<Items>
<dx:ListEditItem Text="Evet" Value="Evet" />
<dx:ListEditItem Text="Hayır" Value="Hayır" />
</Items>
</dx:ASPxComboBox>
Sonuç<dx:ASPxComboBox ID="cmbHarGirShowSonuc" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="80px">
<Items>
<dx:ListEditItem Text="Satıldı" Value="Satıldı" />
<dx:ListEditItem Text="Satılmadı" Value="Satılmadı" />
<dx:ListEditItem Text="Satış İptal" Value="Satış İptal" />
</Items>
</dx:ASPxComboBox>
<br />
</dx:PanelContent>
</PanelCollection>
</dx:ASPxRoundPanel>
</div>
<div style="width: 160px; height: 215px; padding-top: 5px; padding-left: 10px; float: left;">
<dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" AllowCollapsingByHeaderClick="True" HeaderText="Tel/Mail" Height="194px" ShowCollapseButton="True" View="GroupBox" Width="160px">
<PanelCollection>
<dx:PanelContent runat="server">
Sonuç<dx:ASPxComboBox ID="cmbHarGirTelSonuc" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="80px">
<Items>
<dx:ListEditItem Text="Randevu Alındı" Value="Randevu Alındı" />
<dx:ListEditItem Text="Randevu Alınmadı" Value="Randevu Alınmadı" />
</Items>
</dx:ASPxComboBox>
<br />
</dx:PanelContent>
</PanelCollection>
</dx:ASPxRoundPanel>
</div>
<div style="width: 160px; height: 215px; padding-top: 5px; padding-left: 10px; float: left;">
<dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" AllowCollapsingByHeaderClick="True" HeaderText="Randevu" Height="194px" ShowCollapseButton="True" View="GroupBox" Width="160px">
<PanelCollection>
<dx:PanelContent runat="server">
Sonuç<dx:ASPxComboBox ID="cmbHarGirRanSonuc" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="80px">
<Items>
<dx:ListEditItem Text="Geldi" Value="Geldi" />
<dx:ListEditItem Text="Gelmedi" Value="Gelmedi" />
</Items>
</dx:ASPxComboBox>
Randevu Tarihi<dx:ASPxDateEdit ID="dateHarGirRanTar" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="80px">
</dx:ASPxDateEdit>
Randevu Saati<dx:ASPxComboBox ID="cmbHarGirRanSaat" runat="server" DataSourceID="dsSaat" Font-Size="XX-Small" TextField="saat" Theme="DevEx" ValueField="saat" Width="80px">
<Items>
<dx:ListEditItem Text="Randevu Alındı" Value="Randevu Alındı" />
<dx:ListEditItem Text="Randevu Alınmadı" Value="Randevu Alınmadı" />
</Items>
</dx:ASPxComboBox>
</dx:PanelContent>
</PanelCollection>
</dx:ASPxRoundPanel>
</div>
<div style="width: 160px; height: 215px; padding-top: 5px; padding-left: 10px; float: left;">
<dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" AllowCollapsingByHeaderClick="True" HeaderText="Satış" Height="194px" ShowCollapseButton="True" View="GroupBox" Width="160px">
<PanelCollection>
<dx:PanelContent runat="server">
Sonuç<dx:ASPxComboBox ID="cmbHarGirSatSonuc" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="80px">
<Items>
<dx:ListEditItem Text="Satıldı" Value="Satıldı" />
<dx:ListEditItem Text="Satılmadı" Value="Satılmadı" />
<dx:ListEditItem Text="Satış İptal" Value="Satış İptal" />
</Items>
</dx:ASPxComboBox>
Satış Adedi<dx:ASPxTextBox ID="txtHarGirSatAdet" runat="server" Width="30px">
</dx:ASPxTextBox>
Fatura Tarihi<dx:ASPxDateEdit ID="dateHarGirSatFatTar" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="80px">
</dx:ASPxDateEdit>
Teslimat Tarihi<dx:ASPxDateEdit ID="dateHarGirSatTesTar" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="80px">
</dx:ASPxDateEdit>
</dx:PanelContent>
</PanelCollection>
</dx:ASPxRoundPanel>
</div>
</div>
<div style="width: 100%; height: 107px; padding-left: 10px;">
<dx:ASPxRoundPanel ID="roundShowroom0" runat="server" AllowCollapsingByHeaderClick="True" HeaderText="Açıklama" Height="70px" ShowCollapseButton="True" View="GroupBox" Width="670px">
<PanelCollection>
<dx:PanelContent runat="server">
<dx:ASPxMemo ID="txtHarGirAciklama" runat="server" Height="70px" Theme="DevEx" Width="643px">
</dx:ASPxMemo>
</dx:PanelContent>
</PanelCollection>
</dx:ASPxRoundPanel>
</div>
<div style="height: 58px">
<div align="left" style="float:left; width: 103px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
1. Takip Tarihi<dx:ASPxDateEdit ID="dateHarGirTakTar1" runat="server" Enabled="False" Font-Size="XX-Small" Theme="DevEx" Width="100px">
</dx:ASPxDateEdit>
</div>
<div align="left" style="float:left; width: 103px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
2. Takip Tarihi<dx:ASPxDateEdit ID="dateHarGirTakTar2" runat="server" Enabled="False" Font-Size="XX-Small" Theme="DevEx" Width="100px">
</dx:ASPxDateEdit>
</div>
<div align="left" style="float:left; width: 103px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
3. Takip Tarihi<dx:ASPxDateEdit ID="dateHarGirTakTar3" runat="server" Enabled="False" Font-Size="XX-Small" Theme="DevEx" Width="100px">
</dx:ASPxDateEdit>
</div>
<div align="left" style="float:left; width: 103px; height: 45px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
Standart Dışı Takip<dx:ASPxDateEdit ID="dateHarGirStdTar" runat="server" Font-Size="XX-Small" Theme="DevEx" Width="100px">
</dx:ASPxDateEdit>
</div>
</div>
<div style="background-color: #999999; height: 35px;">
<div align="left" style="float:left; width: 82px; height: 35px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
<dx:ASPxButton ID="btnHareketKaydet" runat="server" OnClick="btnHareketKaydet_Click" Text="Kaydet">
<ClientSideEvents Click="function(s, e) {
}" />
</dx:ASPxButton>
</div>
<div align="left" style="float:left; width: 82px; height: 35px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
<dx:ASPxButton ID="btnKapat" runat="server" AutoPostBack="False" Text="Kapat">
<ClientSideEvents Click="function(s, e) {
popupMusteriHareketGiris.Hide()
}" />
</dx:ASPxButton>
</div>
<div align="right" style="float:left; width: 476px; height: 35px; font-family: tahoma; font-size: 12px; color: #313131; padding-left: 10px; padding-top: 5px;">
<asp:Label ID="lblUyari" runat="server" Font-Bold="True" Font-Size="Medium" ForeColor="White" Text=" "></asp:Label>
</div>
</div>
</div>
</dx:PopupControlContentControl>
</ContentCollection>
</dx:ASPxPopupControl>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnYeniHareket" EventName="Click">
</asp:AsyncPostBackTrigger>
</Triggers>
</asp:UpdatePanel>
</div>
</form>
</body>
------------------------------------------------------------------------------------------------------------------------------------------
cs kodlarım
------------------------------------------------------------------------------------------------------------------------------------------
using DevExpress.Web.Data;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace NeskarNet
{
public partial class CRM : System.Web.UI.Page
{
SqlConnection baglanti = new SqlConnection(ConfigurationManager.ConnectionStrings["NeskarNetConnectionString"].ToString());
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnMusteriDegistir_Click(object sender, EventArgs e)
{
{
string ID = gridMusteri.GetRowValues(gridMusteri.FocusedRowIndex, "ID").ToString();
SqlCommand command = new SqlCommand("SELECT [ID], [ADISOYADI], [CEPTEL], [MAIL], [EVTEL], [ADRES] FROM [BDC_MUSTERITAKIP] WHERE ID='" + ID + "'", baglanti);
baglanti.Open();
SqlDataReader rd = command.ExecuteReader();
if (rd.HasRows)
{
while (rd.Read())
{
txtDegMusAdi.Text = rd["ADISOYADI"].ToString();
txtDegMusTel.Text = rd["CEPTEL"].ToString();
txtDegMusEmail.Text = rd["MAIL"].ToString();
txtDegMusMeslek.Text = rd["EVTEL"].ToString();
txtDegMusAdres.Text = rd["ADRES"].ToString();
}
}
baglanti.Close();
}
}
------------------------------------------------------------------------------------------------------------------------------------------
Triggers veya postback kullanınca herhalde sorunun çözülmedi. Malesef başka bir çözüm önerim yok. Daha önceden bu soruna benzer bende yaşadım fakat Triggers ı uygulayınca sorunu çözmüştüm.
Teşekkürler yinede bilgiler için.
Biraz daha araştırayım.
Çözümü bulunca paylaşırsan memnun olurum, bende merak ettim
Merhaba.
Çözümü şu şekilde buldum.
Button autopostback=false
PopupControl 'ü UpdatePanel içine alıp triger ile tetikledim
Yukarıdakiler zaten vardı.
PopupControl tetikleyicisini kaldırdım. Yani PopupElementID boş.
Butonun click olayına aşağıdaki kodu yazdım
protected void btnHareketGiris_Click(object sender, EventArgs e)
{
popupMusteriHareketDegisiklik.ShowOnPageLoad = true;
//kodlarım....
}
şuan hem dolu geliyor hem herhangi bir sayfa yenilemesi yapmıyor.
Teşekkürler, iyi çalışmalar