Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Dear All,

I have the following code:

XML
<Columns>
 <asp:TemplateField HeaderText="Mobile Number">
 <ItemStyle width="50px" HorizontalAlign="Center"
 VerticalAlign="Middle" /> <ItemTemplate>  <asp:LinkButton Text='<%#DataBinder.Eval(Container.DataItem,"MobileNo") %>' runat="server" CommandName="MobileNo" OnClick="tbl"/></ItemTemplate> </asp:TemplateField>
 <asp:BoundField HeaderText="Barcode" DataField="Barcode" >  <HeaderStyle HorizontalAlign="Left" />
<ItemStyle Height="25px" HorizontalAlign="Left" />  </asp:BoundField>
 <asp:BoundField HeaderText="User" DataField="UserName" >  <HeaderStyle HorizontalAlign="Left" /&   <ItemStyle Height="25px" HorizontalAlign="Left" /&g  </asp:BoundField>
                                                 <asp:BoundField HeaderText="Audited On" DataField="AuditOn" >
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Height="25px" HorizontalAlign="Left" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="QC Status" DataField="Status" >
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                    <ItemStyle Height="25px" HorizontalAlign="Left" />
                                                </asp:BoundField>


                                            </Columns>


Please have a look at the link button.. I want to call the the html table id "tbl" on clicking the link button.
Can anyone please give me an idea...

Regards
Posted
Comments
Prerak Patel 21-Feb-11 23:23pm    
Stop posting same question again and again. You can use "Improve question".
m@dhu 22-Feb-11 0:37am    
Comment from op: excuse me.. this is not the same question.. Check it out properly..
Raj.rcr 21-Feb-11 23:34pm    
excuse me.. this is not the same question.. Check it out properly..
Prerak Patel 22-Feb-11 3:50am    
Sorry, I didn't understand the difference.

1 solution

C#
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        
        if (e.CommandName == "MobileNo")
        {
           //code to call/display the html table.
        }
    }
 
Share this answer
 
Comments
Raj.rcr 22-Feb-11 7:47am    
Thank you... I got the idea..
m@dhu 22-Feb-11 7:49am    
Good it helped you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900