473,586 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS2005 Beta 2 - Web User Control Issue

Hello,

In a VS2003 app I have an aspx page (default.aspx) with a PlaceHolder
defined (phMain). In my aspx code-behind I am dynamically creating a
reference to a web user control (CaseDetails.as cx), adding that control to
the placeholder, and then calling the web user control's various functions.
This works great in VS2003. But when the project was converted over to
VS2005 the Intellisense is now complaining that "Type 'CaseDetails' is not
defined" (all references to CaseDetails are underlined in blue). It will
still compile and run - telling me that the compiler has no problem with
this, but the VS2005 ide does seem to have a problem. Has anyone seen a
similar behavior ?

Code looks like:

*************** *************** **********
'CaseDetails Web User Control Class Definition
*************** *************** **********
Partial Public Class CaseDetails
Inherits System.Web.UI.U serControl

Private _intCaseNum As Integer

Public Property CaseNum() As Integer
Get
Return _intCaseNum
End Get
Set(ByVal value As Integer)
_intCaseNum = value
End Set
End Property

Public Function ftnTest() As Boolean
Return False
End Function
End Class

*************** *************** **********
'default.aspx - page_load event
*************** *************** **********
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s)
Handles MyBase.Load
Dim myCaseDetails As CaseDetails
myCaseDetails = CType(Page.Load Control("CaseDe tails.ascx"), CaseDetails)
phMain.Controls .Add(myCaseDeta ils)
myCaseDetails.f tnSomeFunction( )
End Sub

Nov 19 '05 #1
0 917

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1899
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
12
1345
by: clintonG | last post by:
VS2005 2.0 Beta 2 noting I've posted (to no avail so far) to the somewhat deadzone at news://microsoft.public.vsnet.ide and am getting ants in my pants for some discussion about this issue. Using regions to manage source code in the IDE is very useful however I prefer to align the region text on the left-most margin of the editor, i.e....
3
1190
by: dhnriverside | last post by:
Hi guys I have a problem. I'm having a lot of problems with the "very known bug" of Visual C# deleting bits of code when you fast-switch between designer and code. It keeps deleting my entire OnInit(), which for a wizard-like page, contains quite a lot of code! I've spoken to various MVP leads on this issue, and the best solution they...
4
1120
by: Chris Botha | last post by:
In VS2003 if I had a Web form, say Form1 and a class, say Class1, then I could pass the form as parameter to a sub/function in the class, so this would compile: Public Class Class1 Public Sub DoSomeStuff(TheForm as Form1) End Sub End Class Using VS2005 the above fails, Form1 is not defined. Class1 is in the App_Code directory. Anything I...
1
1518
by: Dean Slindee | last post by:
Will there be a VS2003-style splitter control in VS2005 when it gets past Beta? I am not referring to the new splitter container in VS2005, but the original splitter control in VS2003. If not, then a lot of forms designed with splitters in legacy VS.NETs may be more painful to port/upgrade into VS2005? Should I be concerned? Thanks,...
9
1385
by: João Santa Bárbara | last post by:
Hi all, i have instaled VS2005 Develpers Edition, and i have migrate my VB code from VS2003 to VS2005(RTM). and so far i´m not pleased with this migration. i have lots of ide Bugs, some forms in designer explodes. :( other problem is in the VB Compiler that explodes with this error "AppName: devenv.exe AppVer: 8.0.50727.42...
1
1587
by: yoDon | last post by:
I just installed the VS2005 Beta 2 bits, and I'm having a variety of issues with the Web Site Admin tool. If I create a test web service, I can't add users because: -- There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the...
6
1396
by: Mike | last post by:
I'm using VS2005 beta 2. (1) It looks like "foreach" is looking for an IEnumerable only, and not an IEnumerator. That means that class I use in the interation has to have GetEnumerator(), rather than supporting the IEnumerator protocol (incl. automatically created generator class using "yield return".) I can define GetEnumerator(), but...
1
1187
by: GaryDean | last post by:
I notice that there is still no tab control in vs2005. That seems like a strange omission. Are we left with the only choice to use those I.E. Webcontrols? (maybe it's still because we don't want to look like Lotus notes :) -- Regards, Gary Blakely
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.