protected void Page_PreRender(Object sender, EventArgs e) { if (LangID == 1) { Page.MetaDescription = ""; Page.MetaKeywords = ""; Head1.Attributes["lang"] = "en-US"; } //Added By K.p else if (LangID == 3) { Page.MetaDescription = ""; Page.MetaKeywords = ""; Head1.Attributes["lang"] = "hi"; } else { Page.MetaDescription = ""; Page.MetaKeywords = ""; Head1.Attributes["lang"] = "mr-IN"; } MAHAITUserControl _MahaITUC = new MAHAITUserControl(); lbldepName.Text = _MahaITUC.GetResourceValue("Common", "lbldepName", ""); lblGallery.Text = _MahaITUC.GetResourceValue("Common", "lblGallery", ""); lblMotivational.Text = _MahaITUC.GetResourceValue("Common", "lblMotivational", ""); lblSuccessStories.Text = _MahaITUC.GetResourceValue("Common", "lblSuccessStories", ""); lblPhoto.Text = _MahaITUC.GetResourceValue("Common", "lblPhoto", ""); lblName.Text = _MahaITUC.GetResourceValue("Common", "lblName", ""); lblMobileNumber.Text = _MahaITUC.GetResourceValue("Common", "lblMobileNumber", ""); lblEmailId.Text = _MahaITUC.GetResourceValue("Common", "lblEmailId", ""); LblDescription.Text = _MahaITUC.GetResourceValue("Common", "LblDescription", ""); btnSubmit.InnerText = _MahaITUC.GetResourceValue("Common", "btnSubmit", ""); }
protected void Page_PreRender(Object sender, EventArgs e) { MAHAITUserControl _MAHAITUC = new MAHAITUserControl(); lbl_copyright.Text = _MAHAITUC.GetResourceValue("Common", "lbl_copyright", ""); imgMahaIT_alt.Alt = _MAHAITUC.GetResourceValue("Common", "imgMahaIT_alt", ""); }
void Page_PreRender(Object o, EventArgs e) { MAHAITUserControl _mahaitUC = new MAHAITUserControl(); MaharashtraLogo_alt.Alt = _mahaitUC.GetResourceValue("Common", "btnContactUs", ""); NationalEmblem_alt.Alt = _mahaitUC.GetResourceValue("Common", "NationalEmblem_alt", ""); lbl_headTitle.Text = _mahaitUC.GetResourceValue("Common", "lbl_headTitle", ""); }
protected void Page_PreRender(Object sender, EventArgs e) { GetNews(); MAHAITUserControl _MAHAITUC = new MAHAITUserControl(); lblNews.Text = _MAHAITUC.GetResourceValue("Common", "lblNews", ""); //Label lbTemp = (Label)RptrWhatsNew.FindControl("lnkmore"); //lbTemp.Text = _MAHAITUC.GetResourceValue("Common", "lblNewsMore", ""); }
protected void Page_PreRender(object sender, EventArgs e) { //Added By K.P on 21-05-2018 if (System.Threading.Thread.CurrentThread.CurrentCulture.ToString() == "en-IN") { btn_Language.Text = "मराठी"; DDL_Language.SelectedValue = "English"; } else if (System.Threading.Thread.CurrentThread.CurrentCulture.ToString() == "mr-IN") { btn_Language.Text = "English"; DDL_Language.SelectedValue = "मराठी"; } else { DDL_Language.SelectedValue = "हिन्दी"; } MAHAITUserControl _MAHAITUC = new MAHAITUserControl(); btn_Language.Text = _MAHAITUC.GetResourceValue("Common", "btn_Language", ""); btn_Larger.ToolTip = _MAHAITUC.GetResourceValue("Common", "btn_LargerToolTip", ""); //btn_Large.ToolTip = _MAHAITUC.GetResourceValue("Common", "btn_LargeToolTip", ""); btn_Medium.ToolTip = _MAHAITUC.GetResourceValue("Common", "btn_MediumToolTip", ""); //btn_Small.ToolTip = _MAHAITUC.GetResourceValue("Common", "btn_SmallToolTip", ""); btn_Smallest.ToolTip = _MAHAITUC.GetResourceValue("Common", "btn_SmallestToolTip", ""); btnAWhite.ToolTip = _MAHAITUC.GetResourceValue("Common", "btnAWhiteToolTip", "");; btnABlack.ToolTip = _MAHAITUC.GetResourceValue("Common", "btnABlackToolTip", "");; btn_Larger.Text = _MAHAITUC.GetResourceValue("Common", "btn_Larger", ""); // btn_Large.Text = _MAHAITUC.GetResourceValue("Common", "btn_Large", ""); btn_Medium.Text = _MAHAITUC.GetResourceValue("Common", "btn_Medium", ""); // btn_Small.Text = _MAHAITUC.GetResourceValue("Common", "btn_Small", ""); btn_Smallest.Text = _MAHAITUC.GetResourceValue("Common", "btn_Smallest", ""); btnABlack.Text = _MAHAITUC.GetResourceValue("Common", "btnABlack", ""); btnAWhite.Text = _MAHAITUC.GetResourceValue("Common", "btnAWhite", ""); }
protected void Page_PreRender(object sender, EventArgs e) { if (System.Threading.Thread.CurrentThread.CurrentCulture.ToString().ToLower() == Convert.ToString("mr-IN").ToLower()) { LangID = 2; Session["LangId"] = LangID; if (txtSearch.Text == string.Empty) { BindGrid(); } } else if (System.Threading.Thread.CurrentThread.CurrentCulture.ToString().ToLower() == Convert.ToString("en-IN").ToLower()) { LangID = 1; Session["LangId"] = LangID; if (txtSearch.Text == string.Empty) { BindGrid(); } } else { LangID = 3; Session["LangId"] = LangID; if (txtSearch.Text == string.Empty) { BindGrid(); } } MAHAITUserControl _mahaITUC = new MAHAITUserControl(); lblSearch.Text = _mahaITUC.GetResourceValue("Common", "lblKeywordsearch", "").ToString(); lblNews.Text = _mahaITUC.GetResourceValue("Common", "lblNews", "").ToString(); btnSearch.Text = _mahaITUC.GetResourceValue("Common", "Search_btn", "").ToString(); Reset(); }
//public JsonResult VerifyBarcode(string Sel_Barcode) //{ //} //[System.Web.Services.WebMethod] //public int saveData(string name, string mobile, string description, string loantype, string amount) //{ // try // { // int result = 1; // //UserShema userShema = new UserShema(); // //UserDataBL objUserDataBL = new UserDataBL(); // //userShema.Name = name; // //userShema.Mobile = mobile; // //userShema.Description = description; // //userShema.Loantype = loantype; // //userShema.Amount = amount; // //result = objUserDataBL.insertUserData(userShema); // return result; // } // catch // { // return 0; // } //} protected void Page_PreRender(Object sender, EventArgs e) { if (LangID == 1) { Page.MetaDescription = ""; Page.MetaKeywords = ""; } //Added By K.p else if (LangID == 3) { Page.MetaDescription = ""; Page.MetaKeywords = ""; } else { Page.MetaDescription = ""; Page.MetaKeywords = ""; } MAHAITUserControl _MahaITUC = new MAHAITUserControl(); lblWelcomeMsg.Text = _MahaITUC.GetResourceValue("Common", "WelcomeMsg", ""); Session["WelcomeMsg"] = lblWelcomeMsg.Text; }
void Page_PreRender(Object o, EventArgs e) { if (System.Threading.Thread.CurrentThread.CurrentCulture.ToString() == "en-IN") { searchTxtBox.DestinationLanguage = TextBoxServerControl.TextBoxControl.SupportedLanguages.ENGLISH; searchTxtBox.CDACDestinationLanguage = TextBoxServerControl.TextBoxControl.CDACSupportedLanguages.ENGLISH; } else { searchTxtBox.DestinationLanguage = TextBoxServerControl.TextBoxControl.SupportedLanguages.ENGLISH; searchTxtBox.CDACDestinationLanguage = TextBoxServerControl.TextBoxControl.CDACSupportedLanguages.MARATHI; } MAHAITUserControl _MahaITUC = new MAHAITUserControl(); searchTxtBox.Text = _MahaITUC.GetResourceValue("Common", "searchTxtBox", ""); lblSearchBTN.InnerText = _MahaITUC.GetResourceValue("Common", "lblSearchBTN", ""); Search_btn.Text = _MahaITUC.GetResourceValue("Common", "Search_btn", ""); Button btnlogin = (Button)HeadLoginView.FindControl("btnlogin"); if (btnlogin != null) { btnlogin.Text = _MahaITUC.GetResourceValue("Common", "btnlogin", ""); } else { LoginStatus HeadLoginStatus = (LoginStatus)HeadLoginView.FindControl("HeadLoginStatus"); HeadLoginStatus.LogoutText = _MahaITUC.GetResourceValue("Common", "HeadLoginStatus", ""); } //lbl_headTitle.Text = _MahaITUC.GetResourceValue("Common", "lbl_headTitle", ""); lbl_skipToNav.Text = _MahaITUC.GetResourceValue("Common", "lbl_skipToNav", ""); lbl_skipToContent.Text = _MahaITUC.GetResourceValue("Common", "lbl_skipToContent", ""); }
protected void Page_PreRender(object sender, EventArgs e) { if (LangID == 1) { Page.MetaDescription = ""; Page.MetaKeywords = ""; } else if (LangID == 3) { Page.MetaDescription = ""; Page.MetaKeywords = ""; } else { Page.MetaDescription = ""; Page.MetaKeywords = ""; } MAHAITUserControl _MahaITUC = new MAHAITUserControl(); das_Shishu.Text = _MahaITUC.GetResourceValue("PhSecond", "das_Shishu", ""); das_Kishore.Text = _MahaITUC.GetResourceValue("PhSecond", "das_Kishore", ""); das_Tarun.Text = _MahaITUC.GetResourceValue("PhSecond", "das_Tarun", ""); }