Skip to main content

Posts

Showing posts from October, 2011

Select all div text in single click in JavaScript

Here is the code for selecting a div content through javascript with single click of button or mouse click,just copy and paste javascript code given bellow and call the function selectText at the button click and pass the parameter divid.

Highlighting text inside div in JavaScript

The bellow article is for finding a text on the a div content and highlighting that search text.
we can use this article by two waygetting highlighting search text through the prompt of java script or pass default highlighting search text to the function.

An Analog Clock Widget for Blogger or WebSite

Here is the code for getting an analog clock widget  for your blog or for your website, This all clock as on Indian time just copy and paste code bellow on your page where you want to show the clock.

Highlighting text in web pages in JavaScript

Below article is for finding a text on the webpage(document) and highlighting that search text.
we can use this article by two way getting highlighting search text through the prompt of java script or pass default highlighting search text to the function.

Finding, convert text input into hyperlink in JavaScript

The bellow article is for finding a text on the webpage and convert that text into a link.
we can use this article by two way 
Getting search text and link herf through the prompt of javascript or pass default search text and link href to the function.

Scrolling a Div in JavaScript

Here is a example to scroll div through javascript by clicking a button or linkbutton bellow is 5 linkbutton for scrolling different-different way to a div content Scroll Top,Bottom,Absolute,Up and Down.

What is AppSetting Section in Web.Config file in asp.net

Web.config file defines configuration for a web project. Using "AppSetting" section, we can define user-defined values (custom key value dictionary) like "service url, stop word, Max Connection, mail server, mail port etc, that will be accessible through configuration  manager class through out the project for any other purpose.
Example:-
<appSettings>    <addkey="connection1"value="server=tdsw008;database=ERM; uid=sa;pwd=********;"/>    <addkey="connectionSAP"value="server=90.10.0.23;database=ACDB_PROD;uid=sa;pwd=********"/>    <addkey="ServerName"value="tdsw017"/> </appSettings>

What is event bubbling in Asp.Net

Handling(tracking) child controls events (only button type child controls) through parent control in data bind controls known as event bubbling.

Identifying that the Page is Post Back or not in asp.net

When you need perform different different task according to Get and Post request type then you should know about current request of which type and how to identify it.

Accept only number in a text box in JavaScript

similar: 1) Allowing only certain character in a text box. 2) Validation in TextBox which accepts only numbers value. 3) Allow only numbers / digits in TextBox.
Here is the code bellow