How to display inline text in the same page

F

Felix_WafyTech

Hi,

I would like to create something similar to "The Code Project" message
thread. You can see what I'm trying to explain by clicking on the link
below:

http://www.codeproject.com/aspnet/MasterDetail.asp?df=100&forumid=254259

Once the page opens, scroll down to the end of page. You will see message
threads just like newsgroup threads. You can click on any of the Subject
links and the Message is displayed just beneath it in the same page. How do
I do something similar in ASP .NET C#? Any help is very much appreciated.

Thanks,
Felix.J
 
F

Felix_WafyTech

I've seen it already but it doesn't seem to provide the kind of knowlegde I
need to replicate the functionality exposed by the message threads of "The
code project".

May be I should explain more:

I have a GridView control and on clicking any of the records in the grid
view control I would like the grid to expand and display data in a detail
section. The data should be retrieved from the database on the server.
Clicking on the record again should collapse the view.

Please share any ideas, links to articles or code snippets. I would really
appreciate code snippets, I'm curious as to how this is done. I've been
looking all around but unable to find information on this.

Thanks,
Felix.J
 
S

Steven Cheng[MSFT]

Hi Felix,

I think for the codeproject like thread layout, in ASP.NET it'll be proper
to use template databound controls (like datalist, gridview, repeater) to
display those top level items. For the item's content, we can use the html
"display" style to make them hidden by default, and when the user click the
subject text, we can use clientside script to make the content visible.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top