Filling the text of Buttons over a public class


M

Michael Engel

Hi there,

I have an aspx page with 15 Buttons. The text of the buttons should be
filled during the runtime.
The names are in an access database. I created a global class with the
methode "fillButtonNames.
I'm calling the class from this button page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load

Dim cls As New ClsGlobalFunctions

cls.PageActivate(sender)

End Sub

But i can't rename the text of the Button on the aspx page.

My idea is something like
Calling the global class ClsGlobalFunctions
Public Sub fillButtonNames(ByVal MyPage As Object)

myPage.Button1.text = "'Number one"

End Sub

Maybe someone can tell me how to rename the buttons' text.

Thank you
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top