Problem to Link button

Hi,
There is Link button below, to the GV
        <asp:GridView ID="gvResult" runat="server" 
            CellPadding="4" ForeColor="#333333" Font-Size="12px" 
            AutoGenerateColumns="False" PageSize="20" 
            DataKeyNames="id"
            style="margin-top: 1px" AllowPaging="True" 
            onpageindexchanging="gvResult_PageIndexChanging" 
            OnRowDataBound="gvResult_RowDataBound" onrowcommand="gvResult_RowCommand">
            <PagerSettings Mode="NumericFirstLast" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" 
                            CommandName="RowEdit" Text="更改資料" CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                            
                        <asp:LinkButton ID="lbEdit2" runat="server" CausesValidation="False" 
                            CommandName="RowEdit2" Text="更改資料" CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                    </ItemTemplate>
					...

Open in new window

when running the page, the Link button is not shown. But I cannot find out any codes, which are hiding such Link button. Why?
LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

teebonProduct ManagerCommented:
Is the grid showing and did you see any error message?
You may want to provide a screenshot.
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
is your datagrid bind to a datasource and got records returned to the screen?
HuaMin ChenProblem resolverAuthor Commented:
I do not get any error message shown, on the page.
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
>>is your datagrid bind to a datasource and got records returned to the screen?

I mean..

is your gridview control bind to a datasource and got records returned to the screen?
HuaMin ChenProblem resolverAuthor Commented:
Yes, GV is binding to a datasource.
Why can't I see the codes that are disabling the button below
 
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False"
                            CommandName="RowEdit" Text="更改資料" CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                           
                        <asp:LinkButton ID="lbEdit2" runat="server" CausesValidation="False"
                            CommandName="RowEdit2" Text="更改資料" CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="30px" />                   
                </asp:TemplateField>
                                ...

Open in new window

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
>>Why can't I see the codes that are disabling the button below
is your original question asking why the linkbuttons are not being shown or being disabled in the page?
HuaMin ChenProblem resolverAuthor Commented:
yes
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
perhaps I should emphasize my question...

>> is your original question asking why the linkbuttons are not being shown OR being disabled in the page?
HuaMin ChenProblem resolverAuthor Commented:
how to ensure the button is being shown there?
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
>>how to ensure the button is being shown there?
I don't have a VS with me right now, but you can do quick checks:

-ensure your linkbutton control is visible in the page (not using scripts to set the visible property to false)
-since it's within your GV control, ensure your GV column is not being hidden via scripts (not to set the column's visible property to false)
-there is data that binded to GV, NO data = Nothing will be shown
HuaMin ChenProblem resolverAuthor Commented:
Sorry, GV is being shown. But I do not know why Linkbutton is not shown there.
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
I did a test and my link buttons are visible (yes, nothing special, it will appear).

link buttons
can you ensure and answer questions below?

1. ensure your linkbutton control is visible in the page (not using scripts to set the visible property to false)
2. since it's within your GV control, ensure your GV column is not being hidden via scripts (not to set the column's visible property to false)

and try do a search in your script to see if you did hide the columns or the linkbuttons in your scripts?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.