Saturday, December 22, 2012

Curve border of any control Button, textbox, div and many

Curve border of any control Button, textbox, div and many



 .cover
        {
            border: 1px solid #B7C1FF;
         
            -moz-border-radius: 6px;                        // this for  FF
            -webkit-border-radius: 6px;                     // this Chrome
             border-radius: 6px;                                  // this for IE
        }


This Cover All outer Border




This will Curve the Border of Header  as (BANK EXAM)



 .Hiding
        {
            background-color: #b7c1ff;
            height: 25px;
            text-align: center;
            vertical-align: middle;
            -moz-border-radius: 6px;
            -webkit-border-radius: 6px;
        }





Change Scrollbar Style for Div

Change Scrollbar Style for Div

specify div with Class name




  .pnlpassQ
        {
             max-width:100%;
             max-height: 200px;
             overflow: auto;        
        }
     .pnlpassQ::-webkit-scrollbar
        {
            width: 8px;
        }
       
        .pnlpassQ::-webkit-scrollbar-track
        {
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
            border-radius: 5px;
        }
       
        .pnlpassQ::-webkit-scrollbar-thumb
        {
            border-radius: 5px;
            background: #00BFFF;
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
        }


       



Friday, December 21, 2012

loading the data to muliple Repeater by passing parameter

loading the data to muliple Repeater by passing parameter

this method application for controls such as Dropdown , gridview , report and many



private void LoadSubCourse(String Courses, Repeater Repeater)
        {
            try
            {
                DataTable _dt = new DataTable();
                _dt = objsubCourse.SubCourseDetail(Int32.Parse(Session["CustomerId"].ToString()), Courses);
                if (_dt != null && _dt.Rows.Count > 0)
                {

                    Repeater.DataSource = _dt;
                    Repeater.DataBind();
                }
                else
                {

                }
            }
            catch { }
        }  

calling this method by passing Different It

rpData1,rpData2,rpData adn rpDataOther are the Repeaters
Page Load()
{
                LoadSubCourse("BANK" ,rpData);
                LoadSubCourse("MPSC",rpData1);
                LoadSubCourse("CRT", rpData2);
                LoadSubCourse("", rpDataOther); 
}

Sunday, December 2, 2012

Calling the Non Static Method from Static Method

Calling the Non Static Method from Static Method



 static public string SaveImages(ClassName obj)
    {
        string bb = obj.SaS(10); // HttpContext.Current.SaS(ii);
        return bb;
    }
    public string SaS(int ii)
    {
        string i = "iTechGalaxy";
        return i;
    }