[CLOSED] Simple Tagfield from Codebehind.

  1. #1

    [CLOSED] Simple Tagfield from Codebehind.

    Here comes probably a too simple question, but still I can not get it to work when trying to set a tag from Codebehind.

    <ext:TagField runat="server" ID ="tagTo" Width="300px" ></ext:TagField>
    How should I write from codebehind to get "info@company.com" to be a selected tag inside the TagField?

    Best regards
    Last edited by Daniil; Jan 06, 2014 at 3:05 PM. Reason: [CLOSED]
  2. #2
    Hi @waxby,

    Hope this helps.

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
            if (!X.IsAjaxRequest)
                this.TagField1.Items.Add(new Tag("Tag 1"));
                this.TagField1.Items.Add(new Tag("Tag 2"));
                this.TagField1.Tags.Add(new Tag("Tag 1"));
    <!DOCTYPE html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:TagField ID="TagField1" runat="server" />
  3. #3


    Thanks Daniil
    Works fine! I was stuck trying Tags.Add() with no success.

    Case closed :)

Similar Threads

  1. Replies: 2
    Last Post: Oct 25, 2013, 2:49 AM
  2. This should be simple, but...
    By randallm in forum 2.x Help
    Replies: 4
    Last Post: Nov 27, 2012, 2:04 PM
  3. [CLOSED] Simple ComboBox
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 13
    Last Post: May 02, 2012, 4:12 PM
  4. [CLOSED] Simple or not ?
    By sisa in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 20, 2011, 7:59 AM
  5. Its simple but Need help
    By kutbinahar in forum 1.x Help
    Replies: 0
    Last Post: Mar 05, 2011, 8:00 PM

Posting Permissions