I would try in this line...
1) Bind the Memo to 2 Lables . Label1 will be the summary and Label2 will be
the full text.
2) Use javascript to hide Label1 and show Label2 onmouseover / onclick on
"+...See more" on Label1. Hide Label2 and Show Label1 onmouseout of Label2
to trim the text to summary , implement a function in code behind
protected string TrimMemo(string Memo)
{
string Summary = Memo.SubString(1,100);
Summary += "<A HREF='javascript
:ShowL2HideL1();' > +...See more </A>"
return(Summary);
}
Then call it during databinding.
aspLabel ID="lblSName"
text=TrimMemo(Databinder.Eval(Container.Dataitem," Description"))
Runat="server"aspLabel
HTH
"John" wrote:
Hello
I want to use the same data string (memo) to populate a "summary" asplabel. After the summary there would be a + "..." and a "see more..." link to the "complete" string contents - for the summary (e.g. aspLabel ID="lblSName" text=Databinder.Eval(Container.Dataitem,"Descripti on") Runat="server"aspLabel) I need to limit the number of characters displayed.
Any ideas?
Thanks
John
From http://www.developmentnow.com/g/8_20...ork-aspnet.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com