WebUserControl

G

Guest

Hi everyone,

I have WebUserControl on a Webform.
How can I sent dynamically to the WebUserControl from a Function/Property on
the Webform ?
<uc:myuc id="myid1" CurrentPage=<%#GetText()%> data="2" runat="server"/>
.....
GetText()-> function/property on the Webform, returns string and send it to
the WebUserControl -> <%#GetText()%>

It's not working. any idea why ?

thanx,
Oren
 
S

S.M. Altaf [MVP]

Set it programmatically in the codebehind for your page.

Me.myid1.CurrentPage = GetText()

If this isn't the solution you need, you'll need to elaborate a bit on what
you mean by "it's not working."

-Altaf[MVP]
 
G

Guest

Hello Altaf,

I didn't understand your sample...
the WebUserControl isn't exists on the Webform. I can't do:
this.myuc.CurrentPage=...

my idea is:
how to call programmatically to GetText() ? GetText() retrives data from the
Webform.
<uc:myuc id="myid1" CurrentPage=<%#GetText()%> data="2" runat="server"/>

thanx,
Oren
 

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

Similar Threads

WebUserControl 0
WebUserControl 0
WebUserControl 1
WebUserControl 1
C'tor of WebUserControl 4
C'tor of WebUserControl 2
User Control in Repeater fires multiple events. 1
Asp.Net C# Whidbey WebUserControl 1

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top