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

  • SEARCH
  • Home
  • 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 6756897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:34:46+00:00 2026-05-26T13:34:46+00:00

I have a table in a my Dynamic Data website that has a Primary

  • 0

I have a table in a my Dynamic Data website that has a Primary Phone Number field and a Country field. I have regular expression for the phone field that validate US domestic phone numbers and International phone numbers. How would I write in my dynamic data application that if a country other than the us is selected in the Country field then the international phone regular expression should be used?

<asp:GridView ID="GridView1" runat="server" DataSourceID="GridDataSource" EnablePersistedSelection="true"
        AllowPaging="True" AllowSorting="True" CssClass="DDGridView"
        RowStyle-CssClass="td" HeaderStyle-CssClass="th" CellPadding="6" AutoGenerateColumns="false" AutoGenerateEditButton="true" AutoGenerateSelectButton="true" AutoGenerateDeleteButton="true">
        <Columns>                    
            <%--<asp:TemplateField>
                <ItemTemplate>
                    <asp:DynamicHyperLink runat="server" Action="Edit" Text="Edit"
                    />&nbsp;<asp:LinkButton runat="server" CommandName="Delete" Text="Delete"
                        OnClientClick='return confirm("Are you sure you want to delete this item?");'
                    />&nbsp;<asp:DynamicHyperLink runat="server" Text="Details" />
                </ItemTemplate>
            </asp:TemplateField>--%>

            <asp:DynamicField DataField="CA_AgencyName" HeaderText="Agency Name" />
            <asp:DynamicField DataField="CA_AgencyAcronym" HeaderText="Official Acronym"/>
            <asp:DynamicField DataField="CA_AgencyAcronym_SOLID" HeaderText="SOLID Acronym"/>
            <asp:DynamicField DataField="CA_AgencyHomePageURL" UIHint="Url" HeaderText="Web Address"/>
            <asp:DynamicField DataField="CA_AgencyContact" HeaderText="Email/Contact Page"/>
            <asp:DynamicField DataField="CA_AgencyCredentialType" HeaderText="Credential Type"/>
            <asp:DynamicField DataField="CA_AgencyStreetAddress1" HeaderText="Address"/>
            <asp:DynamicField DataField="CA_AgencyStreetAddress2" HeaderText="Address Cont."/>
            <asp:DynamicField DataField="CA_AgencyCity" HeaderText="City"/>
            <asp:DynamicField DataField="CA_AgencyState" HeaderText="State"/>
            <asp:DynamicField DataField="CA_AgencyZip" HeaderText="Zip"/>
            <asp:DynamicField DataField="CA_AgencyCountry" HeaderText="Country" />
            <asp:DynamicField DataField="CA_AgencyPhonePrimary" HeaderText="Primary Phone"/>
            <asp:DynamicField DataField="CA_AgencyPhonePrimaryExtension" HeaderText="Primary Extension"/>
            <asp:DynamicField DataField="CA_AgencyPhoneSecondary" HeaderText="Secondary Phone"/>
            <asp:DynamicField DataField="CA_AgencyRecordAddedUserID" HeaderText="Added By"/>
            <asp:DynamicField DataField="CA_AgencyRecordUpdatedDate" HeaderText="Date Changed"/>
            <asp:DynamicField DataField="CA_AgencyRecordUpdatedUserID" HeaderText="Changed By"/>
            <asp:DynamicField DataField="DOL_ORG_ID" HeaderText="DOL ORG ID"/>
        </Columns>

        <PagerStyle CssClass="DDFooter"/>        
        <PagerTemplate>
            <asp:GridViewPager runat="server" />
        </PagerTemplate>
        <EmptyDataTemplate>
            There are currently no items in this table.
        </EmptyDataTemplate>
    </asp:GridView>
  • 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-26T13:34:47+00:00Added an answer on May 26, 2026 at 1:34 pm

    It sounds like what you need is a CompareValidator:

    <asp:CompareValidator ID="CompareValidator1" runat="server" 
        ControlToValidate="MyControl1" 
        ControlToCompare="MyControl2" 
        Operator="GreaterThanEqual" 
        Type="Integer">
    </asp:CompareValidator>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a User table that I want to use with Dynamic Data. The
I have a dynamic data table in JSF which has multiple input elements which
I am using ASP.NET Dynamic Data for a project and I have a table
I have some PHP code that generates dynamic tables of data on the fly.
I have a table with dynamic data. Depending on data, it expands or collapses.
I'm doing a dynamic table to collect passengers personal data. This table have above
I have one table which display data as from Dynamic Content, I want to
I have come to the conclusion that the very nifty ASP.NET Dynamic Data framework
I have a number of tables with lots of columns that I'm using Dynamic
I'm trying to use Dynamic Data with a entity model that has Abstract class

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.