コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ObjEntity = new MatrimonyEntities1();
        //string TxtCaste = Convert.ToString(Session["SessionCasteText"]);

        //listView.DataSource= ObjEntity.Castes;
        //listView.DataBind();

        SearchFunction();
        //var query = (from states in ObjEntity.StateDetails join city in ObjEntity.Cities on states.CountryID equals city.StateID select new { states
        //.StateID,states
        //.StateName,city
        //.CityID,city.CityName}).ToList();

        //GridView1.DataSource = Session["sessionSearch"];
        //GridView1.DataBind();


        //DataTable dt = new DataTable();
        //string sql = "SELECT OrderId,ImageUrl,NavigateUrl,AlternateText,IsAdActive FROM AdsDataTable";
        //SqlConnection con = new SqlConnection("Data Source=SEENU-PC\\SQLEXPRESS;Initial Catalog=Sample;Integrated Security=True");

        //SqlDataAdapter adsa = new SqlDataAdapter(sql, con);
        //adsa.Fill(dt);

        //listView.DataSource = Session["sessionSearch"];
        //listView.DataBind();
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ObjEntity = new MatrimonyEntities1();

        if (!IsPostBack)
        {
            LoadMotherTongueCombo();
            LoadProfileForCombo();
            LoadReligionCombo();
            LoadCountryCombo();
        }
    }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        objEntity = new MatrimonyEntities1();

        if (!IsPostBack)
        {
            LoadReligionCombo();
            LoadMotherTongueCombo();

            LoadCountryCombo();
            LoadHigherEduCombo();
        }

        DDL_CasteSearch.Items.Insert(0, new ListItem("--Select Caste--", "0"));
    }
コード例 #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        objEntity = new MatrimonyEntities1();
        //string abs;

        if (!IsPostBack)
        {
            LoadReligionCombo();
            LoadMotherTongueCombo();
            LoadCountryCombo();
            LoadStarCombo();
            LoadOccupCombo();
            LoadHigherEduCombo();
            LoadCasteCombo();
        }

        DDl_AnnIncomeTo.Visible = false;
    }
コード例 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ObjEntity = new MatrimonyEntities1();
 }
コード例 #6
0
ファイル: Second.aspx.cs プロジェクト: VijayMVC/G3_20130609
    protected void Page_Load(object sender, EventArgs e)
    {
        ObjEntity = new MatrimonyEntities1();

        string TxtCaste   = Convert.ToString(Session["SessionCasteText"]);
        string TxtCountry = Convert.ToString(Session["SessionCountryText"]);

        Lbl_CountryName.Text = TxtCountry;
        Lbl_CasteName.Text   = TxtCaste;
        string TxtReligion = Convert.ToString(Session["SessionReligion"]);


        //according to religion caste will be change to dropdown or textbox

        if (TxtReligion.ToString() == "1")
        {
            int  intCasteID;
            bool blnCheck = int.TryParse(Session["SessionCaste"].ToString(), out intCasteID);


            var query = (from m in ObjEntity.SubCastes
                         where m.CasteID == intCasteID
                         select m).ToList().Count;
            if (query > 0)
            {
                Txt_SubCaste.Visible = false;
                DDL_SubCaste.Visible = true;
                blnNoSubCaste        = false;
                if (!IsPostBack)
                {
                    LoadSubCasteCombo();
                }
            }
            else
            {
                Txt_SubCaste.Visible = true;
                DDL_SubCaste.Visible = false;
                blnNoSubCaste        = true;

                blnNoGothra         = true;
                Txt_Gothram.Visible = true;
                DDl_Gothra.Visible  = false;
            }
        }
        else
        {
            Txt_SubCaste.Visible = true;
            DDL_SubCaste.Visible = false;
            blnNoSubCaste        = true;

            blnNoGothra         = true;
            Txt_Gothram.Visible = true;
            DDl_Gothra.Visible  = false;
        }

        if (TxtCountry == "India")
        {
            DDL_State.Visible = true;
            DDL_City.Visible  = true;
            TxtState.Visible  = false;
            TxtCity.Visible   = false;
        }
        else
        {
            DDL_State.Visible = false;
            DDL_City.Visible  = false;
            TxtState.Visible  = true;
            TxtCity.Visible   = true;
            blnNoStateCity    = true;
        }

        if (!IsPostBack)
        {
            LoadOccupCombo();
            LoadCurrencyCombo();
            LoadStateCombo();
            LoadHigherEduCombo();
            LoadStarCombo();
            //LoadSubCasteCombo();
        }
    }