Click here to Skip to main content
15,916,215 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: RSS Pin
fridon2-Mar-07 18:23
fridon2-Mar-07 18:23 
GeneralRe: RSS Pin
Vasudevan Deepak Kumar6-Mar-07 9:46
Vasudevan Deepak Kumar6-Mar-07 9:46 
Questionhow to send sms in asp.net without any third party sms gateway.How to create own sms gateway.i want a code or any reference website address.i know if its possible to create own sms gateway.please tell me everyone and help me . Pin
Member 38771892-Mar-07 17:48
Member 38771892-Mar-07 17:48 
Questionhow to send sms in asp.net without any third party sms gateway.How to create own sms gateway.i want a code or any reference website address.i know if its possible to create own sms gateway.please tell me everyone and help me . Pin
Member 38771892-Mar-07 17:47
Member 38771892-Mar-07 17:47 
AnswerRe: how to send sms in asp.net without any third party sms gateway.How to create own sms gateway.i want a code or any reference website address.i know if its possible to create own sms gateway.please tell me everyone and help me . Pin
Vasudevan Deepak Kumar6-Mar-07 9:47
Vasudevan Deepak Kumar6-Mar-07 9:47 
QuestionError in Creating Structs Pin
chitra4sat2-Mar-07 16:21
chitra4sat2-Mar-07 16:21 
AnswerRe: Error in Creating Structs Pin
Rhys Gravell4-Mar-07 20:57
professionalRhys Gravell4-Mar-07 20:57 
Questiontruncate strings Pin
nikneem20052-Mar-07 13:32
nikneem20052-Mar-07 13:32 
Hey guys,

My website contains a messagebox where visitors can (obviously) post messages. The right side of my website contains an area where the latest three messages are shown. Now I want to truncate these messages to a maximum of 150 characters (if the're shorter, leave them alone). This is easy, not a problem, however, the string can contain image tags (smiley's) now when truncating the string, I want to leave those image tags alone and not truncate in the middle of a tag.

I want to remove all html tags (which in fact can only be image tags) then truncate the text to 150 chars as needed and restore the image tags at the original position if needed. Anyone a good approach or idea?

I change the image tokens which mean a smiley into image tokens before I store them in the database, this prevents me from checking for image tokens each time I read the message from the database. If I don't convert the tokens into image tags before storing, the problem still exists because a token may be multiple characters (for example a semicolon and a ) sign for a wink smiley) and I don't want to truncate the string in the middle of a token leaving me with a semicolon only.


I love it when a plan comes together
http://www.zonderpunt.nl[^]

AnswerRe: truncate strings Pin
Harini N K2-Mar-07 13:51
Harini N K2-Mar-07 13:51 
GeneralRe: truncate strings Pin
nikneem20052-Mar-07 13:57
nikneem20052-Mar-07 13:57 
GeneralRe: truncate strings Pin
Harini N K2-Mar-07 14:05
Harini N K2-Mar-07 14:05 
QuestionControling Child Window Pin
Jonathan Gibbs2-Mar-07 13:06
Jonathan Gibbs2-Mar-07 13:06 
AnswerRe: Controling Child Window Pin
nikneem20052-Mar-07 13:34
nikneem20052-Mar-07 13:34 
AnswerRe: Controling Child Window Pin
Haissam3-Mar-07 14:42
Haissam3-Mar-07 14:42 
QuestionMissing partial modifier on declaration of type 'DataSet1' Pin
duaatul2-Mar-07 12:30
duaatul2-Mar-07 12:30 
AnswerRe: Missing partial modifier on declaration of type 'DataSet1' Pin
nikneem20052-Mar-07 13:40
nikneem20052-Mar-07 13:40 
QuestionSample Asp.net application Pin
umashankergr82-Mar-07 7:55
umashankergr82-Mar-07 7:55 
AnswerRe: Sample Asp.net application Pin
Rakheesh Chalil2-Mar-07 8:38
Rakheesh Chalil2-Mar-07 8:38 
AnswerRe: Sample Asp.net application Pin
umashankergr86-Mar-07 19:09
umashankergr86-Mar-07 19:09 
Questionimage views Pin
vamsivs2-Mar-07 5:02
vamsivs2-Mar-07 5:02 
AnswerRe: image views Pin
Frank Kerrigan2-Mar-07 5:57
Frank Kerrigan2-Mar-07 5:57 
QuestionRedirecting parent page Pin
Khan.Bangash2-Mar-07 4:57
Khan.Bangash2-Mar-07 4:57 
AnswerRe: Redirecting parent page Pin
Guffa2-Mar-07 8:26
Guffa2-Mar-07 8:26 
AnswerRe: Redirecting parent page Pin
Haissam3-Mar-07 14:08
Haissam3-Mar-07 14:08 
QuestionRole Management Pin
Sarfaraj Ahmed2-Mar-07 4:30
Sarfaraj Ahmed2-Mar-07 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.