MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Suddenly can't edit web parts  (Mono Support )

Viewed 49171 time(s), 6 post(s) 12/14/2012 2:00:33 PMby erin0201
erin0201

erin0201

12/14/2012 2:00:34 PM
Hello,

I removed one web part yesterday using the trash can icon and after that I've been unable to edit web parts.
At the top of the page it says I'm in "user view" and changes will only be seen by me.

Then when I hover over a web part I don't get the trash icon to be able to remove it.
I did try to manually edit the default.aspx page to add a video to the page without it being embedded in an iframe. Could this have broken the functionality on the web parts?

Is there a way to fix this without creating a whole new default page from scratch?
Also, I noticed when you open up the default.aspx page in notepad it doesn't show it's web parts or content like other pages do. It shows all of the default text and advertising content. Where is the actual code and content for the default.aspx page stored so that I can edit manually if it won't let me delete the parts within the browser?

Thanks!

This content has not been rated yet. 
453 Reputation 61 Total posts
denis

denis

12/20/2012 11:52:29 AM
Hi Erin,
I'm not sure that I understand the second part of your question. There are a few web parts placed on the default page, and they can be clearly seen in the page code. Could you please describe this in more detail?
As for the first part, you should first switch to the shared view - personalization modes are explained in the user manual. You will get the trash icon when you switch to design mode  (there is a large button just below the personalization mode indicator), but only for parts that are created dynamically (not for parts that are hardcoded into the page).
This content has not been rated yet. 
7207 Reputation 956 Total posts
erin0201

erin0201

12/20/2012 12:39:06 PM
The question I had about the default page is that for instance.  When I open default.aspx in notepad it shows default content on it like all of the "Monox allows you to..." content like this:

<table cellpadding="0" cellspacing="0" class="two-columns">
    <tr>
        <td class="left-column-rss" id="rss">                                                  
            <portal:PortalWebPartZoneTableless ID="leftWebPartZone" runat="server" Width="100%" ChromeTemplateFile="Standard.htm" HeaderText='<%$ Code: PageResources.Zone_LeftPartZone %>'>
                <ZoneTemplate>
                    <MonoX:Editor runat="server" ID="editor1" Title='<%$ Code: PageResources.Title_LeftSection %>' DefaultDocumentTitle='<%$ Code: PageResources.Title_LeftSection %>' >
                    <DefaultContent>
                        <h2>Content Management</h2>
                        <img src="/App_Themes/Default/img/content-management-icon.png" alt="Content management" />
                        <div>
                        Inspired by the latest Web technologies and built on top of the Web parts infrastructure,
                        MonoX allows you to design and develop next generation ASP.NET Web
                        portals and applications. It features an intuitive, user-friendly user interface that supports Web parts framework,
                        drag and drop, WYSIWYG interface, content versioning, advanced security model, cross-browser support,
                        advanced templating engine and multi-level personalization.                    
                        <ul>
                            <li><a href="/MonoX/Pages/Features.aspx">>> Features</a> </li>
                            <li><a href="/MonoX/Pages/AdditionalResources.aspx">>> Related resources</a> </li>
                            <li><a href="/MonoX/Pages/News.aspx">>> News</a> </li>
                            <li><a href="/MonoX/Pages/SocialNetworking/EventCalendar.aspx">>> Calendar</a> </li>
                            <li><a href="/ContentPage/ChangeLog/">>> Change log</a> </li>                                                           
                        </ul>
                        </div>
                    </DefaultContent>   
                    </MonoX:Editor>               
                </ZoneTemplate>
            </portal:PortalWebPartZoneTableless>                            
        </td>
        <td class="right-column">
            <portal:PortalWebPartZoneTableless ID="rightPartZone" runat="server" Width="100%" ChromeTemplateFile="Standard.htm" HeaderText='<%$ Code: PageResources.Zone_RightPartZone %>'>
            <ZoneTemplate>
                <MonoX:Editor runat="server" ID="editor2" Title='<%$ Code: PageResources.Title_RightSection %>' DefaultDocumentTitle='<%$ Code: PageResources.Title_RightSection %>'>
                <DefaultContent>
                    <h2>Social Networking</h2>
                    <img src="/App_Themes/Default/img/social-networking-icon.png" alt="Social networking" />
                    <div>
                    MonoX comes with everything you need to build fully-featured social environments, including:  user profiles, OpenID support, friendship modules,
                    scalable multi-user blog engine with automatic anti-spam protection, photo albums, customizable group architecture with support for public and private groups,
                    discussion boards, file galleries, support for activity streams (event logs), messaging, video conversion and sharing, wall and comments.
                    <ul>
                            <li><a href="/MonoX/Pages/SocialNetworking/Dashboard.aspx">>> Social networking dashboard</a> </li>
                            <li><a href="/blog/posts/MonoX/">>> Blogs</a> </li>
                            <li><a href="/MonoX/Pages/SocialNetworking/Discussion.aspx">>> Discussion boards</a> </li>
                            <li><a href="/MonoX/Pages/SocialNetworking/PhotoGallery.aspx">>> Photo albums</a> </li>
                            <li><a href="/MonoX/Pages/SocialNetworking/Groups.aspx">>> Groups</a> </li>
                    </ul>
                    </div>
                     
                </DefaultContent>
                </MonoX:Editor>
            </ZoneTemplate>
            </portal:PortalWebPartZoneTableless>  
        </td>
    </tr>
