PC Review


Reply
Thread Tools Rate Thread

accessing the web user control's control from a web page and set a value from another web page

 
 
Reny J Joseph Thuthikattu
Guest
Posts: n/a
 
      30th Dec 2004
Hi,
I have added a web user control to my project and placed some common
controls over there.In order to access the control from another web page i
registered with it(aspx page) using register tag accessed it.Now i want to
set a value to it in the Page_Init() code of my web page.How do i access it
from my vb page?

Regards

Reny




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.824 / Virus Database: 562 - Release Date: 28/12/04


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UHJha2FzaC5ORVQ=?=
Guest
Posts: n/a
 
      30th Dec 2004
Hi,

Add the code in the codebehind file. If you are using Visual Studio, drag
and drop the user control in the solution explorer to the webform. Create
properties on the user control that expose the properties that you want to
set in the user control. You can access these properties in the webform with
much ease.

Prakash.C

"Reny J Joseph Thuthikattu" wrote:

> Hi,
> I have added a web user control to my project and placed some common
> controls over there.In order to access the control from another web page i
> registered with it(aspx page) using register tag accessed it.Now i want to
> set a value to it in the Page_Init() code of my web page.How do i access it
> from my vb page?
>
> Regards
>
> Reny
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.824 / Virus Database: 562 - Release Date: 28/12/04
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing User Control Event in Main page =?Utf-8?B?SXRhbGlhbiBQZXRl?= Microsoft C# .NET 2 29th Aug 2006 12:50 PM
accessing a value of a user control from the calling page evandelagrammaticas@hotmail.com Microsoft ASP .NET 6 19th Mar 2006 11:55 PM
Accessing value of dropdown in user control from main page =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?= Microsoft ASP .NET 2 22nd Dec 2005 05:27 AM
Accessing Controls on a User Control from a Page vs Microsoft ASP .NET 2 19th May 2005 04:46 PM
User Control accessing page =?Utf-8?B?TWljaGVs?= Microsoft C# .NET 2 26th Jan 2005 03:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:50 PM.