Controlling Button Positions in ASP pages

1 minute read time.

A customer had a requirement to add additional buttons to a custom ASP page. These buttons had to be displayed at the bottom of the screen in a way similar to the buttons in the marketing area.

But you can have the buttons appear anywhere you like in an ASP (or .NET) page.

If you have only one set of custom buttons that you want to appear in a different location other than the default you can use the ButtonLocation and ButtonAlignment properties.

In the image below the custom buttons are have been displayed at the bottom of the page with horizontal alignment.

The code for this example looks like



" src="https://www.sagecity.com/cfs-filesystemfile/__key/communityserver-components-sitefiles/SageCRM+blog+images/6136.buttons.png" alt="" />

For this example I have used a container and a content block to allow me to position the buttons where I want them. You will see that I have turn off the default button that the container adds in automatically and I have kept the buttons on the list, but they could have been added to the container rather than the list.

I could also add in HTML to further control the buttons. It is important to realise that the CRM.Button() method just returns HTML so this can be processed in anyway you want.



">