• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 104
  • Last Modified:

Visible = true not showing div

Hi

I have a div tag that hids some content.
<div id="iqadetailpanel" runat ="server" visible="false" >
    <section class="panel"  >
                <header class="panel-heading tab-bg-dark-navy-blue">
                    <ul class="nav nav-tabs">
                        <li class="active">

Open in new window

 etc........

I want to show this content on a gridview SelectedIndexChanged event

Protected Sub GridIVRecs_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridIVRecs.SelectedIndexChanged

        iqadetailpanel.Visible = True

Open in new window


The problem is that this does not work and when  
<div id="iqadetailpanel" runat ="server" visible="false" >
    <section class="panel"  >
                <header class="panel-heading tab-bg-dark-navy-blue">
                    <ul class="nav nav-tabs">
                        <li class="active">

Open in new window

   is set and the div is hidden  it wont even let me select a record on the gridview.  Help!
0
Ed
Asked:
Ed
1 Solution
 
Ronak PatelCommented:
Hi edjones1,

I have some questions:

1) Are you using updatepanel control on your page ?
2) If yes, are both the controls, i.e. "iqadetailpanel" div and "GridIVRecs" grid, in the same updatepanel ?

It would be very helpful to understand your problem, if you can share the whole page source and code behind.


Regards,
Ronak
0
 
Obadiah ChristopherCommented:
Use css to hide / show the div

<div id="iqadetailpanel" style="display:none;">

Open in new window


In code behind
iqadetailpanel.Styles.Add ("display","inline");

Open in new window

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.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now