CodeVerge.Net
Beta
Explore
Item Entry
Members
Register
Login
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML
Zone:
>
NEWSGROUP
>
Asp.Net Forum
>
visual_studio.visual_web_developer_2005_express
Tags:
Item Type:
NewsGroup
Date Entered:
9/29/2005 9:31:36 PM
Date Modified:
Subscribers:
0
Subscribe Alert
Rate It:
(NR, 0)
XPoints:
N/A
Replies:
2
Views:
4
Favorited:
0
Favorite
Can Reply:
No
Members Can Edit:
No
Online:
Yes
ng.asp-net-forum.master_pages_themes_and_navigation_controls
masterpage & datasource: error
menu parent backcolor when hovering child menu
dynamic menu samples
sharing master page variables
tree view nodes and child nodes csharp
design view when using master pages
asp.net master page javascript
treeview with images. add on click behavior to images
3 Items, 1 Pages
Sort By
Date Dsc
Date Asc
Votes Dsc
Votes Asc
1
|<
<<
Go
>>
>|
Imar_Spaanjaars
Asp.Net User
Seeing the type of User Controls
9/29/2005 9:31:36 PM
0/0
Hi there,
I am trying to load a control dynamically and cast it to the appropriate type. Something like this used to work:
Dim myControl As myCustomUserControl = CType(LoadControl("myCustomUserControl.ascx"), myCustomUserControl)
This should load the control, and then cast it to type myCustomUserControl. I am using this code in one UC in a Controls folder to load another UC.
However, with Visual Web Developer 2005 Express edition this no longer seems to work. Intelli Sense doesn't see the class and I get compile errors.
I can't recall wether this has recently changed or that it has never worked in .NET 2.0. All I can see in Intelli Sense is the name of the
current
control I am working with, but not other controls in the same folder.
Has something changed? Are the type of controls no longer visible in other controls?
Imar
Imar Spaanjaars
http://Imar.Spaanjaars.Com/
===============================================
Everyone is unique, except for me.
alexgav
Asp.Net User
Re: Seeing the type of User Controls
9/30/2005 5:21:04 AM
0/0
Hi Imar,
You need to add <%@ Reference Control="myCustomUserControl.ascx" %> (or <%@ Reference VirtualPath="~/myCustomUserControl.ascx" %>) to the user control that's trying to dynamically load myCustomUserControl.ascx, adjusting the path to the file as needed. You can find more info at
http://msdn2.microsoft.com/en-us/library/w70c655a(en-US,VS.80).aspx
Thanks,
Alex
This posting is provided "AS IS" with no warranties, and confers no rights.
Imar_Spaanjaars
Asp.Net User
Re: Seeing the type of User Controls
9/30/2005 5:30:16 AM
0/0
Great, thanks a lot. That did the trick.
Imar
Imar Spaanjaars
http://Imar.Spaanjaars.Com/
===============================================
Everyone is unique, except for me.
3 Items, 1 Pages
Sort By
Date Dsc
Date Asc
Votes Dsc
Votes Asc
1
|<
<<
Go
>>
>|
Search This Site:
Meet Our Sponsors:
Other Resources:
Web site design with User Controls has gone really wrong ...
Item Type: NewsGroup. Date Entered: 10/31/2004 6:30:17 PM. Date Modified: ... don't see it or do you really mean to plug in different ascx-user controls for ...
ASP.NET QuickStart Tutorial
The real power of user controls is in this type of reusability. VB UserCtrl3.aspx ... Important The strong type for a user control is available to the containing Web ...
Health News on Yahoo! Health
Top health news stories, events, findings, information and research on Yahoo! Health
Windows Vista Help: Change a user's account type
Open User Accounts by clicking the Start button , clicking Control Panel, ... See also. Why use a standard user account instead of an administrator account? ...
user custom controls in C# visual basic 2005, asp.net, application
... Basic in project types and Windows Control Library in Template List. ... e.Click on the validate button to see the result. 7. Writing Events to a control. ...
How to Programtically Include ASP.Net User Controls
We have seen that a lot of users who have tried to programtically include ... when we tried to type case the user control to SiteHeader type, it failed. ...
O'Reilly - Safari Books Online - 0321205618 - Seeing Data: Designing ...
... Grid Controls. Using Grid Controls. The ListView Control. The DataGrid Control ... Chapter 17. User Assistance. Types of User Assistance. Functional Principles ...
Manage User Accounts | Windows Vista for Beginners
Start the control panel, type user accounts in the upper right search box and ... I've tried turning on the account to see if I get more options there, but no, ...
WindowsDevCenter.com -- Understanding Windows Vista's User Account Control
... you are logged on as a standard user or an administrator, you see a ... you must enter the name of an administrator account, type the account's password, ...
Control user privileges
... a user can see, you can also control what actions a user is ... Depending on the type of component you're using, different permissions will be available. ...
Invite
History
Resources
SiteMap
portal problems
search
pyarrows alternative side menu
langugage selector for dnn 3.0.12 module released
hooking up intellisense
regarding dnn 4
upgrade dnn 3.0.12 to 3.1.1
how do i extend the aspnetdb?
core team chat notes from 10/4
login failed for user 'master\aspnet'.
version help?
please, where is the error?
dropdownlist inharited web custom control
passwordrecovery sends two emails
system.io.filenotfoundexception: ?
All Times Are GMT