connectseekers.com

Featured Articles

Decoration

All Stories

Thursday, 10 November 2016

Set Default Activity Android Using Xamarin In C#.Net

This article will show you how you can set the default activity android using xamarin in c# for your android application.

11/10/2016 - By Pranav Singh 0

Set Layout Resource to an Activity Class in Xamarin for Android Using C#.Net

In this example we will learn how we can set the layout file to “.axml” file to an activity class file. With this we will be able to comes to know which activity file belong to which layout file.

11/10/2016 - By Pranav Singh 0

Wednesday, 9 November 2016

jQuery Ajax: Move Multiple ListBox Items From One ListBox To Other

This article will show you how you can move listbox multiple items from one listbox to another list box using jQuery without page refresh. This you can use in MVC, Asp.Net and HTML applications.

11/09/2016 - By Pranav Singh 0

Tuesday, 8 November 2016

jQuery MVC: Move Listbox Items From One Listbox to Another With jQuery And Detect At Controller End

This article will show you how you can mode item from one listbox to another listbox using jquery without page refresh in mvc6 and on postback how to detect all the selected item of listbox at controller end.

11/08/2016 - By Pranav Singh 0

Monday, 7 November 2016

Xamarin Android: How to Add a Button Control in Xamarin Main Layout File

In this tutorial i will show you how you can add a button control in xmarin main layour in axml file.
File we will create a new Blank android application and select the main.axml file and open it.
11/07/2016 - By Pranav Singh 0

Friday, 4 November 2016

How to Create a New ASP.NET MVC Application

This article will show you how you can create a new ASP.NET MVC application through your visual studio application.
11/04/2016 - By Pranav Singh 0

Thursday, 3 November 2016

Passing Controller Action Error to View In MVC

This article will show you how you can pass or handle the controller error for displaying in view of your mvc application. This application you can use in mvc3, mvc4, mvc5, mvc6. How to handle error in controller action method and pass error to the View?

11/03/2016 - By Pranav Singh 0

jQuery Highlight Text in Div

This article will show you how you can search and highlight the specific text in the html  div control using jquery.

So for this article first we will create a new page and add the below library reference into the  page.

  <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="http://johannburkard.de/resources/Johann/jquery.highlight-5.js"></script>

Now user the below mention style sheet to make the text background color yellow on body load. This style sheet also contains style for div border with rounded corner.

    <style>
        .highlight {
            background-color: yellow;
        }

        .border {
            border-radius: 25px;
            background: #73AD21;
            padding: 20px;
            width: 200px;
            height: 150px;
        }
    </style>

After this we will prepare the body text.


  <h3>Highlight "The" word in Div</h3>
    <article>
        <div id="divContent" class="border">
            This article will show you The how you can search and The highlight the text in a gridview control in asp.net using c#. This i have shown on body event.
        </div>
    </article>

Now check we will use the jquery code to highlight the text present the div control.

  <script>
        $(document).ready(function () {
            $('#divContent').highlight('The');
        });
    </script>


In above code I have provided the div control id  to highlight and in this div control  “The” text will search and highlight.

Now check the complete code of the page.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>jquery highlight text in div</title>
    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="http://johannburkard.de/resources/Johann/jquery.highlight-5.js"></script>
    <script>
        $(document).ready(function () {
            $('#divContent').highlight('The');
        });
    </script>
    <style>
        .highlight {
            background-color: yellow;
        }

        .border {
            border-radius: 25px;
            background: #73AD21;
            padding: 20px;
            width: 200px;
            height: 150px;
        }
    </style>
</head>
<body>
    <h3>Highlight "The" word in Div</h3>
    <article>
        <div id="divContent" class="border">
            This article will show you The how you can search and The highlight the text in a gridview control in asp.net using c#. This i have shown on body event.
        </div>
    </article>
</body>
</html>


Now we have done run the application to check the output.


11/03/2016 - By Pranav Singh 0

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com
Email Id : contact@aspdotnet-pools.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Top jQuery Plugins

Global Classified : Connectseekers.com
© 2014
back to top