Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web User Control 101

Web User Control 101

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-netdotnetvisual-studio
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    antoine orchus tech
    wrote on last edited by
    #1

    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!"

    C G 2 Replies Last reply
    0
    • A antoine orchus tech

      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!"

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      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#

      A 1 Reply Last reply
      0
      • C Colin Angus Mackay

        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#

        A Offline
        A Offline
        antoine orchus tech
        wrote on last edited by
        #3

        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!"

        1 Reply Last reply
        0
        • A antoine orchus tech

          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!"

          G Offline
          G Offline
          gadgetfbi
          wrote on last edited by
          #4

          build the solution first!?! Hit the wee play button in the toolbar, or Debug->Start.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups