[Solved] How do I use the Trim Function


Indexer

C# uses the square bracket[] to access element of an indexer instead of parentheses()

Event Handler

AddHandler and AddressOf are both VB keyword. In order to add an handler to an event, use the += operator with the event as left operand and handler as the right operand.

protected void ButtonSetup(DataRow row, Button button)
{
    button.Visible = true;
    button.Text = row["Floor_Name"].ToString().Trim();
    button.CommandArgument = row["Floor_Name"].ToString().Trim();
    button.CssClass = "GreyButtonStyle";
    button.Click += Schematic_Button_Click;
}

7

solved How do I use the Trim Function