Web User Control 101
-
Hi! This is a straight question:laugh: You create a C# ASP.NET application with Visual Studio 2002 Entreprise Edition that you burned from the web, because you're a cheap bastard:cool:. You name it WebApplication1. You then add a Web User Control and dress it up a bit with a couple of Picture controls, and a Button control, just to be cute. Again, you name it WebUserControl1... you also have no sense of style.:eek: Basically, your Microsoft programming life sucks. You don't yet know sh$t about ASP.NET and the CLR and the wizard of OZ.:doh: You then try to see the bugger (WebUserControl1) in the browser by right clicking on it (in the solution explorer) and selecting "view in browser". Zit! A server error greets your enthusiastic attempt.:omg: Error message: Impossible to load the type 'WebApplication1.Global'. Error source: "Line 1: <%@Application codebehind="Global.asax.cs" Inherits="WebApplication1.Global"%> What I did: I created an asp.net project, added a web user control, add some images and a button to it and tried to view it in the browser. Pretty straightforward approach. What am I missing ??? thanks,:-D Antoine:laugh: This by our hands that dream, "I shall find a way or make one!"
-
Hi! This is a straight question:laugh: You create a C# ASP.NET application with Visual Studio 2002 Entreprise Edition that you burned from the web, because you're a cheap bastard:cool:. You name it WebApplication1. You then add a Web User Control and dress it up a bit with a couple of Picture controls, and a Button control, just to be cute. Again, you name it WebUserControl1... you also have no sense of style.:eek: Basically, your Microsoft programming life sucks. You don't yet know sh$t about ASP.NET and the CLR and the wizard of OZ.:doh: You then try to see the bugger (WebUserControl1) in the browser by right clicking on it (in the solution explorer) and selecting "view in browser". Zit! A server error greets your enthusiastic attempt.:omg: Error message: Impossible to load the type 'WebApplication1.Global'. Error source: "Line 1: <%@Application codebehind="Global.asax.cs" Inherits="WebApplication1.Global"%> What I did: I created an asp.net project, added a web user control, add some images and a button to it and tried to view it in the browser. Pretty straightforward approach. What am I missing ??? thanks,:-D Antoine:laugh: This by our hands that dream, "I shall find a way or make one!"
antoine@orchus-tech wrote: Pretty straightforward approach. What am I missing ??? The web page? :~ --Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#
-
antoine@orchus-tech wrote: Pretty straightforward approach. What am I missing ??? The web page? :~ --Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#
Nope. :p Dunno why, but even with trying to view the pre-created WebForm1.aspx by rightclicking on it in the solution browser and selecting 'View in Browser', the page gets the same error... The sucker can't read the Global.asax.cs type. :omg: mmm... :~ Got Ideas ? ;):laugh: Thanks Antoine This by our hands that dream, "I shall find a way or make one!"
-
Hi! This is a straight question:laugh: You create a C# ASP.NET application with Visual Studio 2002 Entreprise Edition that you burned from the web, because you're a cheap bastard:cool:. You name it WebApplication1. You then add a Web User Control and dress it up a bit with a couple of Picture controls, and a Button control, just to be cute. Again, you name it WebUserControl1... you also have no sense of style.:eek: Basically, your Microsoft programming life sucks. You don't yet know sh$t about ASP.NET and the CLR and the wizard of OZ.:doh: You then try to see the bugger (WebUserControl1) in the browser by right clicking on it (in the solution explorer) and selecting "view in browser". Zit! A server error greets your enthusiastic attempt.:omg: Error message: Impossible to load the type 'WebApplication1.Global'. Error source: "Line 1: <%@Application codebehind="Global.asax.cs" Inherits="WebApplication1.Global"%> What I did: I created an asp.net project, added a web user control, add some images and a button to it and tried to view it in the browser. Pretty straightforward approach. What am I missing ??? thanks,:-D Antoine:laugh: This by our hands that dream, "I shall find a way or make one!"