CodeVerge.Net Beta


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

3 Months Free and Free Setup - ASP.NET Web Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_asp.net_1.x_to_asp.net_2.0 Tags:
Item Type: NewsGroup Date Entered: 12/30/2004 12:42:00 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 21 Views: 65 Favorited: 0 Favorite
22 Items, 2 Pages 1 2 |< << Go >> >|
mbund
Asp.Net User
Re: Problems with Application Code and Controls9/13/2005 4:34:53 PM

0/0

AJO, we appreciate your candor and are listening to your feedback. We do think the current web project model is better than the previous, but there is always room for improvement and your suggestions are good. There is nothing we can do for the upcoming RTM release (we are out of time to change that) but we are exploring ways of addressing these and other issues post-RTM.

Thank you,

-Mike-

ryan.reid
Asp.Net User
Re: Problems with Application Code and Controls12/1/2005 11:38:03 PM

0/0

I'm having exactly the same issue, and I can't find any reasonable workaround.

I?m now on my 3rd day of trying to get dynamic child UserControls to load in an ASP.NET 2.0 project. I'm perfectly desperate.

For help and a reasonable explanation, I'm willing to do nearly anything.

Here's the issue, takes me about 2 mins to reproduce:

- I have a terribly simple project called Master that is a web project.
- I have a subproject in a subfolder of Master called "subproject"
- The subproject has a control named "ChildControl.ascx"
In the master project's single page (Default) I have this code:

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)

{

UserControl uc = (UserControl)LoadControl("subproject/ChildControl.ascx");

}

}

In the subproject's ChildControl.ascx I have this code:

public partial class ChildControl : System.Web.UI.UserControl {

protected void Page_Load(object sender, EventArgs e)

{

string x = SharedCode.SayHello();

}

}

In the subproject I also have a class with a single static method called SayHello(). This class is in the App_Code folder of subproject.

When I run this project, I get this error:

Compiler Error Message: CS0103: The name 'SharedCode' does not exist in the current context

But of course it DOES EXIST.

I can't believe that this isn't possible. All I want to do is to use code IN THE SAME PROJECT with a static method.

22 Items, 2 Pages 1 2 |< << Go >> >|


Free Download:

Books:
Digest of Papers: IEEE Computer Society International Conference Authors: Alan G. Bell, IEEE Computer Society, IEEE Computer Society., Institute of Electrical and Electronics Engineers, Pages: 0, Published: 1984
Programming .NET Security Authors: Adam Freeman, Allen Jones, Pages: 693, Published: -1
PHP and MySQL Web Development Authors: Luke Welling, Laura Thomson, Pages: 871, Published: 2003
Patterns of Enterprise Application Architecture Authors: Martin Fowler, David Rice, Pages: 560, Published: 2003
Programming and Customizing the PIC Microcontroller Authors: Michael Predko, Myke Predko, Pages: 1263, Published: 2007
Information Security Management Handbook Authors: Harold F. Tipton, Micki Krause, Pages: 3231, Published: 2007
Instrument Engineers' Handbook: Process Control and Optimization Authors: Bela G. Liptak, Pages: 2464, Published: 2005

