Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

WebUserControl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oren - 19 Oct 2005 07:26 GMT
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.M. Altaf [MVP] - 19 Oct 2005 11:25 GMT
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]
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com

> Hi everyone,
>
[quoted text clipped - 12 lines]
> thanx,
> Oren
Oren - 19 Oct 2005 12:00 GMT
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

> Set it programmatically in the codebehind for your page.
>
[quoted text clipped - 24 lines]
> > thanx,
> > Oren

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.