div not showing up

on another click event, I am setting the div id " lnk" to visible = true but not showing...anyone can help me why?

 <div style="border: 1px solid silver; height: 300px; min-height: 300px; width: 100%;">
                 <div ID="lnk" runat="server"  visible="false">
                     <asp:LinkButton ID="lbtnAttach" runat="server" OnClick="lbtnAttach_Click">Download Attachment</asp:LinkButton>
                    </div>
                        <asp:DetailsView runat="server" ID="DetailsView1" AutoGenerateRows="False"
                           
                                                                           
                        </asp:DetailsView>

                    </div>
1jawsAsked:
Who is Participating?
 
1jawsConnect With a Mentor Author Commented:
I used javascript dopostback function to solve the problem
0
 
fonarinaCommented:
YOu have Div inside div, it will nwvwer work fine
0
 
1jawsAuthor Commented:
I have tried panel inside the div, still didnt work...
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
1jawsAuthor Commented:
I got rid of all the div's and since this whole thing inside the radpane.. still not showing.. is there anyway to make that visible?
0
 
1jawsAuthor Commented:
Had to use javascript doPostback () function..
0
 
keyuCommented:
if you make visibility as false.....it will not visible inside html source....

so instead of that use javascript to set the visibility hide / Show.

on client click set javascript function call and inside javascript set

To show:

document.getelementbyid("your object name").style.display=''

to hide

document.getelementbyid("your object name").style.display='none'
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.