Created
October 6, 2022 22:50
-
-
Save marlonwanger/57b8f033d6e11d4a9c70eca51a18fe1e to your computer and use it in GitHub Desktop.
Aula 06 Codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.binary-image { | |
width: 96px !important; | |
border-radius: 50% | |
} | |
protected string getAppearenceBackground() { | |
return (Utility.FixValue<string>(PageProvider.MainProvider.DataProvider.Item["APPEARENCE_BACKGROUND_COLOR"].GetValue())).ToString().Replace(double.NaN.ToString(), ""); | |
} | |
protected string getAppearenceBackgroundFontColor() { | |
return (Utility.FixValue<string>(PageProvider.MainProvider.DataProvider.Item["APPEARENCE_BACKGROUND_FONT_COLOR"].GetValue() + "!important")); | |
} | |
protected string getAppearenceBackcolorButton() { | |
return (Utility.FixValue<string>(PageProvider.MainProvider.DataProvider.Item["APPEARENCE_BUTTON_COLOR"].GetValue())).ToString().Replace(double.NaN.ToString(), ""); | |
} | |
protected string getAppearenceTextButton() { | |
return (Utility.FixValue<string>(PageProvider.MainProvider.DataProvider.Item["APPEARENCE_BUTTON_FONT_COLOR"].GetValue() + "!important")); | |
} | |
protected void Form1_LoadCompleted() | |
{ | |
Form1.Style["background-color"] = getAppearenceBackground(); | |
Form1.Style["height"] = "100vh"; | |
} | |
protected void ___Repeater1_RowDataBound(RepeaterItemEventArgs e, DataRow row) | |
{ | |
RadButton RepCtrButton1 = e.Item.FindControl("Button1") as RadButton; | |
RepCtrButton1.ButtonType = RadButtonType.LinkButton; | |
RepCtrButton1.Target = "blank"; | |
RepCtrButton1.NavigateUrl = row.ItemArray[2].ToString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment