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 8360763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:32:43+00:00 2026-06-09T11:32:43+00:00

I am creating Tridion GUI Extension, in this i have created a button (InsertCP)

  • 0

I am creating Tridion GUI Extension, in this i have created a button (“InsertCP”) in the Ribbon toolbar.
The scenario is:

1.User selects any text from the Rich Text Box of the component
2.User clicks the “InsertCP” button from the ribbon toolbar.
3.when the user clicks the button , i am opening my custom aspx page.
4.From the custom aspx page, user can select “Component” and “Component Template”.
5.I am storing the selected component and component template tcm id in a variable.
6.I have submit button in the custom aspx page.
7.when the user clicks the submit button, i need to format the selected text as below in the Rich Text box source.

Ex:

<a href="componentid=tcm-00-000, componenttemplateid="tcm-00-000-00">Selected Text</a>

I have done upto the step 6, i am tryng the step 7, when i click the submit button am not able to submit the selected ID.

I am getting these error when i am adding tridion control in my aspx page

My ASPX page:

<html xmlns="http://www.w3.org/1999/xhtml"     xmlns:c="http://www.sdltridion.com/web/ui/controls"> 
<head runat="server">
<title></title>
<cc:tridionmanager runat="server" editor="ExampleEditor"     isstandaloneview="true">     
<dependencies runat="server">                
<dependency runat="server">Tridion.Web.UI.Editors.CME</dependency>         
 <dependency      runat="server">Tridion.Web.UI.Editors.CME.Controls</dependency>     
</dependencies> 
</cc:tridionmanager> 
</head>

<div>
    <asp:TextBox ID="txttags" runat="server" Width="800px"      ></asp:TextBox>       
    <asp:Button ID="btnsubmit" runat="server" Text="Submit"     onclick="btnsubmit_Click"  /> 

         <c:button id="InsertButton" runat="server" class="customButton greybutton" label="Insert" />         
</div>

Cs code :

protected void btnsubmit_Click(object sender, EventArgs e)
    {
txttags.Text = "anyvalue.";
}

and java script are same as exiting one..
But i am getting error on runtime.Do i need to add any namespace in cs page.

My CS page will have so many events like below.Cant i use tridion control button for this page.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tridion.ContentManager.CoreService.Client;
using System.Xml.Linq;
using System.Xml;


namespace Somename
{

public partial class Classname
{

    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void ddSelectOption_SelectedIndexChanged(object sender, EventArgs e)
    {



    }


    protected void lbPublication_SelectedIndexChanged(object sender, EventArgs e)
    {

    }


    protected void lbPubFolders_SelectedIndexChanged(object sender, EventArgs e)
    {


    }


    protected void lbComponent_SelectedIndexChanged(object sender, EventArgs e)
    {

    }


    protected void lbComponentTemplate_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
  • 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-09T11:32:44+00:00Added an answer on June 9, 2026 at 11:32 am

    I’ll provide a second answer to your updated question, although you are still keeping us a bit in the dark since you only mention you get a runtime error and not what that exactly is (it is impossible for me to provide a good answer if I don’t know what error you get).

    Your ASPX page should look something like this:

    <%@ Page Language="C#" AutoEventWireup="true" Inherits="Example.MyPopup" ClassName="MyPopup" %>
    <%@ Import Namespace="Tridion.Web.UI" %>
    <%@ Register TagPrefix="ui" Namespace="Tridion.Web.UI.Editors.CME.Controls" Assembly="Tridion.Web.UI.Editors.CME" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html id="MyPopup" class="tridion popup" xmlns:c="http://www.sdltridion.com/web/ui/controls" xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title>My Popup Example</title>
            <cc:TridionManager runat="server" Editor="ExampleEditor" IsStandAloneView="false">
                <dependencies runat="server">        
                    <dependency runat="server">Tridion.Web.UI.Editors.CME</dependency>
                    <dependency runat="server">Tridion.Web.UI.Editors.CME.Controls</dependency>
                </dependencies>
            </cc:TridionManager>
        </head>
        <body>
            <table id="tblHeight" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td id="InputField" valign="top">
                        <table>
                            <tr>
                                <td id="NameLabelCell" nowrap="nowrap">My Label</td>
                                <td><input id="txttags" name="txttags" value="" tabindex="1" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="FooterRow">
                    <td class="footer" align="right">
                        <div class="BtnWrapper">
                            <c:Button ID="BtnOk" runat="server" TabIndex="2" Label="<%$ Resources: Tridion.Web.UI.Strings, OK %>" />
                            <c:Button ID="BtnCancel" runat="server" TabIndex="3" Label="<%$ Resources: Tridion.Web.UI.Strings, Cancel %>" />
                        </div>
                    </td>
                </tr>
            </table>
        </body>
    </html>
    

    Note: the table markup is copied directly from the Anchor popup, feel free to use divs instead and style them any way you want, the example is meant to show you how to reuse the existing Tridion controls
    Your CS would then become:

    using Tridion.Web.UI.Core;
    using Tridion.Web.UI.Controls;
    using Tridion.Web.UI.Core.Controls;
    using Tridion.Web.UI.Editors.CME.Views.Popups;
    
    namespace Example
    {
        [ControlResources("Example.MyPopup")]
        public class MyPopup : PopupView
        {
        }
    }
    

    It doesn’t contain anything, and it doesn’t need to, as all the actions you will be doing in your JavaScript as explained before.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on creating .NET TBB for Tridion 2011 SP1. I have two
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
Creating a voting system just like stackoverflow. Questions like this have been asking several
I have an aspx page PopupReference. I am having Tridion control button and few
Am implementing the Ribbon toolbar button. On button click depending upon the schema name,
I am creating Schema using Core Service in SDL Tridion 2011 SP1. In the
Creating a google map with store locations within 50 miles of user entered address.
(creating a separate question after comments on this: Javascript redeclared global variable overrides old
Creating a calculator-like dialog, I noticed that quickly clicking on a button in IE
Creating an installer for possible remote systems so that if they do not have

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.