Compilation issue with ascx controls.

I have a bunch of ascx controls which I am loading at runtime.   Below is an example. 

        if (e.PageView.ID.StartsWith("Submissions"))
        {
            controls_SubmissionsList submissionsList = (controls_SubmissionsList)LoadControl("controls/submissionslist.ascx");
            submissionsList.InquiryId = Convert.ToInt32(e.PageView.ID.Remove(0, 11));
            e.PageView.Controls.Add(submissionsList);
        }

 Each time I edit anything in the App_Code directory and try and run it I get the error:

     Error 1 The type or namespace name 'controls_SubmissionsList' could not be found (are you missing a using directive or an assembly reference?) c:\SCID\SCID.Web\Default.aspx.cs 40 13 c:\SCID\SCID.Web\

To fix this I need to clean and rebuild the entire solution.  This is a really time consuming and annoying, really slowing my workflow.  Does anyone have any ideas on how to solve this???

 

 

 

 


Plz remember to click "Mark as Answer" if this helped you.
0
Ugly
5/5/2009 12:23:38 AM
asp.net.web-forms 93655 articles. 3 followers. Follow

3 Replies
1054 Views

Similar Articles

[PageSpeed] 30

 Hi,

http://forums.asp.net/t/409978.aspx

Chck the above Descison It shows who To ad user control dynaically.....

What is "controls_SubmissionsList" ??


Thanks
Avinash Tiwari

Remember to click “Mark as Answer” on the post, if it helps you.
-1
qwe123kids
5/5/2009 5:18:01 AM

 

<%@ Assembly src="src/MySource.vb" %>
http://msdn.microsoft.com/en-us/library/a7c375wt(VS.71).aspx
We All move to our original place.
Don't forget.

Imran Baloch
1
imran_ku07
5/5/2009 5:19:11 AM

Is controls_SubmissionsList the name of the class?
Can you try to drag n drop the control on the page and see if that works. 


Bind GridView to Dynamically created DataTable | Bind DataTable to DropDownList

My Blog
-1
shahed
5/5/2009 6:36:32 AM
Reply:

Similar Artilces:

Controlling web control instances on Web Form
I have created a composite control, extending functionality of the Hidden Control. However, I would like to prevent the user from adding this control to the page multiple times. I only want one instance of the control on the Web Form. What setting in my project to I adjust to enable this functionality? I can not find it in any of the books that I have referenced. Is this a setting or is this code that has to be added to the inheriting class. Looks like there is no standard apporach. But I'd consider using static field to count number of created objects and throw exception if second object ...

Any issues while browing web forms with IE web controls after install Windows XP SP2
My window operating system is Windows XP SP2. After I installed it, I can view the treeview, multipage, toolbar IE Web Control display, and working properly on localhost. However, when other users try to access my page from their web browser (IE6), it display nothing. What is the possible cause(s) of this issue? FYI: I had turned off Firewall, came along with SP2. Thanks....

How to access a control on a web form from anoter web form
hi all I have this scenarios i have two web forms, one called form1 and the other called form2 form1 has a label with id "lbl1" is it possible to access lbl1 from form2, change its text permenantly? thanks.   refer: http://dotnetslackers.com/Community/blogs/haissam/archive/2007/11/26/ways-to-pass-data-between-webforms.aspxSSNPlease remember to click "Mark as Answer" on the post that helps you. MinaSamy: hi all I have this scenarios i have two web forms, one called form1 and the other called form2 form1 has a label with id "lbl1" is it p...

how to call controls of web control form in coding of other forms?
hello everyone i have one problem i have created one webcontrol shoppingcart in which there are two labels one of qty and other of amt which are initially enable =falsenow on other page(aspx page) i have one txtbox of qty as txtqty i want tat as soon as user enters qty txtqty and clicks on add cart button it shd be display d value in lblqty of web control shopping cart make sure i m using datalist on aspx page so give me suggestions on tat basis and my coding is in vb. plz give ur suggestions as fast as possible. Neeti what do you mean by webcontrol.... it this user control or normal ...

non .net form issue within a .net form tag
this may be a bad question... but I am adding a shopping cart to my asp.net website and it calls for the following code for the 'buy now' buttons: <form method="POST" action=http://www.cart.net/cart.aspx/CartName><input type="hidden" name="ID" value="IDName"><input type="hidden" name="Describe" value="IDName Description"><input type="hidden" name="Price" value="100.00"><input type="hidden" name="QtyMax" value="1"><input t...

.Net Windows Control in Web Form
Hi all,How can I use a .Net windows control in a web form? I use object tag but it doesn't work and displays empty.Thanks in advance cheers Hi, you can check this article out: Hosting a Windows Control in a Web Form. This shows only how to host the control. If you want interaction with the client you can do this by setting the correct CAS (Code Access Security) settings on the client pc. Grz, Kris.Read my blog. Handy Firefox plugins for web developers.Workaround for non working Mark as answer buttons. Thanks guys for your replycheers...

Implementing .Net Form into an APS.net web form, can this be done
I am new here, but have been searching for a while, and may not have the correct lingo to find what I am looking for.  I am tasked with implementing a .exe application that was writen vb6 then converted to .net into a new website my team is developing. The idea is to put each of the 3 different forms in this .exe application of 3 different .aspx pages. I have attempted multiple things to get this into the page and even started to just rewrite it as an ASP.net web form, but even then I can't reuse any of the code since the System.Web.UI.Page doesn't inherit the sa...

