Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > hi urgent help needed in nested repeater

Reply
Thread Tools

hi urgent help needed in nested repeater

 
 
gauravkg via DotNetMonster.com
Guest
Posts: n/a
 
      09-01-2006
Problem : I have a nested repeater in which i am showing data through table

| title |
| description |
| title |
| description |

on load the description is hidden using div display:none

on clicking of title it shoul show me the description row..

the code i have used is



<script language="javascript" type="text/javascript">
<!--

// -->


function toggle_display(control)
{


if(control.style.display == "block")
{

control.style.display =

"none";
}


else
{

control.style.display =

"block";
}

}


</script>

<td>

<

div class="result_title_odd" id="result_title1_1" onclick="toggle_display
(result_detail1_1)"


onmouseout="className='result_title_odd'" onmouseover
="className='result_title_onMouseOver'">


Title:

<asp:Label runat=server ID="title" Text=<%#((DataRowView)Container.DataItem)
["Deal_Title"]% ></asp:Label>
</div>

</td>

<

tr><td> <div class="result_detail" id="result_detail1_1">
description:

<asp:Label runat=server ID ="Description" Text=<%#((DataRowView)Container.
DataItem)["Deal_Title"]% ></asp:Label>

</div>

style sheet i have used


<style type="text/css">



..result_group {

background-color: yellow;

width: 100%;

text-align: center;

border-top: black thin solid;
}


..result_title_odd {

background-color: lightcyan;

width: 100%;
}


..result_title_even {

background-color: lightgreen;

width: 100%;
}



..result_title_stars {

float: right;
}


..result_title_onMouseOver {

background-color: LightGrey;

cursor: hand;
}


..result_detail {

background-color: #ccffff;

display: none;

width: 100%;
}

</style>

Plz tell me how to achive this i will be very greatful to u



with regards

gaurav

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200609/1

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
urgent help....need urgent help on say string task.. pooja Software 0 03-03-2009 06:16 AM
hi urgent help needed in nested repeater gauravkg via DotNetMonster.com ASP .Net 0 09-01-2006 09:07 AM
hi urgent help needed in nested repeater gauravkg via DotNetMonster.com ASP .Net 0 09-01-2006 09:07 AM
Repeater control with nested repeater chris.reed@digus.com ASP .Net 0 02-11-2005 05:10 PM
Nested Repeater Help Tommy ASP .Net 3 11-07-2004 03:07 AM



Advertisments