Visual Studio creates UserControls as wrong type

Discussion in 'ASP .Net' started by Carlo Razzeto, Nov 9, 2006.

  1. Hey, I've got a couple of production UserControls going in my companies web
    system, but I'm having a couple of annoying issues with them. One of them,
    for instance is a ScannerButton control which launches an in house scanning
    application from a web page. When vs.net 2005 add the variable to the
    ..aspx.desginer.vb file it adds it as System.Web.UserControl rather than
    WebAppNameSpace.ScannerButton which is what the object actually is. Is there
    any way around this? The control is registered through out the web system
    via the web.config system.web / pages / controls / add XML tag. It looks
    something like this..

    <system.web>
    <pages>
    <controls>
    <add tagPrefix="Empiric" tagName="ScannerButton"
    src="~/UserControls/ScannerButton.ascx" />
    <add tagPrefix="Empiric" tagName="DateBox"
    src="~/UserControls/DateBox.ascx" />
    </controls>
    </pages>
    </system.web>
     
    Carlo Razzeto, Nov 9, 2006
    #1
    1. Advertising

  2. Carlo Razzeto

    Akram Guest

    "Carlo Razzeto" <> wrote in message
    news:...
    > Hey, I've got a couple of production UserControls going in my companies
    > web system, but I'm having a couple of annoying issues with them. One of
    > them, for instance is a ScannerButton control which launches an in house
    > scanning application from a web page. When vs.net 2005 add the variable to
    > the .aspx.desginer.vb file it adds it as System.Web.UserControl rather
    > than WebAppNameSpace.ScannerButton which is what the object actually is.
    > Is there any way around this? The control is registered through out the
    > web system via the web.config system.web / pages / controls / add XML tag.
    > It looks something like this..
    >
    > <system.web>
    > <pages>
    > <controls>
    > <add tagPrefix="Empiric" tagName="ScannerButton"
    > src="~/UserControls/ScannerButton.ascx" />
    > <add tagPrefix="Empiric" tagName="DateBox"
    > src="~/UserControls/DateBox.ascx" />
    > </controls>
    > </pages>
    > </system.web>
    >
     
    Akram, Nov 10, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wh
    Replies:
    2
    Views:
    594
    Cowboy \(Gregory A. Beamer\)
    Jan 16, 2004
  2. Thirumalai
    Replies:
    0
    Views:
    750
    Thirumalai
    May 22, 2006
  3. rockdale
    Replies:
    1
    Views:
    692
    Juan T. Llibre
    Aug 23, 2006
  4. xman
    Replies:
    0
    Views:
    574
  5. xman
    Replies:
    1
    Views:
    662
    Victor Bazarov
    Aug 17, 2005
Loading...

Share This Page