Assign a property to webcontrol in run-time

A

Andrea

I've built my own webcontrol to make page navigation.
One of control's property is recordCount that is used to know how many record
should be take in mind to print out the pages number.

The question is

I've registered the control in the page in this way
<%@ Register Assembly="WebControls.PageNavigationBar" Namespace="WebControls"
TagPrefix="cc1" %>

and added a a declaration like this

<cc1:pagenavigationbar id="PageNavigationBar1" runat="server" ></cc1:pagenavigationbar>

but how can I modify dinamically the property in page's code.

Simply trying to write cc1 or PageNavigationBar won't give the expected result
so this mean that this is not the right way.

Where Am I doing mistakes?

Thanks
Andre
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top