RadAjaxManager not working Firefox

6 posts, 0 answers
  1. Serdar
    Serdar avatar
    3 posts
    Member since:
    Jun 2012

    Posted 30 Jan 2012 Link to this post

    Hi,
    DotNet version(runtime) v2.0.50727 
    Telerik RadAjax.Net2 version:1.8.4.0 using.
    RadAjaxManager IE9 working in compatibility mode.
    But firefox 9.0.1 not working :(


    <radA:RadAjaxManager ID="RAM" EnableOutsideScripts ="true" EnableAJAX="true" runat="server" OnAjaxRequest="RAM_AjaxRequest">
        <AjaxSettings>
             
            <radA:AjaxSetting AjaxControlID="pnlDersSoruSelector">
                <UpdatedControls>
                    <radA:AjaxUpdatedControl ControlID="divOnlineSinav" LoadingPanelID="loadingSoru" />
                    <radA:AjaxUpdatedControl ControlID="pnlDersSoruSelector" LoadingPanelID="loadingSoruSel" />
                    <radA:AjaxUpdatedControl ControlID="btnSinav" />
                </UpdatedControls>
            </radA:AjaxSetting>
             
            <radA:AjaxSetting AjaxControlID="btnOnceki">
                <UpdatedControls>
                    <radA:AjaxUpdatedControl ControlID="divOnlineSinav" LoadingPanelID="loadingSoru" />
                    <radA:AjaxUpdatedControl ControlID="pnlDersSoruSelector" />
                </UpdatedControls>
            </radA:AjaxSetting>
            <radA:AjaxSetting AjaxControlID="btnSonraki">
                <UpdatedControls>
                    <radA:AjaxUpdatedControl ControlID="divOnlineSinav" LoadingPanelID="loadingSoru" />
                    <radA:AjaxUpdatedControl ControlID="pnlDersSoruSelector" />
                </UpdatedControls>
            </radA:AjaxSetting>
            <radA:AjaxSetting AjaxControlID="divSure">
                <UpdatedControls>
                    <radA:AjaxUpdatedControl ControlID="RAM" />
                     
                </UpdatedControls>
            </radA:AjaxSetting>
            <radA:AjaxSetting AjaxControlID="RAM">
                <UpdatedControls>
                    <radA:AjaxUpdatedControl ControlID="divYanitlar" />
                    <radA:AjaxUpdatedControl ControlID="divYanitlar" />
                </UpdatedControls>
            </radA:AjaxSetting>
        </AjaxSettings>
    </radA:RadAjaxManager>


    function sinaviBitir()
           {
               mins = -1;
               var ajaxPanel = <%= RAM.ClientID %>;
               ajaxPanel.AjaxRequest();
           }
            
           window.attachEvent('onload',function(){initializeTimer();});
             
           function radCloseWindow()
           {  
               var oWnd = window.opener;
               oWnd.refresh();
               window.close();
               return false;
           }

    protected void RAM_AjaxRequest(object sender, AjaxRequestEventArgs e)
       {
           sinaviBitir();
           RAM.ResponseScripts.Add("radCloseWindow()");
       }

  2. Serdar
    Serdar avatar
    3 posts
    Member since:
    Jun 2012

    Posted 31 Jan 2012 Link to this post

    Your think that helps you yet?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Feb 2012 Link to this post

    Hi,

    Could you please elaborate a bit more on what is the excat issue you are facing.

    Does the problem occur in the LoadingPanel positioning or the client scripts are not registering after the Ajax request. Some more information on what exactly the problem is and how it could be replicated will help us proceed with our local tests and do our best to isolate the issue.


    All the best,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Serdar
    Serdar avatar
    3 posts
    Member since:
    Jun 2012

    Posted 01 Feb 2012 Link to this post

    Hi Maria,
    Thank you for you response. :)

    The first page open.
    2.click button,the panel is waiting for loading the image as it is :(

    Problem in rad ajax manager.
    Rad Ajax Manager property in AjaxEnabled="false" changed.No Problem and working in firefox.

    using System;
    using System.Data;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using Telerik.WebControls;
    using System.Net;
    using System.IO;
    using System.Xml;
     
    public partial class DesktopModules_Sinav_OnlineSinavPage : System.Web.UI.Page
    {
        #region Page Properties
     
        private string SinavID
        {
            get { return ViewState["SinavID"] == null ? string.Empty : ViewState["SinavID"].ToString(); }
            set { ViewState["SinavID"] = value; }
        }
     
        public string SinavOgrenciID
        {
            get { return ViewState["SinavOgrenciID"] == null ? string.Empty : ViewState["SinavOgrenciID"].ToString(); }
            set { ViewState["SinavOgrenciID"] = value; }
        }
     
        public string SinavKitapcikID
        {
            get { return ViewState["SinavKitapcikID"] == null ? string.Empty : ViewState["SinavKitapcikID"].ToString(); }
            set { ViewState["SinavKitapcikID"] = value; }
        }
     
        public string SelectedSinavDersID
        {
            get { return Session["SelectedSinavDersID"] != null ? Session["SelectedSinavDersID"].ToString() : string.Empty; }
            set { Session["SelectedSinavDersID"] = value; }
        }
     
        public string SelectedSinavKitapcikSoruID
        {
            get { return ViewState["SelectedSinavKitapcikSoruID"] != null ? ViewState["SelectedSinavKitapcikSoruID"].ToString() : string.Empty; }
            set { ViewState["SelectedSinavKitapcikSoruID"] = value; }
        }
     
        public string OncekiSinavKitapcikSoruID
        {
            get { return Session["OncekiSinavKitapcikSoruID"] != null ? Session["OncekiSinavKitapcikSoruID"].ToString() : string.Empty; }
            set { Session["OncekiSinavKitapcikSoruID"] = value; }
        }
     
        public string SelectedSinavSoruID
        {
            get { return ViewState["SelectedSinavSoruID"] != null ? ViewState["SelectedSinavSoruID"].ToString() : string.Empty; }
            set { ViewState["SelectedSinavSoruID"] = value; }
        }
     
        private System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
     
        public int CevapSikSayisi
        {
            get { return ViewState["_CevapSikSayisi"] == null ? 4 : Convert.ToInt32(ViewState["_CevapSikSayisi"].ToString()); }
            set { ViewState["_CevapSikSayisi"] = value; }
        }
     
        public int SoruSure
        {
            get { return hdnSoruSure.Value == string.Empty ? 0 : Convert.ToInt32(hdnSoruSure.Value); }
            set { hdnSoruSure.Value = value.ToString(); }
        }
     
        public int OncekiSoruSure
        {
            get { return Session["OncekiSoruSure"] == null ? 0 : Convert.ToInt32(Session["OncekiSoruSure"].ToString()); }
            set { Session["OncekiSoruSure"] = value.ToString(); }
        }
     
        private string _tdWidth = "";
     
        public string tdWidth
        {
            get { return _tdWidth; }
            set { _tdWidth = value; }
        }
     
        public int AktifDers
        {
            get
            {
                if (ViewState["AktifDers"] == null) ViewState["AktifDers"] = 0;
                return Convert.ToInt32(ViewState["AktifDers"]);
            }
            set
            {
                ViewState["AktifDers"] = value;
            }
        }
     
        public bool IsDegerlendirildi
        {
            get { return ViewState["IsDegerlendirildi"] != null && Convert.ToBoolean(ViewState["IsDegerlendirildi"]); }
            set { ViewState["IsDegerlendirildi"] = value; }
        }
     
        private string KurumID
        {
            get { return ViewState["KurumID"] == null ? string.Empty : ViewState["KurumID"].ToString(); }
            set { ViewState["KurumID"] = value; }
        }
        #endregion
     
        #region Page Events
     
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
     
            if (Page.IsPostBack) return;
     
            SoruSure = 0;
            OncekiSoruSure = 0;
            SelectedSinavDersID = string.Empty;
            OncekiSinavKitapcikSoruID = string.Empty;
     
            if (Request.QueryString["sid"] != null)
                SinavID = Request.QueryString["sid"];
            if (Request.QueryString["soid"] != null)
                SinavOgrenciID = Request.QueryString["soid"];
            if (!string.IsNullOrEmpty(Request.QueryString["skid"]))
                SinavKitapcikID = Request.QueryString["skid"];
            else
            {
                SinavKitapciklariBLL skbll = new SinavKitapciklariBLL();
                DataSet ds = skbll.Find(SinavID);
                if (ds.Tables.Count > 0)
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        Random r = new Random();
                        int a = r.Next(0, ds.Tables[0].Rows.Count - 1);
     
                        SinavKitapcikID = ds.Tables[0].Rows[a][SinavKitapciklariBLL.DAL.FIELD_SINAVKITAPCIKID].ToString();
     
                        SinavOgrencileriBLL sobll = new SinavOgrencileriBLL();
                        sobll.Get(SinavOgrenciID);
                        sobll.SinavKitapcikID = SinavKitapcikID;
                        sobll.Save();
                    }
                }
            }
     
            IsDegerlendirildi = new SinavOgrencileriBLL().FindIsSinaviCevaplamis(SinavOgrenciID);
     
            if (Request.QueryString["css"] != null)
                CevapSikSayisi = Convert.ToInt32(Request.QueryString["css"]);
     
            sinavDersSoruSelector.SinavKitapcikID = SinavKitapcikID;
            sinavDersSoruSelector.SinavID = SinavID;
            sinavDersSoruSelector.SinavOgrenciID = SinavOgrenciID;
     
            loadSinavDersleri();
            sinavDersSoruSelector.SelectedSinavDersID = SelectedSinavDersID;
            sinavDersSoruSelector.initializeForm();
     
            SelectedSinavDersID = sinavDersSoruSelector.SelectedSinavDersID;
            SelectedSinavKitapcikSoruID = sinavDersSoruSelector.SelectedSinavKitapcikSoruID;
            OncekiSinavKitapcikSoruID = SelectedSinavKitapcikSoruID;
     
            loadSoru();
     
            SinavlarBLL sbll = new SinavlarBLL();
            sbll.Get(SinavID);
     
            hdnSinavSuresi.Value = sbll.SinavSuresi.ToString();
     
            TimeSpan ts = sbll.SinavBitisTarihi.Subtract(DateTime.Now);
     
            if (ts.TotalMinutes < sbll.SinavSuresi && !IsDegerlendirildi)
                hdnSinavSuresi.Value = ts.TotalMinutes.ToString();
     
            if (IsDegerlendirildi)
            {
                pnlYanitlar_Set(false);
                lblKalanSure.Text = sbll.SinavSuresi + ":00";
                lblKalanSureTxt.Text = "OnlineSinav_SinavSuresi";
                tdDersSelAlt.Attributes.Add("class", "DersSoruSelector_Alt_IsDegerlendirildi");
            }
            else
            {
                hdn.Value = "" + (sbll.SinavSuresi * 60);
            }
     
        }
     
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
            {
                #region POSTBACK
                if (Request.QueryString["sid"] != null)
                    SinavID = Request.QueryString["sid"];
                if (Request.QueryString["soid"] != null)
                    SinavOgrenciID = Request.QueryString["soid"];
                if (!string.IsNullOrEmpty(Request.QueryString["skid"]))
                    SinavKitapcikID = Request.QueryString["skid"];
                else
                {
                    SinavKitapciklariBLL skbll = new SinavKitapciklariBLL();
                    DataSet ds = skbll.Find(SinavID);
                    if (ds.Tables.Count > 0)
                    {
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            Random r = new Random();
                            int a = r.Next(0, ds.Tables[0].Rows.Count - 1);
     
                            SinavKitapcikID = ds.Tables[0].Rows[a][SinavKitapciklariBLL.DAL.FIELD_SINAVKITAPCIKID].ToString();
     
                            SinavOgrencileriBLL sobll = new SinavOgrencileriBLL();
                            sobll.Get(SinavOgrenciID);
                            sobll.SinavKitapcikID = SinavKitapcikID;
                            sobll.Save();
                        }
                    }
                }
     
                if (Request.QueryString["css"] != null)
                    CevapSikSayisi = Convert.ToInt32(Request.QueryString["css"]);
     
                sinavDersSoruSelector.SinavKitapcikID = SinavKitapcikID;
                sinavDersSoruSelector.SinavID = SinavID;
                sinavDersSoruSelector.SinavOgrenciID = SinavOgrenciID;
     
                loadSinavDersleri();
                sinavDersSoruSelector.SelectedSinavKitapcikSoruID = SelectedSinavKitapcikSoruID;
                 
                sinavDersSoruSelector.initializeForm();
     
                SelectedSinavDersID = sinavDersSoruSelector.SelectedSinavDersID;
                SelectedSinavKitapcikSoruID = sinavDersSoruSelector.SelectedSinavKitapcikSoruID;
                #endregion
            }
            else
            {
                IsDegerlendirildi = new SinavOgrencileriBLL().FindIsSinaviCevaplamis(SinavOgrenciID);
     
                SinavlarBLL sinavlarBLL = new SinavlarBLL();
                sinavlarBLL.Get(SinavID);
     
                OkulBLL okulBLL = new OkulBLL();
                okulBLL.ConvertToEntity(OkulBLL.Get(sinavlarBLL.OkulID));
                KurumID = okulBLL.KurumID;
                Image_UploadOnlineSinavLogo.Visible = false;
                string kurumOnlineSinavJpg = @"~/Kaynaklar/OnlineSinavLogo_" + KurumID + ".jpg";
                if (File.Exists(Server.MapPath(kurumOnlineSinavJpg)))
                {
                    Image_UploadOnlineSinavLogo.Visible = true;
                    Image_UploadOnlineSinavLogo.ImageUrl = kurumOnlineSinavJpg;
                }
     
            }
            
        }
     
        public void sinavSoruSelector_Click(object sender, DesktopModules_Sinav_SinavDersSoruSelector.SinavSoruSelectorEventArgs e)
        {
            SelectedSinavDersID = sinavDersSoruSelector.SelectedSinavDersID;
            SelectedSinavKitapcikSoruID = e.SinavKitapcikSoruID;
     
            loadSoru();
     
            if (phDersler.FindControl("btnDers" + AktifDers) == null) return;
            lblBolum.Text = ((bButton)phDersler.FindControl("btnDers" + AktifDers)).Text;
            lblBolum.Value = sinavDersSoruSelector.SelectedSinavDersID;
        }
     
        protected void dersBtn_Click(object sender, EventArgs e)
        {
            bButton btn = sender as bButton;
     
            if (btn != null) SelectedSinavDersID = btn.Value;
            sinavDersSoruSelector.SelectedSinavDersID = SelectedSinavDersID;
            sinavDersSoruSelector.initializeForm();
            SelectedSinavDersID = sinavDersSoruSelector.SelectedSinavDersID;
             
     
            SelectedSinavKitapcikSoruID = sinavDersSoruSelector.SelectedSinavKitapcikSoruID;
     
            if (btn != null)
            {
                btn.CssClass = "SelectedDersButton";
     
                for (int i = 0; i < phDersler.Controls.Count; i++)
                {
                    if (btn.ID != (phDersler.Controls[i]).ID)
                    {
                        ((bButton)phDersler.Controls[i]).CssClass = "DersButton";
                    }
                }
                lblBolum.Text = btn.Text;
            }
            lblBolum.Value = SelectedSinavDersID;
     
            if (btn != null) AktifDers = AktifDers = Convert.ToInt32(btn.ID.Substring(btn.ID.IndexOf("btnDers") + 7));
            loadSoru();
        }
     
        protected void cevapKaydet_Click(object sender, EventArgs e)
        {
            bool secili = Convert.ToBoolean(Convert.ToInt32(((bButton)sender).Attributes["Secili"]));
     
            SinavOgrenciSoruCevaplariBLL soscbll = new SinavOgrenciSoruCevaplariBLL();
             
            SelectedSinavSoruID = ((bButton)sender).Attributes[SinavSorulariBLL.DAL.FIELD_SINAVSORUID];
     
            if (secili)
            {
     
                //silme işlemi
                if (!soscbll.DeleteBySinavOgrenciIDSinavSoruID(SinavOgrenciID, SelectedSinavSoruID))
                {
                    //mesaj
                }
            }
            else
            {
                //update veya insert
                soscbll.SinavOgrenciSoruCevapID = string.Empty;
                soscbll.AldigiPuan = 0;
                soscbll.IsDogru = false;
                soscbll.SinavKitapcikSoruCevapSiraID = ((bButton)sender).Value;
                soscbll.SinavOgrenciID = SinavOgrenciID;
                soscbll.SinavSoruID = SelectedSinavSoruID;
                soscbll.Sure = 0;
                //soscbll.OgrenciYaniti = enc.GetBytes(txtOgrenciCevabi.Text);
                try
                {
                    soscbll.SaveForOnlineSinav();
                }
                catch(Exception ex)
                {
                    RAM.ResponseScripts.Add(new bMessageBox(this).getInformationMessage(new ExceptionManager(ex).Message));
                }
     
            }
     
            SelectedSinavKitapcikSoruID = ((bButton)sender).Attributes[SinavKitapcikSorulariBLL.DAL.FIELD_SINAVKITAPCIKSORUID];
            loadSoru();
        }
     
        protected void btnOncekiDers_Click(object sender, EventArgs e)
        {
            int onceki = AktifDers - 1;
     
            if (onceki != 0)
            {
                bButton btn = (bButton)phDersler.FindControl("btnDers" + onceki);
                if (btn != null)
                {
                    SelectedSinavDersID = btn.Value;
                    sinavDersSoruSelector.SelectedSinavDersID = SelectedSinavDersID;
                    sinavDersSoruSelector.initializeForm();
     
                    SelectedSinavKitapcikSoruID = sinavDersSoruSelector.SelectedSinavKitapcikSoruID;
                    loadSoru();
     
                    ((bButton)phDersler.FindControl("btnDers" + AktifDers)).CssClass = "DersButton";
                    btn.CssClass = "SelectedDersButton";
                    AktifDers = onceki;
                    lblBolum.Text = ((bButton)phDersler.FindControl("btnDers" + AktifDers)).Text;
                }
            }
            else { loadSoru(); }
        }
     
        protected void btnSonrakiDers_Click(object sender, EventArgs e)
        {
            int sonraki = AktifDers + 1;
     
            bButton btn = (bButton)phDersler.FindControl("btnDers" + sonraki);
            if (btn != null)
            {
                SelectedSinavDersID = btn.Value;
                sinavDersSoruSelector.SelectedSinavDersID = SelectedSinavDersID;
                sinavDersSoruSelector.initializeForm();
     
                SelectedSinavKitapcikSoruID = sinavDersSoruSelector.SelectedSinavKitapcikSoruID;
                loadSoru();
     
                ((bButton)phDersler.FindControl("btnDers" + AktifDers)).CssClass = "DersButton";
                btn.CssClass = "SelectedDersButton";
                AktifDers = sonraki;
                lblBolum.Text = ((bButton)phDersler.FindControl("btnDers" + AktifDers)).Text;
            }
            else { loadSoru(); lblBolum.Text = ((bButton)phDersler.FindControl("btnDers" + AktifDers)).Text; }
        }
     
        protected void RAM_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            sinaviBitir();
            RAM.ResponseScripts.Add("radCloseWindow()");
        }
        #endregion
     
        #region Page Methods
     
        private void loadSinavDersleri()
        {
            SinavDersleriBLL sdbll = new SinavDersleriBLL();
     
            DataSet ds = sdbll.Find_KayitliOlanlarBySinavID(SinavID);
     
            if (ds.Tables.Count <= 0) return;
            bButton btn;
     
            phDersler.Controls.Clear();
            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
     
                btn = new bButton();
                btn.Text = ds.Tables[0].Rows[i][DersBLL.DAL.FIELD_DERSADI].ToString();
                btn.ToolTip = ds.Tables[0].Rows[i][DersBLL.DAL.FIELD_DERSADI].ToString();
                btn.Value = ds.Tables[0].Rows[i][SinavDersleriBLL.DAL.FIELD_SINAVDERSID].ToString();
                btn.CssClass = "DersButton";
                btn.ID = "btnDers" + (i + 1);
     
                if (i != 0)
                    btn.Attributes.Add("OncekiSinavDersID", ds.Tables[0].Rows[i - 1][SinavDersleriBLL.DAL.FIELD_SINAVDERSID].ToString());
                else
                    btn.Attributes.Add("OncekiSinavDersID", string.Empty);
     
                if (i != ds.Tables[0].Rows.Count - 1)
                    btn.Attributes.Add("SonrakiSinavDersID", ds.Tables[0].Rows[i + 1][SinavDersleriBLL.DAL.FIELD_SINAVDERSID].ToString());
                else
                    btn.Attributes.Add("SonrakiSinavDersID", string.Empty);
     
                btn.Click += dersBtn_Click;
     
                if (i == 0)
                {
                    if (SelectedSinavDersID == string.Empty)
                    {
                        SelectedSinavDersID = btn.Value;
     
                    }
     
                    if (AktifDers == 0)
                    {
                        AktifDers = 1;
                        lblBolum.Text = ds.Tables[0].Rows[i][DersBLL.DAL.FIELD_DERSADI].ToString();
                    }
                     
                    btn.CssClass = "SelectedDersButton";
                }
                phDersler.Controls.Add(btn);
     
     
                RAM.AjaxSettings.AddAjaxSetting(divSoruSelector, divOnlineSinav, loadingSoru);
                RAM.AjaxSettings.AddAjaxSetting(divSoruSelector, btnSinav);
                RAM.AjaxSettings.AddAjaxSetting(divSoruSelector, divSoruSelector);
                RAM.AjaxSettings.AddAjaxSetting(divSoruSelector, divSure);
            }
        }
     
        private void loadSoru()
        {
            #region LoadSoru
            SinavlarBLL sbll = new SinavlarBLL();
            sbll.Get(SinavID);
     
            SinavKitapcikSorulariBLL sksbll = new SinavKitapcikSorulariBLL();
            sksbll.Get(SelectedSinavKitapcikSoruID);
     
            SinavSorulariBLL ssbll = new SinavSorulariBLL();
            ssbll.Get(sksbll.SinavSoruID);
     
            SinavOgrenciSoruCevaplariBLL sosc = new SinavOgrenciSoruCevaplariBLL();
     
            switch (sbll.SinavTurID)
            {
                case SinavTurleri.YAZILI_IO:
                case SinavTurleri.YAZILI_LISE:
                    if (OncekiSinavKitapcikSoruID != SelectedSinavKitapcikSoruID)
                    {
                        sosc.GetBy_SinavKitapcikSoruIDSinavOgrenciID(OncekiSinavKitapcikSoruID, SinavOgrenciID);
     
                        if (sosc.SinavOgrenciSoruCevapID == string.Empty)
                        {
                            SinavKitapcikSorulariBLL sksbll2 = new SinavKitapcikSorulariBLL();
                            sksbll2.Get(OncekiSinavKitapcikSoruID);
     
                            sosc.SinavSoruID = sksbll2.SinavSoruID;
                            sosc.SinavOgrenciID = SinavOgrenciID;
                        }
     
                        sosc.AldigiPuan = 0;
                        sosc.Sure = SoruSure - OncekiSoruSure;
                        sosc.OgrenciYaniti = enc.GetBytes(txtOgrenciCevabi.Text);
                        OncekiSoruSure = SoruSure;
     
                        if (!IsDegerlendirildi)
                            sosc.SaveForOnlineSinav();
     
                        OncekiSinavKitapcikSoruID = SelectedSinavKitapcikSoruID;
                    }
     
                    break;
                default:
                    if (OncekiSoruSure != SoruSure || OncekiSinavKitapcikSoruID != SelectedSinavKitapcikSoruID)
                    {
                        sosc.GetBy_SinavKitapcikSoruIDSinavOgrenciID(OncekiSinavKitapcikSoruID, SinavOgrenciID);
     
                        if (sosc.SinavOgrenciSoruCevapID == string.Empty)
                        {
                            SinavKitapcikSorulariBLL sksbll2 = new SinavKitapcikSorulariBLL();
                            sksbll2.Get(OncekiSinavKitapcikSoruID);
     
                            sosc.SinavSoruID = sksbll2.SinavSoruID;
                            sosc.SinavOgrenciID = SinavOgrenciID;
                        }
     
                        sosc.AldigiPuan = 0;
                        sosc.Sure = SoruSure - OncekiSoruSure;
                        sosc.OgrenciYaniti = enc.GetBytes(txtOgrenciCevabi.Text);
                        OncekiSoruSure = SoruSure;
     
                        if (!IsDegerlendirildi)
                            sosc.SaveForOnlineSinav();
     
                        OncekiSinavKitapcikSoruID = SelectedSinavKitapcikSoruID;
                    }
                    break;
            }
     
            switch (sbll.SinavTurID)
            {
                case SinavTurleri.YAZILI_IO:
                case SinavTurleri.YAZILI_LISE:
                    sosc = new SinavOgrenciSoruCevaplariBLL();
                    sosc.GetBy_SinavKitapcikSoruIDSinavOgrenciID(OncekiSinavKitapcikSoruID, SinavOgrenciID);
                    txtOgrenciCevabi.Text = sosc.OgrenciYaniti != null ? enc.GetString(sosc.OgrenciYaniti) : string.Empty;
                    break;
                default:
                    break;
            }
            #endregion
             
            #region Vitamin       
            bool isVitaminEnable = false;
            DataSet ds2 = new SorularBLL().VitaminKazanimlari_Find(ssbll.SoruID);
            for (int i = 0; i < ds2.Tables[0].Rows.Count; i++)
            {
                string vitaminKazanimID = ds2.Tables[0].Rows[i][SorularBLL.DAL.SP_FIELD_VITAMINKAZANIMKODU].ToString();
     
                #region Check Vitamin Kazanim
                string vurl = Vitamin.vitaminKazanimCheckURL + vitaminKazanimID;
                WebRequest request = WebRequest.Create(vurl);
                request.Credentials = CredentialCache.DefaultCredentials;
                WebResponse response = request.GetResponse();
                StreamReader reader = new StreamReader(response.GetResponseStream());
                string responseFromServer = reader.ReadToEnd();
     
                XmlDocument doc = new System.Xml.XmlDocument();
                doc.LoadXml(responseFromServer);
                XmlNodeList newXMLNodes = doc.SelectNodes("/result/curr");
     
                foreach (XmlNode newXMLNode in newXMLNodes)
                {
                    string name = newXMLNode.SelectSingleNode("name").InnerText;
                    if (name != "Objective code is undefined")
                    {
                        isVitaminEnable = true;
                        break;
                    }
                }
                #endregion
            }
            if (isVitaminEnable)
                btnSinav.Style[HtmlTextWriterStyle.Display] = "block";
            else
                btnSinav.Style[HtmlTextWriterStyle.Display] = "none";
            #endregion
     
     
            SelectedSinavSoruID = ssbll.SinavSoruID;
     
            SoruIcerikleriBLL soruIcerikleriBll = new SoruIcerikleriBLL();
            SorularBLL sorubll = new SorularBLL();
            soruIcerikleriBll.get(ssbll.SoruID);
            sorubll.GetByID(ssbll.SoruID);
     
            ((HtmlTableCell)(divSoru.FindControl("divShowSoru")).FindControl("tdSoruNo")).InnerText = ResourceManager.GetString("OnlineSinav_Soru") + " " + sksbll.Sira;
            string html;
            if (soruIcerikleriBll.SoruIcerik != null)
            {
                ((HtmlTableCell)(divSoru.FindControl("divShowSoru")).FindControl("tdSoruMetni")).InnerHtml = enc.GetString(soruIcerikleriBll.SoruIcerik);
     
                html = enc.GetString(soruIcerikleriBll.SoruIcerik);
                html = html.Replace("[ServerDownloadPath]/DownloadImage.Aspx",
                                    base.Page.Request.Url.Scheme + "://" + base.Page.Request.Url.Authority + base.Page.ResolveUrl("~/DesktopModules/SB/DownloadImage.Aspx"));
     
                ((HtmlTableCell)(divSoru.FindControl("divShowSoru")).FindControl("tdSoruMetni")).InnerHtml = html;
            }
     
            switch (sbll.SinavTurID)
            {
                case SinavTurleri.YAZILI_IO:
                case SinavTurleri.YAZILI_LISE:
                    pnlYanitlar.Style["display"] = "none";
                    PanelKlasikSinav.Style["display"] = "block";
                    break;
                default:
                    PanelKlasikSinav.Style["display"] = "none";
                    ((divSoru.FindControl("divShowSoru")).FindControl("PanelCevapSiklariAltAlta")).Visible = false;
                    ((divSoru.FindControl("divShowSoru")).FindControl("PanelCevapSiklariIkili")).Visible = false;
                    ((divSoru.FindControl("divShowSoru")).FindControl("PanelCevapSiklariYanYana")).Visible = false;
                    string cevaplarObjectName = "tdCevapAltAlta";
                    switch (sorubll.CevapYerlesimSekili)
                    {
                        case CevapYerlesimSekilleri.AyriSatirlarda:
                            ((divSoru.FindControl("divShowSoru")).FindControl("PanelCevapSiklariAltAlta")).Visible = true;
                            cevaplarObjectName = "tdCevapAltAlta";
                            break;
                        case CevapYerlesimSekilleri.IkiliGruplama:
                            ((divSoru.FindControl("divShowSoru")).FindControl("PanelCevapSiklariIkili")).Visible = true;
                            cevaplarObjectName = "tdCevapIkili";
                            break;
                        case CevapYerlesimSekilleri.TekSatirda:
                            ((divSoru.FindControl("divShowSoru")).FindControl("PanelCevapSiklariYanYana")).Visible = true;
                            tdWidth = (CevapSikSayisi == 5 ? "64px" : "85px");
                            cevaplarObjectName = "tdCevapYanYana";
                            for (int i = 1; i <= 5; i++)
                                ((HtmlTableCell)(divSoru.FindControl("divShowSoru")).FindControl(cevaplarObjectName + i)).Style.Add(HtmlTextWriterStyle.Width, tdWidth);
                            break;
                    }
                    SinavKitapcikSoruCevapSiralariBLL soruCevaplariBll = new SinavKitapcikSoruCevapSiralariBLL();
                    DataSet ds = soruCevaplariBll.Find_BySivavKitapcikSoruIDSinavOgrenciID(sksbll.SinavKitapcikSoruID, SinavOgrenciID);
     
                    object[] harfler = new object[5];
                    harfler[0] = 'A';
                    harfler[1] = 'B';
                    harfler[2] = 'C';
                    harfler[3] = 'D';
                    harfler[4] = 'E';
     
                    int yanlisDogruBos = 2;// Yanlis = 0, Dogru = 1, Bos = 2
                    for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                    {
                        string fldName = cevaplarObjectName + (i + 1);
                        if (ds.Tables[0].Rows[i][SoruCevaplariBLL.DAL.FIELD_CEVAPICERIK] != DBNull.Value)
                        {
                            html = enc.GetString((byte[])ds.Tables[0].Rows[i][SoruCevaplariBLL.DAL.FIELD_CEVAPICERIK]);
                            html = html.Replace("[ServerDownloadPath]/DownloadImage.Aspx",
                                                base.Page.Request.Url.Scheme +
                                                "://" +
                                                base.Page.Request.Url.Authority +
                                                base.Page.ResolveUrl("~/DesktopModules/SB/DownloadImage.Aspx"));
                            ((HtmlTableCell)(divSoru.FindControl("divShowSoru")).FindControl(fldName)).InnerHtml = html;
                        }
     
                        ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).Value = ds.Tables[0].Rows[i][SinavKitapcikSoruCevapSiralariBLL.DAL.FIELD_SINAVKITAPCIKSORUCEVAPSIRAID].ToString();
                        ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).Attributes.Add("Harf", harfler[i].ToString());
                        ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).Attributes.Add("Secili", ds.Tables[0].Rows[i][SinavKitapcikSoruCevapSiralariBLL.DAL.SP_FIELD_SECILI].ToString());
                        ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).Attributes.Add(SinavKitapcikSorulariBLL.DAL.FIELD_SINAVKITAPCIKSORUID, ds.Tables[0].Rows[i][SinavKitapcikSorulariBLL.DAL.FIELD_SINAVKITAPCIKSORUID].ToString());
                        ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).Attributes.Add(SinavSorulariBLL.DAL.FIELD_SINAVSORUID, ssbll.SinavSoruID);
     
                        if (!IsDegerlendirildi)
                        {
                            if (!Convert.ToBoolean(Convert.ToInt32(ds.Tables[0].Rows[i][SinavKitapcikSoruCevapSiralariBLL.DAL.SP_FIELD_SECILI].ToString())))
                                ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).CssClass = harfler[i] + "_Sikki_Gray";
                            else ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).CssClass = harfler[i] + "_Sikki_Blue";
                        }
                        else
                        {
     
                            if (Convert.ToBoolean(Convert.ToInt32(ds.Tables[0].Rows[i][SinavKitapcikSoruCevapSiralariBLL.DAL.SP_FIELD_SECILI].ToString())))
                            {
                                if (Convert.ToBoolean(Convert.ToInt32(ds.Tables[0].Rows[i][SinavKitapcikSoruCevapSiralariBLL.DAL.SP_FIELD_ISDOGRUCEVAPSIKKI].ToString())))
                                {
                                    ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).CssClass = harfler[i] + "_Sikki_Green";
     
                                    yanlisDogruBos = 1;
                                }
                                else
                                {
                                    ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).CssClass = harfler[i] + "_Sikki_Red";
     
                                    yanlisDogruBos = 0;
                                }
                            }
                            else
                            {
     
                                if (Convert.ToBoolean(Convert.ToInt32(ds.Tables[0].Rows[i][SinavKitapcikSoruCevapSiralariBLL.DAL.SP_FIELD_ISDOGRUCEVAPSIKKI].ToString())))
                                {
                                    ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).CssClass = harfler[i] + "_Sikki_Green";
                                }
                                else
                                {
                                    ((bButton)divYanitlar.FindControl("btn" + harfler[i] + "Sikki")).CssClass = harfler[i] + "_Sikki_Gray";
                                }
                            }
                        }
                        RAM.AjaxSettings.AddAjaxSetting(divYanitlar, divYanitlar);
                        RAM.AjaxSettings.AddAjaxSetting(divYanitlar, divOnlineSinav, loadingSoru);
                        RAM.AjaxSettings.AddAjaxSetting(divYanitlar, pnlDersSoruSelector);
                        RAM.AjaxSettings.AddAjaxSetting(divYanitlar, lblKalanSure);
                    }
     
                    if (IsDegerlendirildi)
                    {
                        lblDurum.Visible = true;
                        btnSinav.Visible = true;
                        string url = "../../" + new Redirect().URLbWindow(Redirect.SoruBankasi.Menu_SB_Vitamin) + "&ID=" + ssbll.SoruID + "&SKSID=" + SelectedSinavKitapcikSoruID;
                        btnSinav.Attributes.Add("onclick", "return ShowWindow('" + url + "');");
     
                        switch (yanlisDogruBos)
                        {
                            case 0:
                                lblDurum.CssClass = "DurumYanlis";
                                lblDurum.Text = ResourceManager.GetString("OnlineSinav_Yanlis");
                                break;
                            case 1:
                                lblDurum.CssClass = "DurumDogru";
                                lblDurum.Text = ResourceManager.GetString("OnlineSinav_Dogru");
                                break;
                            case 2:
                                lblDurum.CssClass = "DurumBos";
                                lblDurum.Text = ResourceManager.GetString("OnlineSinav_Bos");
                                break;
                        }
                    }
                    else
                    {
                        lblDurum.Visible = false;
                    }
                    break;
            }
        }
     
        private void sinaviBitir()
        {
            SinavlarBLL sbll = new SinavlarBLL();
            sbll.Get(SinavID);
            bool hata = false;
            try
            {           
                sbll.SaveOnlineSinaviBitir(SinavOgrenciID);
     
                if (((CurrentUser)Session[CurrentUser.SESSION_KEY]).AktifBilsaProgramID == BilsaProgramlari.KisitliWebModulu)
                {               
                    new SinavHesaplamaBLL().SinavHesapla(SinavID, false);
                }
            }
            catch
            {
                hata = true;
            }
     
            if (hata) return;       
            pnlYanitlar_Set(false);
            lblKalanSure.Text = sbll.SinavSuresi + ":00";
            lblKalanSureTxt.Text = "OnlineSinav_SinavSuresi";
            sinaviBitirTD.Attributes["onclick"] = string.Empty;
        }
     
        private void pnlYanitlar_Set(bool value)
        {
            btnASikki.Enabled =
            btnBSikki.Enabled =
            btnCSikki.Enabled =
            btnDSikki.Enabled =
            btnESikki.Enabled = value;
        }
     
        #endregion
     
    }

    <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Sinav.master" Inherits="DesktopModules_Sinav_OnlineSinavPage"
        CodeBehind="OnlineSinav.aspx.cs" %>
     
    <%@ Register Assembly="A.Web.ToolboxControls" Namespace="A.Web.ToolboxControls.Component"
        TagPrefix="bls" %>
    <%@ Register Src="SinavDersSoruSelector.ascx" TagPrefix="uc1" TagName="SinavDersSoruSelector" %>
    <%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="C" runat="server">
        <table id="maintable" width="100%" border="0" style="background-color: Black;" cellspacing="0"
            cellpadding="0">
            <tr>
                <td align="center" valign="top">
                    <div style="width: 1024px; height: 740px; background-color: White" id="divOnlineSinav"
                        runat="server">
                        <bls:bWindow ID="BWindow" runat="server" />
                        <table style="width: 100%; background-color: White" cellspacing="0" cellpadding="0">
                            <colgroup>
                                <col width="60%" />
                                <col width="40%" />
                            </colgroup>
                            <tr>
                                <td style="vertical-align: top;">
                                    <table class="mainTable" style="width: 100%; margin-left: 2%;" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="SoruMain_Ust">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="SoruMain_Orta" style="vertical-align: bottom;">
                                                <bls:bLoadingPanel ID="loadingSoru" runat="server" Transparency="50" />
                                                <asp:Panel ID="pnlSoru" runat="server" Style="height: 100%">
                                                    <div id="divSoru" style="height: 100%; margin-left: 60px;" runat="server">
                                                        <table class="mainTable" style="width: 100%; height: 100%;">
                                                            <tr>
                                                                <td style="vertical-align: top;">
                                                                    <div style="width: 500px; height: 430px; overflow-x: auto; overflow-y: visible;"
                                                                        id="divShowSoru" runat="server">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:HiddenField ID="hdnSinavKitapcikSoruID" runat="server" Value='<%# Eval("SinavKitapcikSoruID") %>' />
                                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                                        <colgroup>
                                                                                            <col width="20px" />
                                                                                            <col width="360px" />
                                                                                        </colgroup>
                                                                                        <tr>
                                                                                            <td id="tdSoruNo" runat="server" enableviewstate="true" colspan="2" class="SoruNumarasi"
                                                                                                valign="top" align="left">
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td style="width: 20px;" class="mtd" valign="top">
                                                                                            </td>
                                                                                            <td id="tdSoruMetni" class="std" style="width: 360px" runat="server" enableviewstate="true">
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                  
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2" style="text-align: left;">
                                                                                                <asp:Panel ID="PanelCevapSiklariAltAlta" EnableViewState="false" runat="server" Visible="false">
                                                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                                                        <colgroup>
                                                                                                            <col width="20px" />
                                                                                                            <col width="360px" />
                                                                                                        </colgroup>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    A) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td class="std" id="tdCevapAltAlta1" align="left" runat="server">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    B) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td class="std" id="tdCevapAltAlta2" align="left" runat="server">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    C) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td class="std" id="tdCevapAltAlta3" align="left" runat="server">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    D) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td class="std" id="tdCevapAltAlta4" align="left" runat="server">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <% if (CevapSikSayisi == 5)
                                                                                                           { %>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    E) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td class="std" id="tdCevapAltAlta5" align="left" runat="server">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <%} %>
                                                                                                    </table>
                                                                                                </asp:Panel>
                                                                                                <asp:Panel ID="PanelCevapSiklariIkili" runat="server" Visible="false">
                                                                                                    <table border="0">
                                                                                                        <colgroup>
                                                                                                            <col width="20px" />
                                                                                                            <col width="170px" />
                                                                                                            <col width="20px" />
                                                                                                            <col width="170px" />
                                                                                                        </colgroup>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    A) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td style="width: 170px" class="std" id="tdCevapIkili1" align="left" runat="server">
                                                                                                            </td>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    B) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td style="width: 170px" class="std" id="tdCevapIkili2" align="left" runat="server">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    C) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td style="width: 170px" class="std" id="tdCevapIkili3" align="left" runat="server">
                                                                                                            </td>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    D) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td style="width: 170px" class="std" id="tdCevapIkili4" align="left" runat="server">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <% if (CevapSikSayisi == 5)
                                                                                                           { %>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    E) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td style="width: 170px" class="std" align="left" id="tdCevapIkili5" runat="server">
                                                                                                            </td>
                                                                                                            <td>
                                                                                                            </td>
                                                                                                            <td>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <%} %>
                                                                                                    </table>
                                                                                                </asp:Panel>
                                                                                                <asp:Panel ID="PanelCevapSiklariYanYana" runat="server" Visible="false">
                                                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                                                        <colgroup>
                                                                                                            <col width="20px" />
                                                                                                            <col />
                                                                                                            <col width="20px" />
                                                                                                            <col />
                                                                                                            <col width="20px" />
                                                                                                        </colgroup>
                                                                                                        <tr>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    A) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td id="tdCevapYanYana1" class="std" runat="server">
                                                                                                            </td>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    B) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td id="tdCevapYanYana2" class="std" runat="server">
                                                                                                            </td>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    C) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td id="tdCevapYanYana3" class="std" runat="server">
                                                                                                            </td>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    D) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td id="tdCevapYanYana4" class="std" runat="server">
                                                                                                            </td>
                                                                                                            <% if (CevapSikSayisi == 5)
                                                                                                               { %>
                                                                                                            <td class="mtd">
                                                                                                                <p style='margin: 0cm; margin-bottom: .0001pt; text-indent: 0cm'>
                                                                                                                    E) 
                                                                                                                </p>
                                                                                                            </td>
                                                                                                            <td id="tdCevapYanYana5" class="std" runat="server">
                                                                                                            </td>
                                                                                                            <%} %>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </asp:Panel>
                                                                                                <asp:Panel ID="PanelKlasikSinav" runat="server" Visible="true" EnableViewState="false"
                                                                                                    Style="display: none;">
                                                                                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <bls:bTextBox ID="txtOgrenciCevabi" runat="server" Rows="3" TextMode="MultiLine"
                                                                                                                    Width="100%" EnableViewState="false" AutoPostBack="false"></bls:bTextBox>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                  
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                        <br />
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="SoruMain_Alt" style="vertical-align: top;">
                                                <asp:Panel ID="pnlYanitlar" runat="server">
                                                    <div style="width: 420px; height: 200px; margin-left: 20%;" id="divYanitlar" runat="server">
                                                        <table style="width: 100%;">
                                                            <tr>
                                                                <td>
                                                                    <bls:bButton ID="btnASikki" runat="server" OnClick="cevapKaydet_Click" />
                                                                </td>
                                                                <td>
                                                                    <bls:bButton ID="btnBSikki" runat="server" OnClick="cevapKaydet_Click" />
                                                                </td>
                                                                <td>
                                                                    <bls:bButton ID="btnCSikki" runat="server" OnClick="cevapKaydet_Click" />
                                                                </td>
                                                                <td>
                                                                    <bls:bButton ID="btnDSikki" runat="server" OnClick="cevapKaydet_Click" />
                                                                </td>
                                                                <% if (CevapSikSayisi == 5)
                                                                   { %>
                                                                <td>
                                                                    <bls:bButton ID="btnESikki" runat="server" OnClick="cevapKaydet_Click" />
                                                                </td>
                                                                <%} %>
                                                            </tr>
                                                            <tr>
                                                                <td align="left">
                                                                    <bls:bLabel ID="lblDurum" runat="server" />
                                                                </td>
                                                                <td colspan="3" align="left">
                                                                    <bls:bHyperLink ID="btnSinav" runat="server" Style="color: blue; cursor: hand;" Text="Vitamin Soru Anlatımı"
                                                                        Visible="false" ImageUrl="~/images/vitamin.png" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="vertical-align: top;">
                                    <div style="margin-top: 20px;">
                                        <table class="mainTable" style="width: 100%;" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="DersSoruSelector_Ust">
                                                    <bls:bLoadingPanel ID="loadingSoruSel" runat="server" />
                                                    <asp:Panel ID="pnlDersSoruSelector" runat="server" Style="height: 100%;">
                                                        <table border="0">
                                                            <tr>
                                                                <td>
                                                                    <bls:bLabel ID="lblDersler" runat="server" Text="SinavDersSelector_Dersler" CssClass="DersSoruSelectorLbl" />
                                                                    <hr />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <div id="divDersler" runat="server" style="width: 280px; height: 100px; vertical-align: top;
                                                                        overflow-y: auto; overflow-x: auto;">
                                                                        <asp:Panel ID="phDersler" runat="server" />
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <div id="divSoruSelector" runat="server" style="height: 360px; vertical-align: top;">
                                                                        <uc1:SinavDersSoruSelector ID="sinavDersSoruSelector" runat="server" OnClick="sinavSoruSelector_Click" />
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center">
                                                                    <bls:bLabel ID="lblBolumTxt" runat="server" Text="SinavDersSoruSelector_Bolum" CssClass="BolumLblTxt" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center">
                                                                    <div id="divBolum" runat="server">
                                                                        <bls:bButton ID="btnOnceki" runat="server" CssClass="LeftButton" OnClick="btnOncekiDers_Click" />
                                                                        <bls:bLabel ID="lblBolum" runat="server" CssClass="BolumLbl" />
                                                                        <bls:bButton ID="btnSonraki" runat="server" CssClass="RightButton" OnClick="btnSonrakiDers_Click" />
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="DersSoruSelector_Alt" id="tdDersSelAlt" runat="server">
                                                    <div id="divSure" runat="server">
                                                        <table style="width: 100%; height: 100%; margin-left: 10px; margin-top: 10px;">
                                                            <colgroup>
                                                                <col width="15%" />
                                                                <col width="22%" />
                                                                <col width="10%" />
                                                                <col width="23%" />
                                                            </colgroup>
                                                            <tr>
                                                                <td class="DersSoru_BigClock">
                                                                </td>
                                                                <td style="vertical-align: top;">
                                                                    <bls:bLabel ID="lblKalanSureTxt" runat="server" Text="OnlineSinav_KalanSure" CssClass="KalanSureLblTxt" /><br />
                                                                    <bls:bLabel ID="lblKalanSure" runat="server" CssClass="KalanSureLbl" Width="68%" />
                                                                </td>
                                                                <td class="DersSoru_SinaviBitir" runat="server" id="sinaviBitirTD" onclick="sinaviBitir();">
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" valign="top" colspan="2">
                                    <asp:Image ID="Image_UploadOnlineSinavLogo" runat="server" Height="100px" ImageAlign="Top"
                                        Width="900px" /><br />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="hdn" runat="server" />
        <asp:HiddenField ID="hdnSoruSure" runat="server" />
        <asp:HiddenField ID="hdnSinavSuresi" runat="server" Value="00" />
        <script type="text/javascript">
            
            var message='<%=K12MetaKDS.GNL.Business.ResourceManager.GetString("OnlineSinav_SagTikCalismamaktadir")%>'
     
            ///////////////////////////////////
            function clickIE4(){
            if (event.button==2){
            alert(message);
            return false;
            }
            }
     
            function clickNS4(e){
            if (document.layers||document.getElementById&&!document.all){
            if (e.which==2||e.which==3){
            alert(message);
            return false;
            }
            }
            }
     
            if (document.layers){
            document.captureEvents(Event.MOUSEDOWN);
            document.onmousedown=clickNS4;
            }
            else if (document.all&&!document.getElementById){
            document.onmousedown=clickIE4;
            }
            document.oncontextmenu=new Function("alert(message);return false")
             
            document.onselectstart=new Function('return false');
            function dMDown(e) {return false;}
            function dOClick() {return true;}
            document.onmousedown=dMDown;
            document.onclick=dOClick;
             
            var secs=0;
            var mins=0;
            var timerID = null
            var timerRunning = false
            var delay = 1000;
             
            function initializeTimer()
            {  
                maintable.style.height = document.body.clientHeight + "px";
             
                var hdn = document.getElementById("<%=hdn.ClientID %>");
                var sinavsure = hdn.value;
                 
                mins = parseInt(sinavsure/60);
                secs = parseInt(sinavsure - mins*60);
                 
                if(secs == 0)
                {
                    mins =mins - 1;
                    secs = 59;
                }
                 
                endInterval();
                startInterval();
            }
             
            function endInterval()
            {
                if(timerRunning)
                    clearTimeout(timerID);
                timerRunning = false;
            }
             
            function startInterval()
            {           
                if (mins<0)
                {
                    endInterval();
                    document.all("<%=lblKalanSure.ClientID%>").innerText = document.getElementById("<%=hdnSinavSuresi.ClientID%>").value + ":00";
                }
                else
                {
                     
                    if(secs > 9) document.all("<%=lblKalanSure.ClientID%>").innerText = mins + ":"  + secs ;
                    else if(secs > 9) document.all("<%=lblKalanSure.ClientID%>").innerText = mins + ":"  + "0" + secs ;
                     
                    secs = secs - 1;
                    if (secs==0)
                    {
                        mins=mins-1;
                        secs=59;
                    }
                    timerRunning = true
                     
                    if(document.getElementById("<%=hdnSoruSure.ClientID %>").value == '')
                        document.getElementById("<%=hdnSoruSure.ClientID %>").value = "0";
                     
                    var varsorusure = parseInt(document.getElementById("<%=hdnSoruSure.ClientID %>").value);
                    varsorusure = varsorusure + 1;
                    document.getElementById("<%=hdnSoruSure.ClientID %>").value = varsorusure;
                     
                    var kalansure = parseInt(document.getElementById("<%=hdn.ClientID %>").value);
                    kalansure = kalansure -1;
                    document.getElementById("<%=hdn.ClientID %>").value = kalansure;
                     
                    timerID = self.setTimeout("startInterval()", delay)
                }
            }
                         
            function sinaviBitir()
            {
                mins = -1;
                var ajaxPanel = <%= RAM.ClientID %>;
                ajaxPanel.AjaxRequest();
            }
             
            window.attachEvent('onload',function(){initializeTimer();});
              
            function radCloseWindow()
            {  
                var oWnd = window.opener;
                oWnd.refresh();
                window.close();
                return false;
            }       
        </script>
        <radA:RadAjaxManager ID="RAM" EnableOutsideScripts="true" EnableAJAX="true" runat="server"
            OnAjaxRequest="RAM_AjaxRequest">
            <AjaxSettings>
                <radA:AjaxSetting AjaxControlID="pnlDersSoruSelector">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="divOnlineSinav" LoadingPanelID="loadingSoru" />
                        <radA:AjaxUpdatedControl ControlID="pnlDersSoruSelector" LoadingPanelID="loadingSoruSel" />
                        <radA:AjaxUpdatedControl ControlID="btnSinav" />
                    </UpdatedControls>
                </radA:AjaxSetting>
                <radA:AjaxSetting AjaxControlID="btnOnceki">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="divOnlineSinav" LoadingPanelID="loadingSoru" />
                        <radA:AjaxUpdatedControl ControlID="pnlDersSoruSelector" />
                    </UpdatedControls>
                </radA:AjaxSetting>
                <radA:AjaxSetting AjaxControlID="btnSonraki">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="divOnlineSinav" LoadingPanelID="loadingSoru" />
                        <radA:AjaxUpdatedControl ControlID="pnlDersSoruSelector" />
                    </UpdatedControls>
                </radA:AjaxSetting>
                <radA:AjaxSetting AjaxControlID="divSure">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="RAM" />
                    </UpdatedControls>
                </radA:AjaxSetting>
                <radA:AjaxSetting AjaxControlID="RAM">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="divYanitlar" />
                        <radA:AjaxUpdatedControl ControlID="divYanitlar" />
                    </UpdatedControls>
                </radA:AjaxSetting>
            </AjaxSettings>
        </radA:RadAjaxManager>
        <script type="text/javascript">
            function ShowWindow(url) {
                return RadShowWindow(url, 1024, 600);
            }
        </script>
    </asp:Content>

  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Feb 2012 Link to this post

    Hi Serdar,

    Note that the old classic controls are no longer supported and the their functionality is not tested under the newer browsers versions you are using. We do not provide fixes and workaround for these old controls. Please update your application to use the latest controls for ASP.Net Ajax and verify of the issue still appear.

    You could also review the following resources which elaborates on the currently supported control versions:
    http://www.telerik.com/products/aspnet-ajax/getting-started/tech-sheets/dotnet-support.aspx

    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  7. zafer
    zafer  avatar
    5 posts
    Member since:
    Feb 2014

    Posted 23 Jun 2014 in reply to Serdar Link to this post

    Serdar Merhaba , 

    Çözümün İçin Gerçekten ÇooooOoook Teşekkürler 
    Uzun Bir Süre Araştırdık Denemediğimiz Yol Kalmadı Ama Sayende Hallettik 

    Tekrardan Çok Teşekkürler 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017