+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / finding particular word in asp page

finding particular word in asp page

6 posts, 0 answered
  1. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    31 Jul 2010
    Link to this post
    Hi there

    Can you please tell me the procedure how can we find the particular word & make a next word as well bold in asp.net page.

    i.e., loresum loresum loresum loresum AED 1220 loresum loresum loresum loresum loresum loresum loresum loresum AED 1333 loresum loresum .

    Thanks
    Syed
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Aug 2010
    Link to this post
    Hi syed,

    What you want to achieve, can be done in an easy and quick manner. What you have to do is to create a class that will inherit from Telerik.Cms.Web.InternalPage class. Your new class will then override the Render method to look for the text in the HTML and replace it with some other text. In fact we have a sample, which does the desired functionality. You have to include your class in the App_Code folder, and then edit the file ~/Sitefinity/cmsentrypoint.aspx to inherit your custom InternalPage class like this:

    <%@ Page Inherits="Telerik.Samples.InternalPageTweak" MasterPageFile="~/Sitefinity/Dummy.master" %>


    Take a look at the proposed solution and see if it work for you. The other option is to use jQuery and modify the page html when the document is ready. If you have more questions feel free to contact us.


    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    03 Aug 2010
    Link to this post
    Hi Georgiev

    thanks for this rapid reply.
    The code is worked for finding & replacing a word.
    is there any way to find out the next word using the found word.

    i.e. i need to find the word AED and i need to make the AED & next word as well bold.

    Thanks
    Syed
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Aug 2010
    Link to this post
    Hi syed,

    You can look for delimiters or white speace characters to capture the next word.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    04 Aug 2010
    Link to this post
    Hi Georgiev

    Thanks for your suggestions. Being as a beginner for this one. i am still struggling to find the next word using delimeters & white spaces.

    please can you please provide the sample code.

    Thank you in advance.

    Thanks
    Syed
    jebelali-international.com
  6. Eisa Baker
    Eisa Baker avatar
    4 posts
    Registered:
    05 Jan 2006
    05 Aug 2010
    Link to this post
    Hi Georgiev

    Thanks for your suggestions. Being as a beginner for this one. i am still struggling to find the next word using delimeters & white spaces.

    please can you please provide some sample code.

    Thank you in advance.

Register for webinar
6 posts, 0 answered