Link to home
Start Free TrialLog in
Avatar of Ed
EdFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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!
Avatar of Ronak Patel
Ronak Patel
Flag of India image

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
ASKER CERTIFIED SOLUTION
Avatar of Obadiah Christopher
Obadiah Christopher
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial