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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:02:52+00:00 2026-05-15T10:02:52+00:00

I want to filter DFWP through asp:TextBox. Using Office Designer I added DFWP with

  • 0

I want to filter DFWP through asp:TextBox.

Using Office Designer I added DFWP with data to the page.
Added asp:textbox with runat server, autopostback and ID=”textBoxSearch”.
Created variable [var] in DFWP and in the source section chose element textBoxSearch.

Then added filter “field_1 contains [var]”.

This search(filter) worked greatly for two weeks, then filter broken. Only recreating DFWP helped. After another week filter was broken. Any text in textbox was ignored by filter.

I figured out that SP can’t see asp:textbox “textBoxSearch” in variable [var], because if change “contains [var]” to “contains ‘some text'” it will work.

How can it be – working some time, then accidentally not?

If not using internal filter web-part, but textbox, how to fix it?

  • 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-05-15T10:02:53+00:00Added an answer on May 15, 2026 at 10:02 am

    I found that SP looks to property Text of asp:TextBox and to non existing property Value. It will be changed after IIS reset. So, when SP looks to Value filter does not work.

    The answer is two write your own control ascx CustomTextBox based on asp:TextBox.

    Don’t forget that you can’t copy usual codebehind files to SP.

    First, write full codebehind file and compile it to DLL(I called it SearchTextBox.dll):

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Configuration;
    using System.Data;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Linq;
    
    
    namespace WebApplication3
    {
        public partial class NewTextBox : System.Web.UI.UserControl
        {
            protected global::System.Web.UI.WebControls.TextBox TextBox_PhoneSearch;
    
            protected void Page_Load(object sender, EventArgs e)
            {
    
            }
            public string Text
            {
                get { return TextBox_PhoneSearch.Text; }
                set { TextBox_PhoneSearch.Text = value; }
            }
            public string Value
            {
                get
                {
                    return TextBox_PhoneSearch.Text;
                }
            }
        }
    }
    

    Then assign this DLL with keys and insert to the server GAC (or give special rights).

    After that you can link the assemble with public key in ascx control file (without codebehind files).
    NewTextBox.ascx file:

    <%@ Assembly Name ="SearchTextBox, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b341d7aadf237863"%>
    <%@ Control Language="C#" AutoEventWireup="true" Inherits="WebApplication3.NewTextBox" %>
    <asp:TextBox ID="TextBox_PhoneSearch" runat="server" AutoPostBack="true" class="ms-sbplain" style="width: 280px;"></asp:TextBox>
    

    Copy NewTextBox.ascx to …\12\TEMPLATE\CONTROLTEMPLATES\

    Control NewTextBox.ascx is ready to use.
    We just need to register it in SP page:

    <%@ Register Src="~/_controltemplates/NewTextBox.ascx" TagName="NewTextBox" TagPrefix="MyCompany" %>
    

    And insert it to this page:

    <MyCompany:NewTextBox id="TextBoxSearch" runat="server"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement an ISAPI filter like feature using HttpModule in IIS7 running
I am using Ruby on Rails. I want to create a filter field on
I want to filter the selectable dates on a datepicker. I basically need to
I'm reading all the files in a single directory and I want to filter
I have a MultipleChoiceField on a form holding car makes. I want to filter
I want to intercept a request in a filter/servlet and add a few parameters
Why would I want to use PHP's filter library? Why wouldn't I? It seems
There are several filter methods for dates (year,month,day). If I want to match a
In MSSQL, when I want to ignore an empty filter parameter, I do the
I want to make a page so I can select filters in a jquery

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.