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>
                        <asp:DetailsView runat="server" ID="DetailsView1" AutoGenerateRows="False"

Who is Participating?
1jawsConnect With a Mentor Author Commented:
I used javascript dopostback function to solve the problem
YOu have Div inside div, it will nwvwer work fine
1jawsAuthor Commented:
I have tried panel inside the div, still didnt work...
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?
1jawsAuthor Commented:
Had to use javascript doPostback () function..
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'
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.