2

I have created 3 user controls in three difference directories(Comment,Comment1,Comment2) like Comment.ascx Comment1.ascx Comment2.ascx

Reference those as per give below:

Comment.ascx > Comment1.ascx Comment1.ascx > Comment2.ascx Comment2.ascx > Comment.ascx

And getting error like:

 Circular file references are not allowed.

As per some of forum I have set

batch="false"
in web config file but still I am getting error. Is there any solution for that ?
Jaimin Soni
  • 1,061
  • 1
  • 13
  • 29
  • var list = from a in users join b in country on a.countryid equals to b.countryid select new { a.username,c.countryname } – Jaimin Soni Mar 02 '16 at 09:31
  • Please refere this link :http://www.dotnet-tricks.com/Tutorial/linq/UXPF181012-SQL-Joins-with-C – Jaimin Soni Mar 02 '16 at 10:59
  • Also refer this link: http://stackoverflow.com/questions/5207382/get-data-from-two-tablesjoin-with-linq-and-return-result-into-view – Jaimin Soni Mar 02 '16 at 11:00
  • why loose focus while type in ace_wysiwyg editor in asp.net(you are using in brightable dashboard page),i'm not able to typing in this editor i have put in another page any extra thing for that? – Ghanshyam Lakhani Mar 31 '16 at 06:54

2 Answers2

1

There are two ways to solve the problem as this article mentions, although It's not recommended to use batch= "false" because of hurting the performance (Honestly I'm not sure about the authenticity) What is batch used for?

In my Asp.Net Website project, there were some kind of conflicts between two or more WebUserControls, I had multiple user controls and they were placed in multiple folders, so I read the error message which Visual studio gave me.

it was referring to the source of error which was a usercontrol, I changed the user control file location and placed it in another folder, then I pressed ctrl + shft + B to build the project, this time I encountered a few errors saying there were some incorrect addresses to the WebUserControl, so I corrected the declarative address (which comes at the top of the Asp page), It was something like this:

<%@ Register Src="~/Controls/XFolder/Receiver.ascx" TagName="ReceiverProperties" TagPrefix="mdc" %>

I changed it to this one:

<%@ Register Src="~/Controls/Receiver.ascx" TagName="ReceiverProperties" TagPrefix="mdc" %>

And built the project, everything was fine this time!

Personally, I have no idea if it's good or bad to add batch ="false" attribute since this part of the book named Asp.Net site performance secrets suggests to apply it same as this one!

Muhammad Musavi
  • 2,512
  • 2
  • 22
  • 35
0

You need to break the circular reference chain by putting the common code into a fourth assembly that can be used by the 3 user controls.

Polyfun
  • 9,479
  • 4
  • 31
  • 39