473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.ascx), 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.UserControl

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.EventArgs)
Handles MyBase.Load
Dim myCaseDetails As CaseDetails
myCaseDetails = CType(Page.LoadControl("CaseDetails.ascx"), CaseDetails)
phMain.Controls.Add(myCaseDetails)
myCaseDetails.ftnSomeFunction()
End Sub

Nov 19 '05 #1
0 898

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

Similar topics

3
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...
12
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. ...
3
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...
4
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...
1
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,...
9
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...
1
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...
6
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(),...
1
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.