C#nedir?com Homepage
Forum Home Forum Home > ASP.NET > ASP.NET
  New Posts New Posts RSS Feed - Altsayfadan masterdaki pagedekki timeri çalıştırma
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Altsayfadan masterdaki pagedekki timeri çalıştırma

 Post Reply Post Reply
   

Author
Message
crasus View Drop Down
Groupie
Groupie


Joined: 08 Temmuz 2008
Location: Turkey
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote crasus Quote  Post ReplyReply Direct Link To This Post Topic: Altsayfadan masterdaki pagedekki timeri çalıştırma
    Posted: 22 Mart 2013 at 10:33
Merhaba arkadaşlar

simdi ben bir web sitesinde fancybox iframe ile bir pencere acıp ordan urun ekliyorum sonra sepete ekleye basınca fancybox kapanıyor fakat sıkıntı surda

fancybox kapandıktan sonra masterpagedeki timeri enable yapmama ragmen timerin tick eventi calısmıyor.

Kodlarım

Alt sayfa///

try
 {

sept.Ekle(g_adet, g_urun_adi, g_urun tutar_db);

string jScript = "<script type=\"text/javascript\">\n" +
                                  "parent.$.fancybox.close();\n" +
                                                                  "</script>";
                            RegisterStartupScript("fancybox", jScript);
                             ((Site1)this.Master).guncelle();
}
 catch (Exception EX)
{
lt_uyari.Text = @"<script language='javascript'>alert('Bir hata oluştu.');</script>";
}

/// Master page
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
<asp:Timer ID="t_zaman" Enabled="false" Interval="3000" runat="server" OnTick="t_zaman_Tick"></asp:Timer>
        </ContentTemplate>
                                        </asp:UpdatePanel>



//kod

    public void guncelle()
        {
            t_zaman.Enabled = true;

        }
        protected void t_zaman_Tick(object sender, EventArgs e)
        {
            SepetGetir();
            t_zaman.Enabled = false;
        }







Edited by crasus - 22 Mart 2013 at 10:33
Back to Top
crazzybaron View Drop Down
Senior Member
Senior Member


Joined: 09 Haziran 2010
Status: Offline
Points: 801
Post Options Post Options   Thanks (0) Thanks(0)   Quote crazzybaron Quote  Post ReplyReply Direct Link To This Post Posted: 22 Mart 2013 at 11:15
amacın sayfa yenilenmeden sepette ki ürünleri güncellemek mi?
MVP yolunda.......
Back to Top
crasus View Drop Down
Groupie
Groupie


Joined: 08 Temmuz 2008
Location: Turkey
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote crasus Quote  Post ReplyReply Direct Link To This Post Posted: 22 Mart 2013 at 11:15
evet
Back to Top
crasus View Drop Down
Groupie
Groupie


Joined: 08 Temmuz 2008
Location: Turkey
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote crasus Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mart 2013 at 12:26
....
Back to Top
crazzybaron View Drop Down
Senior Member
Senior Member


Joined: 09 Haziran 2010
Status: Offline
Points: 801
Post Options Post Options   Thanks (0) Thanks(0)   Quote crazzybaron Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mart 2013 at 12:34
timer la olmaz javascriptle veritabanından veri çekmeyi araştır
MVP yolunda.......
Back to Top
 Post Reply Post Reply
  Share Topic   
   


Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.