Can you return .net web controls in a .net page from a web service?
I've got a problem with a project. I've got to compile an entire .net page and return it as part of a Web Service for display. The problem I have is that I need to add WebControls and functionality to the page so that not only the html content and images are displayed (which I've managed) but that textboxes, labels, buttons and datasets can be displayed also. Essentially I need to make a call from one site for a page, populate the page and return it in a state as though it resided on the same server/webspace as the calling page. Code is currently built as follows into a string: strOpenHT...

Looping through controls in VB.Net Web Form
I need to disable every imagebutton. In VB6, I would have done it like this: 1 Dim iButton As ImageButton 2 For Each iButton In Me.Controls 3 iButton.Enabled = False 4 Next In .Net, I get a "Specified cast is not valid" errror on line 2. Using Page.controls in place of Me.Controls also produces the same error. So, I tried this (and multiple variations): 1 Dim ibControl As Object 2 For Each ibControl In Me.Controls 3 If TypeOf ibControl Is ImageButton Then 4 ...

calling user control (.ascx) in web form?
Hi, I have a user control file which is displaying a data grid, the code including "Sub Page_Laod()" ... Originally, this part is in my .aspx page ... now I seperate it in a user control file, and use <%@ Register TagPrefix="dg" TagName="dgCC" Src="\ss1\control\dg.ascx" %> to call the user control file in my .aspx page. I have 2 questions ... 1) which one is faster? Using user control or includes the data grid part in my .aspx page directly? I create a user control coz' other pages might need to use the same data grid. 2) In my user control page,...

VB.NET web form Image control SizeMode
The "PictureBox" control in VB.NET has a property called "SizeMode". This allows you to choose how the image will display in the picture box if it is not the same size as the picturebox. However the "image" control for a VB.NET web form (in an ASP.NET application) does not have such a property, instead all images seem to be set to "StretchImage". I want them to be set to "normal", how can I do this? I thought of building my own user control but this would be silly because there must be a simpler way....

how ascx files compile in web control library projects.
Hi all,   I created a web control library project using vs2k5(New Project-> Visual C# - Windows ->Web Control Library), & it didn't give me an option of creating .ascx file, or Web User Control - the only web custom control it offer is the one inheritting from WebContro & with no design mode. So I copy/pasted my custom user control which is two files: Confirmation.ascx & Confirmation.ascx.cs: First one is very concise: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="~/OrderForm/Confirmation.ascx.cs" Inherits="Confirmation" %> <asp:Te...

2.0
We are getting the following error when opening a control that inherits from DotNetNuke.PortalModuleControl: File could not be loaded in web forms designer. Is there somehting that should be done to PortalModuleControl to allow us to work with the VS.net designer when creating usercontrols? I just added these lines to the DesktopControls.vb to enable designer support. Anything wrong with putting this into the release? #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepT...

Web Form and Web User Control
Hello, I have a Web User Control (ascx) that includes a button. This button has an onclick event method. This Web User control is included into a Web Form. (thru LoadControl). However, when I click on the button, the event method is not executed. What should I include in order it works fine? Thanks in advance. GAA. Using Loadcontrol is using dynamic controls and when using dynamic controls you must recreate the same dynamic controls ono postback to econstruct the page control tree. It is best if you do this during the Page PreInit event. How complex are your controls ...

Web resources about - Compilation issue with ascx controls. - asp.net.web-forms

Other compilation albums of Westlife - Wikipedia, the free encyclopedia
The album consists of a range of well known hits, remixes, b-sides and international language versions. "Don't Calm The Storm" and "I Won't Let ...

Emma Watson American Accent Funny Compilation - YouTube
Like My Facebook Page http://www.facebook.com/emmaniacs A Compilation of Emma Watson's American Accent

This compilation of hoverboard fails is blowing up on YouTube
So you want to get yourself one of those pricey hoverboards that everyone is talking about. That’s great and all, but make no mistake: These ...

YACHT, Robert Pollard, Sondre Lerche & Jherek Bischoff and more on Amazon's 'Indie for the Holidays' ...
It's about that time when musicians of all styles start putting out their versions of Christmas/holiday classics (or are writing their own). ...

This Video Compilation of People Getting Surprised With New Puppies Will Make You Wish Someone Would ...
Submitted by: (via TwentyTwoWords ) Tagged: dogs , puppies , cute , surprise , Video Share on Facebook

Video Compilation Of Tesla P85D Drag Racing Gas Cars
... It has faced off against virtually every gasoline-powered car on the planet and won. It has even beaten polo ponies and [&hellip Video Compilation ...

Put That Thing On Ice, STAT: Compilation Of All The Lightsaber Amputations In Star Wars
This is a video compilation of all the non-doctor performed amputations in the Star Wars film franchise . It was pretty brutal. I can't help ...

Connor Franta Debuts Fourth Compilation Album 'Common Culture Vol 4'
Connor Franta is back with another compilation album and it's going to be even more awesome than last year's! The ...

A Compilation of Movie Scenes Where the Camera Pushes In on the Hero or Villain
Burger Fiction share some of their favorite movie scenes where the camera pushes in on the hero or villain.

Cats and Cucumbers: A Compilation
YouTube Link In this video compilation, cats bravely face the devil's vegetable: cucumbers. They're green, crunchy and evil, and they've invaded ...

Resources last updated: 12/31/2015 4:27:56 AM