How to show long string value in dotted format

Posted by Shoyebaziz123 under Regular Expressions on 3/30/2011 | Points: 10 | Views : 2435 | Status : [Member] | Replies : 4
Hello all,
i have a problem with string ....i.e . i have inserted some text using html editor , there is more than 10-15 line .... now while i am getting this value and show , this string value must be show for eg.

" The Indian sub-continent has come to a stand still. And no one seems to be doing anything else but eating, sleeping and drinking cricket. ......."
the remaing values in dotted and while i am clicking view more complete text should be shown...

Thanks in advance.




Responses

Posted by: T.saravanan on: 3/30/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

How do you show the text? Are you using GridView (or) any other control?
Can you explain your question briefly...

Thanks,
T.Saravanan

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shoyebaziz123 on: 3/30/2011 [Member] Starter | Points: 25

Up
0
Down
i am showing value in repeater

<asp:Repeater ID="rptMedicine" runat="server">
<HeaderTemplate><strong> </strong></HeaderTemplate>
<ItemTemplate>
<p>
<table style="width:100%;">
<tr>
<td rowspan="2" style="text-align:left ; vertical-align:top; width:20%">
<asp:Image ID="imgmedicine" runat="server" ImageUrl='<%# Eval("ImagePath") %>' ImageAlign="TextTop" />
</td>
<td>
<a href="medicine-details.aspx?mguid=<%#Eval("MedicineGUID") %>">
<asp:Label ID="lblmedicinename" runat="server" Text='<%# Eval("MedicineName") %>' Font-Bold="true" /> </a>
<asp:Label ID="lblmedicinetype" runat="server" Text='<%# Eval("Medicine_Type_Value") %>' Font-Bold="true" />
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
<div id="div" style="overflow-y:auto;overflow-x:auto; word-break:break-all;" runat="server">
<asp:Label ID="lblmedicinedetails" runat="server" Text='<%# Eval("MedicineDescription") %>' /></div>

</td>
</tr>
</table>

</p>

<br />
<hr />
</ItemTemplate>
</asp:Repeater>

<asp:Label ID="lblmedicinedetails" runat="server" Text='<%# Eval("MedicineDescription") %>' /> here i have bind the value to show....


Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/30/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Shoye please put your code inside the code tags like this



Thank you for posting at Dotnetfunda
[Administrator]

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shoyebaziz123 on: 3/30/2011 [Member] Starter | Points: 25

Up
0
Down
where is u r code


Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response