?
Solved

div not showing up

Posted on 2011-10-17
6
Medium Priority
?
326 Views
Last Modified: 2012-06-21
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>
0
Comment
Question by:1jaws
  • 4
6 Comments
 

Expert Comment

by:fonarina
ID: 36981793
YOu have Div inside div, it will nwvwer work fine
0
 

Author Comment

by:1jaws
ID: 36981806
I have tried panel inside the div, still didnt work...
0
 

Author Comment

by:1jaws
ID: 36981849
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Accepted Solution

by:
1jaws earned 0 total points
ID: 36983280
I used javascript dopostback function to solve the problem
0
 

Author Closing Comment

by:1jaws
ID: 37010604
Had to use javascript doPostback () function..
0
 
LVL 9

Expert Comment

by:keyu
ID: 36984290
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question