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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:48:23+00:00 2026-05-17T19:48:23+00:00

This is my link button:- <asp:LinkButton ID=lnk1 Text=Set as Default runat=server Visible=false OnClick=lnk1_OnClick></asp:LinkButton> In

  • 0

This is my link button:-

<asp:LinkButton ID="lnk1" Text="Set as Default" runat="server" Visible="false" OnClick="lnk1_OnClick"></asp:LinkButton>

In Code Behind I am simply making it visible

lnk1.Visible = true;

I have checked the IDs over n over..whats wrong ? Intellisense wont detect it either..I am doing something really silly..just cant figure what it is ..help!

I even restarted Visual Studio..still same error

  • 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-17T19:48:23+00:00Added an answer on May 17, 2026 at 7:48 pm

    Is the contol part of another control template? E.G. part of a repeaters ItemTemplate etc?

    Update:

    Since OP has said it’s part of a repeaters ItemTemplate, just thought I’d explain what to do (Even though OP has sorted it)

    You need to call FindControl on the Repeater, or Controls.OfType() depending on the situation, to get the control.

    ASP:

        <asp:Repeater runat="server" ID="rptrTest">
            <ItemTemplate>
                <asp:TextBox runat="server" ID="txtBxName" />
                <asp:CheckBox runat="server" ID="chkBx1" />
                <asp:CheckBox runat="server" ID="chkBx2" />
            </ItemTemplate>
        </asp:Repeater>
    

    C#

            IEnumerable<CheckBox> chkBoxes = rptrTest.Controls.OfType<CheckBox>();
            TextBox txtBxName = (TextBox)rptrTest.FindControl("txtBxName");
    

    What I’ll often do for commonly used controls (though wether it’s a good idea or not I’m sure someone will now let me know), is create a member which executes this code.

        private TextBox _txtBxName;
        public TextBox txtBxName {
            get {
                if (_txtBxName == null) {
                    _txtBxName = (TextBox)rptrTest.FindControl("txtBxName");
                }
                return _txtBxName;
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the context of this question link text is possible from a Controller that
This link describes an exploit into my app using fckEditor: http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html How do I
I found this link http://artis.imag.fr/~Xavier.Decoret/resources/glsl-mode/ , but there isn't a lot of description around
I have seen this link: Implementing Mutual Exclusion in JavaScript . On the other
SSL can either be explicit or implicit as explained by this link: http://help.globalscape.com/help/secureserver2/Explicit_versus_implicit_SS.htm System.Net.Mail
I have found some info on the subject ( like this link) , but
I am having a Html hyperlink. I need to link this hyperlink to another
This question has been asked before ( link ) but I have slightly different
After having this question answered through a link to an external site , I
I got this flash application where you can click a link while watching a

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.