Answered by:
Switch between design and source when having third party controls (ie. telerik) corrupts the aspx

Question
-
User-192500297 posted
I have a cuple of radGrid controls etc on my page, when I switch between source and design view, the Visual Studio produces thousends of #160; in my code, every second line approx. Alot of is also created. The second problem is that is changes the tagPrefix on my controls, see example below.
I first see this with visual studio 2008 beta 2, so I was happy when RTM got out :) But there is the problem as well?
Hopefully any have an idea? I have checked arround some, and people get this behaviour in 2008 when using other third party controls, so I dont think it has any thing with telerik controls to do.
Suggestions?
Best regards
Arild
NorwayHere is an example of "corrupted" source (sorry for the "mess"):
</
radM:radG:PageView>
<radM:radG:PageView ID="pageAssessment" runat="server" Width="100%">  <table style="border-left:solid 1px gray">                                       
<tr>                                           
<td>                                               
<div id="divAssessmentGrid" runat="server" style="width: 600px">                                                   
<radM:radM:radG:RadGrid ID="gridAssessments" runat="server" AutoGenerateColumns="False" GridLines="None" Width="100%"> <mastertableview> <Columns> <radM:radM:radG:GridBoundColumn HeaderText="CutOff"> </radM:radM:radG:GridBoundColumn> <radM:radM:radG:GridBoundColumn HeaderText="Probability"> </radM:radM:radG:GridBoundColumn> <radM:radM:radG:GridBoundColumn HeaderText="Consequence"> </radM:radM:radG:GridBoundColumn> <radM:radM:radG:GridBoundColumn HeaderText="Prob.value"> </radM:radM:radG:GridBoundColumn> <radM:radM:radG:GridBoundColumn HeaderText="Cons.value"> </radM:radM:radG:GridBoundColumn> <radM:radM:radG:GridBoundColumn HeaderText="Risk Level"> </radM:radM:radG:GridBoundColumn> </Columns>                                               
</div>Thursday, November 22, 2007 4:30 AM
Answers
-
User-192500297 posted
Some more information: this seems not an issue if all the tagPrefix lines on top of the page has the same tagPrefix set.
Some of my page:<%
@ Register assembly="RadGrid.Net2" namespace="Telerik.WebControls" tagPrefix="radG" %><%
@ Register assembly="RadMenu.Net2" namespace="Telerik.WebControls" tagprefix="radG" %>When the tagPrefix for one of them was radM, this problem occured alot. Changed all to radG, havn't experienced problems yet. But this has to be a bug in Visual Studio 2008?!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, November 22, 2007 11:20 AM
All replies
-
User-192500297 posted
Some more information: this seems not an issue if all the tagPrefix lines on top of the page has the same tagPrefix set.
Some of my page:<%
@ Register assembly="RadGrid.Net2" namespace="Telerik.WebControls" tagPrefix="radG" %><%
@ Register assembly="RadMenu.Net2" namespace="Telerik.WebControls" tagprefix="radG" %>When the tagPrefix for one of them was radM, this problem occured alot. Changed all to radG, havn't experienced problems yet. But this has to be a bug in Visual Studio 2008?!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, November 22, 2007 11:20 AM -
User-1363174918 posted
Does you page have a master page? Perhaps some other control is registered for the same namespace?
Monday, November 26, 2007 7:30 PM -
User-192500297 posted
No, this is not in a master page, a strait forward aspx page. Yes, when you drag in for example a grid control and a treeview control from Telerik, you get two lines on top of the page (in source) both have namespace="Telerik.Controls" but default they have different tagPrefix. Have worked now for a while after applying my fix (setting both the namespace (for the telerik controls) to the same) and have not seen the problem after, but since this will "destroy" the aspx source code by default I guess its a bug that needs to be fixed.
Thanks :)
Tuesday, November 27, 2007 6:08 AM -
User671611968 posted
I faced the same situation. I designed a composite webcontrol based on AjaxToolkit controls. such as a text box combined with a requirevalidator control. there are always many annoying ' ' automatically generated between begin tag and end tag of the newly designed control. Could you please inform me of the solution. thank you very much!Tuesday, May 20, 2008 2:43 PM -
User-1363174918 posted
This is addressed in SP1
Tuesday, May 20, 2008 6:12 PM -
User-1455795415 posted
Well I have SP1Beta1 installed and I still get the exact same problem. Did someone report this to telerik? I would be curious to see what they are saying about it.
Eric
Wednesday, May 21, 2008 9:50 AM -
User-1363174918 posted
May I have repro steps and sample markup?
Monday, May 26, 2008 9:10 PM -
User671611968 posted
It is difficult to reproduce the situation. But it happens very often. For example, I put a self-designed webcontrol(SC1:MultiLineBox) on the page.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><o:p> </o:p><o:p></o:p> <o:p></o:p><SC1:MultiLineBox ID="MultiLineBox1" runat="server" MaxLength="1000" Rows="6" Width="875px" LimitMax="" LimitMin="" RequireInput="False" TextMode="MultiLine" WatermarkCssClass="" WaterMarkText="" BorderColor="Blue" BorderWidth="1px" > textstring</SC1:MultiLineBox>Thank you!
Thursday, June 12, 2008 11:55 AM -
User-1455795415 posted
Yes I agree, it is difficult to repreduce and seem to be somehow random. In my case the injected code happens a lot in between the ajax update panel tags.
Eric
Thursday, June 12, 2008 12:06 PM -
User1641866971 posted
Does anyone know if this problem has ever been resolved? I also have SP1 beta installed and I still get the error.
Thanks,
-Matt
Monday, June 23, 2008 9:20 AM -
User-1363174918 posted
Let's check if it is the same issue or not. Can you provide repro steps in your case?
Tuesday, June 24, 2008 4:06 PM -
User-75219266 posted
I have hit this several times with VS2008-SP1 (9.0.21022.8). I have a very large page (tab container, multiple formviews, etc). I don't have repro steps for it as I often don't notice exactly when it happens (due to the size of my page). But I'll notice at run-time when the UI of the page is off because of all the $nbsp; that have been inserted.
I suspect this may be related to the bug where the mouse is sometimes frozen when selecting multiple cells in a table in the Designer. Basically have a table with multiple rows and columns. It probably helps to have a big page (to slow things down). Select one of the cells. Drag with the mouse to select a second cell (I do this often to expose the "Table" handle). Often, this will freeze up VS. The mouse will move, but nothing happens when you click. If you click out of VS to another app, usually you can get mouse control back. Sometimes, not always, when mouse control comes back it seems to think it should be sizing the row height and the table row will grow or shrink depending on how you move your mouse. If you click outside VS again, usually this stops. If I was a bettin' man, that would be my guess for when the s are getting inserted.
Sorry I can't provide better repro steps or code, but I can confirm it is still happening in SP1. I've probably had it happen 5 times since updating to SP1.
Tuesday, September 23, 2008 9:21 PM -
User-2120300451 posted
I'm seeing a similar problem (of course, it could be a totally different issue). I am running VS 2008 Pro SP1 as admin on Vista Business SP1. I have several pages with two Infragistics WebPanel controls and the UltraWebMenu on them. I have been experiencing minor corruption in the markup of the aspx files nearly every da this week. For example, today I did the following
-
Used the property panel to change the heading text of a Infragistics WebPanel
-
Ran the site and received a parsing error.
-
Looking at the file, found a few characters in the control before the WebPanel were missing
The text should have been:
<asp:Label ID="lblPageHeader" runat="server" Text="Your Dashboard "
CssClass="miniHeader"></asp:Label>
<hr />
A welcome to the application would go here.However, this is what I found:
<asp:Label ID="lblPageHeader" runat="server" Text="Your Dashboard "
CssClass="miniHeader"></asp:Label
A welcome to the application would go here.where the end bracket of the asp:label and entire hr tag were missing. Unfortuantely, this did not occur in subsequent attempts to repro. However, this is fairly similar to the corruption I've experienced the last few days - a portion of the markup just disappears.
best,
ScottThursday, November 20, 2008 3:35 PM -
-
User844661286 posted
Sample problem here. I'm running VS 2008 Pro SP1 on a Vista Home Edition. I notice the problem more when I add a table then drag components, TextBoxes and etc, into the table cells. After switching views to source and doing a select and replace, it found over 280,000 instances of . VS 2008 after about 20 minutes of trying to remove the stopped responding. Ended up having to open the aspx page in Note Pad and removing all these . Very annoying to say the least!
RL
Thursday, December 11, 2008 12:20 PM -
User-1363174918 posted
If you don't mind sending your page and repro steps to me: mikhaila-at-microsoft-dot-com
Thursday, December 11, 2008 2:33 PM -
User998704646 posted
Any news on a resolution for this? Find and replace on every minute is.. less than ideal. *sigh*
Friday, December 19, 2008 5:27 AM -
User-1363174918 posted
Since the issue does not repro every time, I'd appericate pages/minimal repro steps you may be able to provide: mikhaila-at-microsoft-dot-com.
Since original issue in the beginning of the thread was resolved, I am going to lock the thread - please start new thread for new issues in order to reduce unnecessary e-mails to people that may not be interested in the thread anymore.
Friday, December 26, 2008 10:17 PM