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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:05:00+00:00 2026-06-04T11:05:00+00:00

<ItemTemplate> <tr bgcolor=#efefef> <td width=10%> <asp:LinkButton ID=btnShowRoles runat=server> <asp:Image ID=viewRoles ImageUrl=/images/pointer-down.gif runat=server /></asp:LinkButton> </td>

  • 0

<ItemTemplate>
                    <tr bgcolor="#efefef">
                        <td width="10%">
                            <asp:LinkButton ID="btnShowRoles" runat="server">
                                <asp:Image ID="viewRoles" ImageUrl="/images/pointer-down.gif" runat="server" /></asp:LinkButton>
                        </td>
                        <td width="50%" align="left">
                            <font face="verdana" size="1">
                                <asp:Label runat="server" ID="lblParameter"><%#Eval("Name") %></asp:Label>
                            </font>
                        </td>
                        <td width="10%" align="center">
                            <font face="verdana" size="1">
                                <asp:Label runat="server" ID="lblType"><%#Eval("Type.Name")%></asp:Label>
                            </font>
                        </td>
                        <td width="10%" align="center">
                            <font face="verdana" size="1">
                                <asp:Label runat="server" ID="lblRequired"><%#Eval("isGlobal") %></asp:Label>
                            </font>
                        </td>
                        <td width="20%" align="center">
                            <font face="verdana" size="1"><a href='<%#GetRedirectionURL(Eval("ID")) %>'>VIEW</a>
                             </font>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div align="left" class="ShowRoles">
                                <asp:Label ID="Label3" runat="server">GROUPS:</asp:Label>
                                <asp:Label ID="Label4" runat="server"><%#Eval("MarjorieRoles") %></asp:Label>
                            </div>
                        </td>

                    </tr>

This is the code for my ItemTemplate in a ListView. I want the linkbutton in the first to show the fields whenever clicked. I am new to javascript and have absolutely no idea how to go about it. Any help would be appreciated.
Thanks

  • 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-04T11:05:01+00:00Added an answer on June 4, 2026 at 11:05 am

    This is not a specific question, but I can give you a few pointers to help you get started.

    1) In HTML, each element on your page is marked with an id attribute. In JavaScript, you can use the function document.getElementById to get an element by its id. You can also use an element’s class with document.getElementsByClass.

    2) And this is very important. Any time you add a server-side control to your page, it will be assigned an id in the resulting HTML that may be completely different from the ID you specify in the mark-up. In ASP.net, you can get the client-side id by writing <%= elementId.ClientID %>.

    3) A library like jQuery may be very helpful in simplifying your development. With jQuery, you would use the $.click function to attach an event to the buttons click event. You can use the $.show function to make a hidden element appear.

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

Sidebar

Related Questions

I have the following itemTemplate in my datalist <ItemTemplate> <asp:LinkButton ID=LinkButton1 CommandName=Select autopostback=True runat=server>'<%#
<ItemTemplate> <asp:Label runat=server><%#DataBinder.Eval(Container.DataItem, Question)%></asp:Label> <asp:DropDownList runat=server id=<%#DataBinder.Eval(Container.DataItem, QuestionID)%>>> <asp:ListItem value=1 text=Yes /> <asp:ListItem value=0
i have a web page wit Repeater <asp:Repeater ID=Repeater1 runat=server> <HeaderTemplate> <th bgcolor=#666666 style=color:
I have a ListView with an ItemTemplate item as below: <asp:Label runat=server ID=lblChangeOrders><%#Eval(sum)%></asp:Label> What
I have a ModalPopup in the ItemTemplate of a GridView like <ItemTemplate> <asp:LinkButton ID=lnkbtnSeek
I have an asp:FormView with an ItemTemplate. I'd like to design the content within
I have an Image inside an ItemTemplate for a ListBox. Is there a way
Okay so given a LinkButton inside a the ItemTemplate of a Repeater declared like
I have a repeater control with item template like this: <ItemTemplate> <table width=70%> <tr
I'm trying to access ListViewDataItem from inside an ItemTemplate in an ASP.NET C# page

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.