</table>
When the page is actually opened in the browser that content is not there at all.
And my web parts that I've added like iframes are there in the browser. But as you can see above, they don't actually show up when I open default.aspx in notepad. Where are these web parts physically at since they're not stored on the default.aspx page? Where is the default.aspx page pulling these from?

Also, when I click on Design Mode, the trash can doesn't show up for my added iframe web parts and it still says I'm in user view. I have added 3 iframe web parts to the page that shouldn't be hard coded at all and every time I click Design Mode it still says I'm in user view and won't show me a trash icon to get rid of them. So then I tried opening the default.aspx page in notepad to try and manually remove them, but they don't actually show up on that page. That's what I mean by where is the content for the default.aspx page actually stored? Where is it pulling that web part information from? Since it's not actually showing up in the code on the default.aspx page.
I hope that helps!

Thanks much!!
This content has not been rated yet. 
453 Reputation 61 Total posts
erin0201

erin0201

12/20/2012 12:50:58 PM
Here is some of the page source code for that same default.aspx page as above.  This is what it shows when viewed in the browser.  You can see that the web parts are there from this view.  I just can't get Design mode to let me edit them all of a sudden.  The one day I tried to hard code an embedded video into the page with notepad (which does work) and after trying to do that, the page won't let me get fully into Design mode nor show the trash can nor show me in shared view so that I can remove the other parts.  So I had to remove the hard coded embedded video because I already had it shown in an iframe web part that I now can't remove.

<div class="web-part-container">
    <table>
    <tbody>
        <tr>
            <td><div class="web-part-menu-button">
 
            </div><div class="web-part-menu-content">
                <table>
                    <tbody>
                        <tr>
                            <td style="white-space:nowrap;"><a title="Edit the Web part properties" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$featuredProjectPartZone','partverb:editVerb:wp610203063')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Edit the Web part properties" src="/App_Themes/DefaultAdmin/img/verbs/properties.png" alt="Properties" style="border-width:0px;" /></a><a title="Copies the Web part to the clipboard" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$featuredProjectPartZone','partverb:copyVerb:wp610203063')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Copies the Web part to the clipboard" src="/App_Themes/DefaultAdmin/img/verbs/copy.png" alt="Copy" style="border-width:0px;" /></a><a title="Minimizes the Web part" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$featuredProjectPartZone','minimize:wp610203063')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Minimizes the Web part" src="/App_Themes/DefaultAdmin/img/verbs/minimize.png" alt="Minimize" style="border-width:0px;" /></a><a title="Exports the personalization data for a Web part into the XML file" onclick="return (__wpmExportWarning.length == 0 || confirm(__wpmExportWarning))" href="/Default.aspx?__WEBPARTEXPORT=true&webPart=wp610203063" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Exports the personalization data for a Web part into the XML file" src="/App_Themes/DefaultAdmin/img/verbs/export.png" alt="Export" style="border-width:0px;" /></a></td>
                        </tr>
                    </tbody>
                </table>
            </div></td>
        </tr>
    </tbody>
</table>
    <div class="web-part-title" id='WebPartTitle_wp610203063'><span>401K</span> </div>
    <div class="web-part-body"><div class="IframeTicker">
