CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 6/16/2004 11:35:44 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 24 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Amit_Boyzone
Asp.Net User
Accessing User control from a page6/16/2004 11:35:44 AM

0/0

I have a user control on which i have to lists. This control is used on a page. I want when this page is loaded , one list is filled from data base. Query to the databse depends on value of some query string variable. So want to pass some value from page to User control. Or there is another way so that i can directly access the list of a user control from the page.

I am new to .Net
Can anybody help me in this way
Thanx
Thanks & Regards,
Amit Batra
CSC India Pvt. Ltd.
jeff.aspx
Asp.Net User
Re: Accessing User control from a page6/16/2004 6:35:14 PM

0/0

One thing you can do is to set an externally exposed property on the user control by adding this:


<script runat="server">
public Unit Width {
get {
return Image1.Width;
}
set {
Image1.Width = value;
}
}
</script>


This particular snippet exposes the Width property of an Image control inside. Next, on the page that is using the control, you can just set the Width property on the user control:


<uc1:frame id="YourControl1" runat="server" Width='<%= Request.QueryString["Width"] %>' />


Hope this helps!

Jeff
ASP.NET Team
Jeff King
Program Manager
ASP.net
Amit_Boyzone
Asp.Net User
Re: Accessing User control from a page6/17/2004 11:56:28 AM

0/0

Thank U Jeff

But I already got the answer.

Cheers :)
Thanks & Regards,
Amit Batra
CSC India Pvt. Ltd.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Information Security Management Handbook Authors: Harold F. Tipton, Micki Krause, Pages: 3231, Published: 2007
Internet Newspapers: The Making of a Mainstream Medium Authors: Xigen Li, Pages: 320, Published: 2006
PHP 5/MySQL Programming for the Absolute Beginner: No Experience Required Authors: Andy Harris, Pages: 464, Published: 2004
Instrument Engineers' Handbook: Process Control and Optimization Authors: Bela G. Liptak, Pages: 2464, Published: 2005
Access 2003 Bible Authors: Cary N. Prague, Michael R. Irwin, Jennifer Reardon, Pages: 1464, Published: 2003
Learning PHP and MySQL: [Step-by-step Guide to Create Database-driven Web Sites] Authors: Michele E. Davis, Jon Phillips, Pages: 359, Published: 2006
Microsoft SharePoint: Building Office 2003 Solutions Authors: Scot P. Hillier, Pages: 392, Published: 2006
Java in a Nutshell: A Desktop Quick Reference Authors: David Flanagan, Pages: 1224, Published: 2005
Digest of Papers: Intellectual Leverage Authors: IEEE Computer Society, Pages: 470, Published: 1987

Web:
User Account Control - Wikipedia, the free encyclopedia User Account Control (UAC) is a technology and security infrastructure ... Further information might be found on the talk page or at requests for expansion . ...
p2p.wrox.com Forums - Access control from usercontrol Is there a way to access a web control such as textbox from a usercontrol (.ascx page). For example, I created a usercontrol which has a ...
ASP.NET 2.0 C# - access property of parent page in user control ... Also I had an issue accessing a property from a main .aspx page within a usercontrol which was itself embedded within another usercontrol. ...
programmatically access user control on master page : visual ... I have a dropdown user control that is on a master page in asp.net app. How could I programmatically set the selected index of the dropdown control ...
How To Access One UserControl from Another UserControl Using ASP ... Sep 3, 2008 ... A Simple One Line of code will access Label of Second UserControl on the page and set the Text Property of that label with Selected Text of ...
How to access: a page from a User control, and another User ... How can I access the page from a user control? ... Each user control has a Page property, which gives it access to the page. ...
Understanding and Configuring User Account Control in Windows Vista The Shield icon indicates to the system to launch the process with a full administrator access token, which requires a User Account Control elevation prompt ...
Accessing user control in master page from any content page Accessing user control in master page from any content page. ... I have a user control named header.ascx in a master page. ...
Access User Control's Variable Inside an ASPX Page Apr 11, 2005 ... Find out how to access the user control's variables inside an ASP.NET Web page.
Access Page's local resource from user control Apr 16, 2007 ... of an aspx page from within a user control ... I have created a user control which I want to ... add to a page and read values from the ...

Videos:
How to Turn off/on Access User Control (UAC) - Windows Vista User Account Control (UAC) is a feature in Windows that can help prevent unauthorized changes to your computer. UAC does this by asking you for permi...
Access Control Lists Matt Disney presents how access control lists work in Linux for the Knoxville Linux User Group in Knoxville, Tennessee.
Desertphile's NMEA Sage ActiveX Control Suite The NMEA Sage ActiveX Control Suite is a collection of ActiveX user controls intended to be used by Microsoft Windows computer programmers to add vis...
Access 2000 Dev Level 11 The Access 2000 Dev Level 11 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based information technology course tit...
DRM's Disable User Control Georg Greve, President of the Free Software Foundation Europe discusses how DRM's disempower and disable user control at the UN Internet Governance F...
Access 2000 Dev Level 11 The Access 2000 Dev Level 11 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based information technology course tit...
Fingerprint reader, Fingerprint computer access control, Fingerprint USB flash drives, Fingerprint portable storage,Pen Drive, drive stick,HDD, biometric How to avoid remembering the boring but necessary passwords ? How to avoid losing the personal/business data of a large chunk ? Say goodbye to pa...
User Demo - JRMC Output - Squeezebox Remote / J River Control Applet - User Demo of an Open Source Squeezebox Remote / J River Control Applet - shows accessing J River Media Center library via the Squeezebox Duet Remote....
Access 2000 Dev Level 11 The Access 2000 Dev Level 11 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based information technology course tit...
Desertphile's NMEA Sage ActiveX Control Suite The NMEA Sage ActiveX Control Suite is a collection of ActiveX user controls intended to be used by Microsoft Windows computer programmers to add vis...




Search This Site:










deny the webpart drop in webpartzone?

how do i get a closed web part back?

personalizationstate

web part development - events

any help on providing the download of the old intranet template ?

webpart personalization + sqlserver 2000

web part page life cycle corrupted?

running web parts in a different application pool

tables needed in web part zones?

webparts styles changed?

check if a user has changed the default layout

update panel in ajax webparts

selecting part from dropdown

deploying asp.net2 user control web part(ascx webpart) in sharepointserver 2007

error when using web parts.

webpartmanager undefined - javascript error

webpart connections vs ajax

web part property as a color list?

reading specific user's webparts personalization settings?

need an opinion: best way to display the catalog zone

importing webparts problem - what changed in the rtm release

trouble creating part that makes async call to web service - help!

profile seems to be caching

which cms?

do the changes affect everyone or just the user?

web parts and mssql 2000 issue

adding an image dynamically to a zone

help using membership object

problem with togglescope and url rewriting

how to get a random winners?!

  Privacy | Contact Us
All Times Are GMT