Web:
Problems with Application Code and Controls - ASP.NET Forums Problems with Application Code and Controls. Last post 12-01-2005 6:38 PM by ryan.reid. 21 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Problems with Application Code and Controls - ASP.NET Forums Re: Problems with Application Code and Controls. 04-15-2005, 12:12 PM. Contact ... Re: Problems with Application Code and Controls ...
Revision control - Wikipedia, the free encyclopedia Centralized revision control systems solve this problem in one of two different "source ... An example of a closed distributed system is Code Co-op. ...
[Common Security Problems in the Code of Dynamic Web Applications ... Common Security Problems in the Code of Dynamic Web Applications ... The metacharacters represent control information. Serious problems may occur when ...
3D Active X control problem in built application installer - LAVA 3D Active X control problem in built application installer : Hi Folks:Im having ... Application Builder, Installers and code distribution ...
VB User Control problem VB User Control problem. microsoft.public.vb.general.discussion. Author. 13 Mar 2006 9:40 PM. Rick. I have an application in VB6, ...
Graham Dumpleton: Reloading of Python code into web applications. Mar 30, 2007 ... This eliminates problems with user code accessing parts of the file ... be able to create and control additional Python sub interpreters and ...
"Unsound" code - Volume Control Problem - ActionScript.org Forums "Unsound" code - Volume Control Problem ActionScript 3.0.
CodeProject: Expansion UpdatePanel control - solve problems layout ... Expansion UpdatePanel control - solve problems layout design stage .... UpdatePanelDesigner the originally output HTML code following chart shows. ...
Problems using application state with custom classes - ASP.NET General The problem comes in when I try to use the Application state from a custom ... persist state of controls in a custom control, Teemu Keiski, ASP. ...

Videos:
CNC Stomp Pad 5 - Mach 3 G-Code - Learn CNC Plasma Cutting In this video we go through Mach 3 to look over the g-code. We are checking to see if we have any problems before we go to the CNC Plasma Cutter. h...
Coconut: COde CONstructing User Tool Google Tech Talks March, 7 2008 ABSTRACT Coconut is a developing system for high-assurance, high-performance software. It was used to develop a li...
HITBSecConf2006 Malaysia : Marc Schonefeld - Pentesting Java/J2EE Presentation Title: Pentesting Java/J2EE - Discovering Remote Holes Presentation Details: Java/J2EE is a widely used industry standard for business ...
Igor Roman - Logging For Fun And Proffit Perl Programming Talks at YAPC::Braga When debugging a problem in an application, people generally resort to scattered print's throughout the code. ...
ZohoCreator Problems With Lookup Fields ZohoCreator Problems With Lookup Fields General YouTube - ZohoCreator relationships between forms youtube.com/watch?v=WJ4222pCbI0 ZohoCreator relati...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
Using Grok to Walk Like a Duck PyCon 2008 Talk by Mr. Brandon C Rhodes (Georgia Tech) Grok provides tools for general-purpose application design. Reuse in Python often involves te...
December 11, 2007 Nelson Proposes watered down code Dec 11, 2007 Nelson works closely with Fink on many occasions, there is no North South problem. He and Fink have similar agendas, giving one anothe...
GTA SA with e-sky transmitter okay, i have been able to get GTA San Andreas (the well known video game) to reckinize a cheap E-Sky model simulator radio/transmitter. I edited flyi...
Mechatronics Mechanical System Control - It's the Software! Google Tech Talks September 21, 2006 David Auslander ABSTRACT The history of mechanical system control is one of striving for ever greater complexi...












upgrading to asp.net2.0

asp.net 2.0 running over asp.net 1.1

linkbutton in repeater problem

dropdownlist's event handler is not getting called after migrating to .net 2.0

.net 1.1. to 2.0

dynamically loading of controls

how to deploy new assemblies in an asp.net 2.0 application?

reference required to assembly 'app_code.i8oyhwru, version=1.0.2007.41359, culture=neutral, publickeytoken=null' containing the base class 'appchecker.global'. add one to your project.

upgrading a single aspx file to 2.0

client side validation fails on netscape after conversion to vs 2005

some basic ?'s

what will happen? asp.net 1.1 code running on asp.net 2.0 framework

linkbutton in a repeater (header)

what are the advantages of migrating applications written in .net 1.1 to .net 2.0?

converting a 1.1 app done in notepad to 2.0

regarding module in asp.net 2.0

problems migrating to visual web developer 2005 express beta 2

asp.net 1.1 website acting up :(

"timeout expired" exception after asp.net2.0 beta 1 -> 2 migration

mysql.net not working on beta 2

why? (problems after migration)

registeronsubmitstatement() and

migrating webmatrix inline code projects to vwdx - any suggestions?

how to do with allowdefinition='machinetoapplication error?

member name cannot be same as enclosing type

failed to map the path ...

upgrading to 2.0

resources namespace not showing up in intellisense in app_code classes

unauthenticated users cannot see images

1.1 to asp.net 2.0 migration

  Privacy | Contact Us
All Times Are GMT