<iframe id="ctl00_ctl00_ctl01_ctl00_cp_cp_wpm_wp610203063_wp1177411137_iframe" frameborder="0" height="220px" width="975px" src="http://colintranet/intranet/ticker.html"></iframe></div></div>
</div>
 
    </div>   
                    </td>
            </tr>
            <tr>
                <td class="first">
                     
                </td>               
                <td class="second">
                     
                </td>
                <td class="third">
                 
                </td>
            </tr>
        </table>                                   
    </div>
    </div>
    <table cellpadding="0" cellspacing="0" class="two-columns">
        <tr>
            <td class="left-column-rss" id="rss">                                                  
                <div id="ctl00-ctl00-ctl01-ctl00-cp-cp-cp-cp-leftWebPartZone" class="webPartZoneClass" style="overflow:visible;">
        <div class="web-part-container">
    <table>
    <tbody>
        <tr>
            <td><div class="web-part-menu-button">
 
            </div><div class="web-part-menu-content">
                <table>
                    <tbody>
                        <tr>
                            <td style="white-space:nowrap;"><a title="Edit text in this Web part" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$leftWebPartZone','partverb:HtmlEdit:gwpeditor1')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Edit text in this Web part" src="/App_Themes/DefaultAdmin/img/verbs/edit.png" alt="Edit" style="border-width:0px;" /></a><a onclick="return confirm('The content of this Web part will be re-set to its initial value. Continue?');" title="Reset the content of this Web part" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$leftWebPartZone','partverb:HtmlReset:gwpeditor1')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Reset the content of this Web part" src="/App_Themes/DefaultAdmin/img/verbs/reset.png" alt="Reset" style="border-width:0px;" /></a><a title="Edit the Web part properties" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$leftWebPartZone','partverb:editVerb:gwpeditor1')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Edit the Web part properties" src="/App_Themes/DefaultAdmin/img/verbs/properties.png" alt="Properties" style="border-width:0px;" /></a><a title="Copies the Web part to the clipboard" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$leftWebPartZone','partverb:copyVerb:gwpeditor1')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Copies the Web part to the clipboard" src="/App_Themes/DefaultAdmin/img/verbs/copy.png" alt="Copy" style="border-width:0px;" /></a><a title="Minimizes the Web part" href="javascript:__doPostBack('ctl00$ctl00$ctl01$ctl00$cp$cp$cp$cp$leftWebPartZone','minimize:gwpeditor1')" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Minimizes the Web part" src="/App_Themes/DefaultAdmin/img/verbs/minimize.png" alt="Minimize" style="border-width:0px;" /></a><a title="Exports the personalization data for a Web part into the XML file" onclick="return (__wpmExportWarning.length == 0 || confirm(__wpmExportWarning))" href="/Default.aspx?__WEBPARTEXPORT=true&webPart=gwpeditor1" style="color:Black;font-family:Arial;font-size:10px;text-decoration:none;"><img title="Exports the personalization data for a Web part into the XML file" src="/App_Themes/DefaultAdmin/img/verbs/export.png" alt="Export" style="border-width:0px;" /></a></td>
                        </tr>
                    </tbody>
                </table>
            </div></td>
        </tr>
    </tbody>
</table>
    <div class="web-part-title" id='WebPartTitle_gwpeditor1'><span>Left section</span> </div>
    <div class="web-part-body">
 
<div class="html-editor">
     
     
    <div style="text-align: left;">
<div class="contentTitle"><strong>COLWELL NEWS</strong></div>
<br />
The <span style="color: #000000;"><strong>2012</strong></span> is now available.  Click <a href="/Intranet/Documents/12.pdf">Here</a> to review it!<br />
<br />
The <span style="color: #000000;"><strong>2011</strong></span> are now available!  <a tabindex="0" href="Intranet/sar.aspx">Click Here</a> to review them.<strong><br />
<br />
</strong></div>
Did you catch our "<span style="font-family: arial; color: #000000;"><strong>How It's Made</strong></span>" episode??  If not, <a href="Intranet/flash/main/howmade.aspx" tabindex="0">Click Here</a> to check it out!<br />
<br />
<a href="mailto:itkv@colwellcolour.com" tabindex="0">Click Here</a> to leave feedback <br />
or suggestions for new intranet content.
     
     
     
 
     
     
</div></div>
</div>
This content has not been rated yet. 
453 Reputation 61 Total posts
denis

denis

12/20/2012 1:09:25 PM
I would have to access your page to see what's going on, or at least see the full source for your changed default.aspx. Web parts are either hardcoded on the page (like the editors in the code you pasted, but the content for those editors is stored in the database), or serialized in the database if they are generated dynamically (by dropping the part on the page in the admin mode).
This content has not been rated yet. 
7207 Reputation 956 Total posts
erin0201

erin0201

12/20/2012 1:19:34 PM
Sure, we can do a remote session no problem! I've sent you an email to the address you had helped support me with before.

Thanks!
Erin
This content has not been rated yet. 
453 Reputation 61 Total posts