Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7763257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:36:51+00:00 2026-06-01T14:36:51+00:00

I am customizing the ribbon toolbar and adding a button to it. Whenever I

  • 0

I am customizing the ribbon toolbar and adding a button to it. Whenever I click on that button, it will open a aspx page allows authors to select some data, which gets appended to the existing RTF field content.

But when popup is opened it is having the below error in the browser (Internet Explorer).

I am inheriting Tridion page in the code behind file. When I try to use Response.Write() functions it is giving error like “Expected ;”. Please tell me the reason why it is giving the error like that? Early responce is appreciated. Thanks in advance.

PFB the related code:
Aspx page code behind file contents:

namespace ButtonReference.Popups
{     
    [ControlResourcesDependency(new Type[] { typeof(Popup), typeof(Tridion.Web.UI.Controls.Button), typeof(Stack), typeof(Dropdown), typeof(List) })]
    [ControlResources("RTFExtensions.ButtonReferenece")]
    public partial class PopupReference : TridionPage
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            TridionManager tm = new TridionManager();

            tm.Editor = "PowerTools";
            System.Web.UI.HtmlControls.HtmlGenericControl dep = new System.Web.UI.HtmlControls.HtmlGenericControl("dependency");
            dep.InnerText = "Tridion.Web.UI.Editors.CME";
            tm.dependencies.Add(dep);

            System.Web.UI.HtmlControls.HtmlGenericControl dep2 = new System.Web.UI.HtmlControls.HtmlGenericControl("dependency");
            dep2.InnerText = "Tridion.Web.UI.Editors.CME.commands";
            tm.dependencies.Add(dep2);

            //Add them to the Head section 
            this.Header.Controls.Add(tm); //At(0, tm); 
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            mySession = new Tridion.ContentManager.Session(@"");
            if (!Page.IsPostBack)
            {
                try
                {
                   if (true)                   
                             {}
                    else
                    {
                        //Response.Write("Invalid schema chosen");
                        return;
                    }
                }
            }
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:36:52+00:00Added an answer on June 1, 2026 at 2:36 pm

    Small remark: since your page will be used as a simple popup, you don’t need to load Domain Model related JavaScript stuff. Not loading it will reduce the load time for your page. To do that you need to set IsStandAloneView Tridion Manager property to false:

    tm.IsStandAloneView = false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am customizing the ribbon toolbar and adding a button to it.Whenever I click
I am customizing the ribbon toolbar and adding a button to it. Whenever I
I am customizing the ribbon tool bar by adding a button to it in
I am customizing the Tridion ribbon toolbar to add a button. How can I
During practice of customizing VirtualPathProvider, I found that it the custom VirtualPathProvider can be
I'm customizing the product view page and I need to show the user's name.
I'm working on customizing a SharePoint document library called Quality Documents so that when
I'm customizing a plugin that uses css3's rgba throughout, I'm trying to figure out
I'm customizing the UIButton programmatically here: button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setSelected:YES]; button.frame =
I have problem with customizing each page using pagecontrol and UIScrollView. I'm customizing Page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.