473,386 Members | 1,804 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,386 software developers and data experts.

How can an asp.net project by pulling in a code-behind class from another project?

I have a vb.net asp 1.1 project where when I step through the code behind of
a page, a new codebehind with the same name appears in the IDE and executes.
so now I have 2 classes open in the IDE with the same name
(BasePage.aspx.vb) I had another project open at the same time which has a
page with the same name (BasePage.aspx) and somehow it got pulled into the
first project. Even after I close both projects and re-open the first one
again it pulls in this other class and executes. I saw this once before and
it was a real hassle to solve. Can anyone tell me what's going on here and
a good way to fix it?

--
mo*******@nospam.com
Nov 18 '05 #1
4 1325
It's showing in the class browser?
I might not be understanding the question, but why not just delete if it is
a duplicate?

--Landi

"moondaddy" <mo*******@nospam.com> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
I have a vb.net asp 1.1 project where when I step through the code behind of a page, a new codebehind with the same name appears in the IDE and executes. so now I have 2 classes open in the IDE with the same name
(BasePage.aspx.vb) I had another project open at the same time which has a page with the same name (BasePage.aspx) and somehow it got pulled into the
first project. Even after I close both projects and re-open the first one
again it pulls in this other class and executes. I saw this once before and it was a real hassle to solve. Can anyone tell me what's going on here and a good way to fix it?

--
mo*******@nospam.com

Nov 18 '05 #2
Hi Moondaddy,

From your description, when you're debuging a web page in VS.NET and step
through the webpage 's code, you found the VS.NET IDE open another
codebehind file(with same name) in another project which is also opened
into the current project, yes? If anything I'm misunderstand, please feel
free to tell me.

As for the problem does it occur if there hasn't a codebehind in another
opened project and the filename is the same? Also, does it occur both in
vb.net or c# project?
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3
I think it starts happening when there's another project open with the same
page and code in it (projV1 and projV2). Then after I close the 2nd project
it still happens and even if I reboot the computer it will continue to
happen when I put a break point in the same code behind. When the 2nd
codebehind from the 2nd project appears again in my main project, I can't
delete it because its not in solution explore, all I can do is close its
window. It will keep appearing. very bizarre.

--
mo*******@nospam.com
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:EF**************@cpmsftngxa06.phx.gbl...
Hi Moondaddy,

From your description, when you're debuging a web page in VS.NET and step
through the webpage 's code, you found the VS.NET IDE open another
codebehind file(with same name) in another project which is also opened
into the current project, yes? If anything I'm misunderstand, please feel
free to tell me.

As for the problem does it occur if there hasn't a codebehind in another
opened project and the filename is the same? Also, does it occur both in
vb.net or c# project?
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4
Hi Moondaddy,

Thanks for your followup. As you mentioned that the problem will remain
even if we close the IDE? And the only means you can do is to close the
window. Does the "window" you mentioned means the tab on the top of the
VS.NET ide? Then, would you try closing all the opened source window(aspx
or code behind) in project and then save and close the IDE, restart again
to see whether the problem occur?
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #5

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

Similar topics

9
by: Philip D Heady | last post by:
Ok, as some of you may know I'm an Oracle newbie w/ PHP. I'd rather use MySQL but at the office here we use Oracle and boy do I have alot to learn. I'm starting to hate it after using MySQL!! ...
6
by: LRW | last post by:
I have an automated process which uploads a comma separated spreadsheet (csv) and inserts it into a database: $sql = "LOAD DATA INFILE '".$uploadfile."' INTO TABLE `tbl_tracking` FIELDS...
1
by: TG | last post by:
I have a problem trying to get a value from textbox 1 and textbox 2. If those two values match the data in the database then it has to return a third corresponding value to a third textbox (or...
0
by: acool | last post by:
I pretty much have the code for dropping into a SQL DB I also have the code for pulling a file using an ASPX page but I am a little fuzzy on the methodology of how the complete process would work....
10
by: Jeff | last post by:
Hey gang. i have a code that i will list. when varM = 8 or 16, the script works fine, and pulls the top 8 or top 16, but if it =32 or 64, it is only pulling the top 17 records from the DB. db is...
2
by: Joe Spears | last post by:
Hi Does anyone have any sample code on Pulling user data from Active Directory?? Thanks
5
by: Stewart | last post by:
Hi there, I have an Access database, which contains the details of company staff and services. The plan is to extract data from this database onto our forthcoming Intranet (no inserting,...
20
by: scolivas | last post by:
I have a query that is pulling from a table of 35000+ records But for some reason any records beyond 25999 are not coming thru. The Table is a list employees - and thier assignments - so there...
7
by: colleen1980 | last post by:
Hi: When i run the same code with minor changes in VB it works fine but when i run in ASP it runs but it not pulling any information from the web site. Needs help Thanks, Anna. ASP CODE ...
3
by: Nepenthen | last post by:
Hello – I am still new to Access and I am currently working on debugging some code. I have a form with the following: Employee Name (combo with select all choice) Task (combo with select all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...

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.