Velocity Reviews

Velocity Reviews (
-   ASP .Net Web Controls (
-   -   Filling the text of Buttons over a public class (

Michael Engel 03-11-2009 08:34 AM

Filling the text of Buttons over a public class
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


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

All times are GMT. The time now is 12:16 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.