Hi Guys,
What i am trying to do is , if suppose i have a word'horse' in a rich text box, i want to aplly image by cutting characters.To explai it little more, i want to be able to cut the word 'horse' in two parts 'hor' and 'se' and apply image to each part and store it in databse.Can anyone help me with this.
sdhawan
-2
Junior Poster
Recommended Answers
Jump to PostIf you want to cut the word up. You can use Substring.
string varTest = "horse"; string fisrtHalf, secondHalf; firstHalf = varTest.SubString(0,3); secondHalf = varTest.SubString(3,2);
Of if its always Half;
string varTest = "horse"; string fisrtHalf, secondHalf; int HalfMark = (int)(varTest.Length/2); firstHalf = varTest.SubString(0, …
Jump to Postok so what specifically don't you know how to do.
show some code of what you have done so far.
Jump to PostHmmm, can you tell me what you are doing there?
what does that piece of code supposed to do?
Jump to Postok so what about the other part? that is only the first half
Where is you connection to the database?
where is your Update or Insert statement?
All 14 Replies
finito
46
Nearly a Posting Virtuoso
sdhawan
-2
Junior Poster
finito
46
Nearly a Posting Virtuoso
sdhawan
-2
Junior Poster
finito
46
Nearly a Posting Virtuoso
sdhawan
-2
Junior Poster
finito
46
Nearly a Posting Virtuoso
sdhawan
-2
Junior Poster
finito
46
Nearly a Posting Virtuoso
sdhawan
-2
Junior Poster
finito
46
Nearly a Posting Virtuoso
sdhawan
-2
Junior Poster
sdhawan
-2
Junior Poster
finito
46
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.