Rss Feed Like Us on facebook Google Plus

August 15, 2013

Auto Refresh an Asp.Net Web page

when You want to Refresh a web page automatically..
You can simply add following line of code in the Header section to enable auto refresh in an ASP.NET web page.
<meta http-equiv="refresh" content="15">
Where 15 refers to the number of seconds it will take before refreshing the page.
Also you can redirect to a specific page if you put the URL inside the tag.

<meta http equiv="refreshcontent="15;url=" >
In reality, this is standard HTML functionality and nothing specific to ASP.NET. The same effect of auto-refresh would be seen whether it is an ASP.NET page or just a HTML page, or a page made in Java, PHP, ColdFusion, Perl or the like.
More Preferential for Developers

If you want to set the refresh time dynamically then that can be done in ASP.NET by adding server side code in the Page_Load function to set it, as shown below: 
Response.AppendHeader("Refresh", "15")
you can change the refresh time according to your requirement.
Read More

August 13, 2013

WMI failed to connect to local computer : error code 0x8007007e

 WMI failed to connect to local computer or you are unable to get the pahysical information of the system like mac addrss, ip address etc...
it is run by a dll file called -  wbmiscripting.dll
To resolve the problem follow these steps.....
1. Log onto Windows with an administrator account, click Start, type services.msc in the Start Search box
and press Enter.
2. In the right pane of the Service console, locate and right-click Windows Management Instrumentation, and then select Stop to stop the service.
3. Start Windows Explorer, and then locate the %SystemRoot%\System32\Wbem\Repository folder.
4. Backup and delete all the files in the %SystemRoot%\System32\Wbem\Repository folder.
5Restart the computer.
The files that were deleted will be re-created when the computer restarts.
Note: The Windows Management Instrumentation service starts automatically when you restart the computer.
If the issue persists, please re-register WMI DLL files and re-compile WMI mof files to check if the issue can be resolved. Here are the detailed steps:
Start cmd as administrator

Copy and paste
cd %windir%\system32\wbem press enter
after then copy and paste
for /f %s in ('dir /b *.dll') do regsvr32 /s %s press enter
after then copy and paste
for /f %s in ('dir /b *.mof') do mofcomp %s press enter
after then copy and paste
wmiprvse /regserver press enter

ReStart the Windows Management Instrumentation service .
Read More

August 11, 2013

Identify Your Real Zodiac Sign !

The 'real' signs after alteration

Astrological signs represent twelve equal segments or divisions of the zodiac. According to astrology, celestial phenomena reflect or govern human activity on the principle of "as above, so below", so that the twelve signs are held to represent twelve basic personality types or characteristic modes of expression.There are "sun" signs and "moon" signs, which both depend on your date of birth.
Washington, Jan 15 (IANS) Astronomers suggest an overhaul in the process of defining horoscope on the basis of one's birth date as the earth's position vis-a-vis the sun and other stars has changed since the astrological signs were determined over 2,000 years ago.

Apart from the existing 12 astrological signs, the experts include a 13th sign Ophiuchus, a formation which the ancient Babylonians discarded because they wanted 12 star signs.

According to astronomers, the 'real' dates of all the 12 astrological signs will be altered for about a period of 30 days.

Here are the 'real' dates of astrological signs:
  • Capricorn: Jan 20 to Feb 16.
  • Aquarius: Feb 16 to March 11.
  • Pisces: March 11 to April 18.
  • Aries: April 18 to May 13.
  • Taurus: May 13 to June 21.
  • Gemini: June 21 to July 20.
  • Cancer: July 20 to Aug 10.
  • Leo: Aug 10 to Sep 16.
  • Virgo: Sep 16 to Oct 30.
  • Libra: Oct 30 to Nov 23.
  • Scorpio: Nov 23 to 29.
  • Ophiuchus: Nov 29 to Dec 17.
  • Sagittarius: Dec 17 to Jan 20.
In Indian astrology, there are five elements: fire, earth, air, water and space. The master of fire is Mars, while Mercury is of earth, Saturn of air, Venus of water and Jupiter of space.
Jyotish astrology recognises twelve zodiac signs (Rāśi),that correspond to those in Western astrology. The relation of the signs to the elements is the same in the two systems.

N0. Sanskrit International Alphabet of Sanskrit Transliteration Sanskrit gloss Western name

Tattva (Element)
Ruling Planet
1 मेष Meṣa ram Aries

Tejas (Fire)
2 वृषभ Vṛṣabha bull Taurus

Prithivi (Earth)
3 मिथुन Mithuna twins Gemini

Vayu (Air)
4 कर्कट Karkaṭa crab Cancer

Jala (Water)
5 सिंह Siṃha lion Leo

Tejas (Fire)
6 कन्या Kanyā girl Virgo

Prithivi (Earth)
7 तुला Tulā balance Libra

Vayu (Air)
8 वृश्चिक Vṛścika scorpion Scorpio

Jala (Water)
9 धनुष Dhanus bow Sagittarius

Tejas (Fire)
10 मकर Makara sea-monster Capricorn

Prithivi (Earth)
11 कुम्भ Kumbha pitcher Aquarius

Vayu (Air)
12 मीन Mīna fish Pisces

Jala (Water)

The dates for these zodiac signs are those in sidereal astrology, different from those in Hellenistic tropical astrology. Aries begins at the date when the sun enters into the constellation Aries, taking into account the precession of the equinoxes, while in tropical astrology Aries begins at the vernal equinox.
Read More

Best Places to visit in India - The Real Heaven

Have you visited the best places in India? Well you might have but the list never ends for places in India. India is known for its numerous cultures and each place you visit gives a different fragrance of our Incredible India. From heaps of sacred places, serene temples to spirited festivals, magnificent beaches, frosty & snow laid mountains, lantern-lit villages to superlative cities India leaves an impression on you and a never ending memory. 

Although this might not be a holiday season for most of you, you can make list of these places and keep it in your planner to plan your trip in India. These are some of the best places that India has got something unique to offer to its travelers.

Kashmir - Heaven on Earth:

Set high in the North of India, also called the 'Peak of India', Kashmir is surrounded by the Great Himalayas and the Pir Panjal mountain range. Kashmir's valley is made of fresh water streams, delicious apple orchards, mighty ice capped mountains and lush meadows. Among the silent valleys of Kashmir, there is much excitement awaiting those who are interested in adventure sports like river rafting, Trekking and Winter Sports. Be it adventure fanatics, spirituality or just holiday revelers, Kashmir is sure to satisfy everyone.

Ladakh- The Moon Land
Ladakh; called the "land of high passes" is a region of Jammu and Kashmir, the northernmost state of India. It lies between the Kunlun mountain range in the north and the 
main Great Himalayas to the south. The largest town in Ladakh is Leh. It is one of the few remaining abodes of Buddhism in South Asia, including the Chittagong Hill Tracts, Bhutan and Sri Lanka. Once in Ladakh, make sure you visit the Leh Palace, Tso Mori Lake, and Nubra Valley as well the number of monasteries dotting Ladakh. The sheer beauty of this place, combined with its amazing culture and the breathtaking journey. To really experience the true essence of Ladakh, we recommend a road trip by car, bike, jeep or bus.

Rajasthan- The land of the Kings

One of the world's oldest mountain ranges, the Aravalli Range, cradles the only hill station of Rajasthan, Mount Abu, famous for Dilwara Temples, a sacred pilgrimage 
for Jains. Eastern Rajasthan has the world famous Keoladeo National Park near Bharatpur, famous for its bird life and is a World Heritage Site and two famous national tiger reserves, Ranthambore and Sariska Tiger Reserve. Rajasthan was formed on 30 March 1949, when all erstwhile princely states ruled by Rajputs, known as Rajputana, merged into the Dominion of India. Music and culture aficionados will love the highly cultivated classical music and dance unique to Rajasthan.

Kerala- Gods own country
Kerala is a popular tourist destination famous for its backwaters, Ayurvedic treatments and tropical greenery. Backwaters which are a chain of lagoons are an integral pa 
rt of Kerala's Tourism Scenario and provide a really relaxing experience. Must visit places along these backwaters include Kumarakom (bird sanctuary), Astamudi Lake (largest fresh water lake) and Kannur-Valiyaparambu (scenic beauty). Kerala is one of the ten 'Paradises found' declared by the National Geographic Traveler, for its varied geography and devastating greenery.

Goa - The Beach City
Goa India's smallest state by area. However that doesn't stop it from being the best places to visit in India attracting more than 2 million visitors annually. With its pretty beaches, awesome seaf 
ood, vivid nightlife, picturesque churches and water sports, it's not hard to figure out why. If you are looking for your dose of adrenaline, you can indulge in water sports like paragliding, windsurfing, jet skiing and lots more. If food and drink makes your day, try out some of the sumptuous seafood (our pick Goan fish curry!) and the famous Fenny (Goan Liquor) at your disposal.

Courtsy: SiliconIndia

Follow on twitter for latest updates....
Read More

August 10, 2013

Use of HTML5 Download Attribute

As we know, there are many files that are not downloaded directly. For example: images, webpages, PDF files, music files, etc. We have to right click on images and then click on Save Image to save an image file. But if I want to download an image file directly, then I have to use the download attribute.
<a href="Image.jpeg" download>Download image</a>
Simply type download in the <a> anchor tag. By using this, when we click on download image, the image starts downloading. The same method is used for downloading PDF, webpage files (HTML), etc. 

If we want to give a new name to the download file, then we have to write:
<a href="Folder/myimagehavenoname.png" download="myImage">Download image</a> 
Here, we write download="myImage". When we click on Download image, then an image file is downloaded with  name myImage with a .png extension. The browser automatically detects the correct file extension and adds it to the downloaded file. So there is no need to add the file extension in the download attribute.


For checking our browser support download attribute, we have to use JavaScript:
var a=document.createElement('a');
if(typeof !="undefined")
    document.write('Download attribute supported');
    document.write('Download attribute not supported');
Currently, Chrome 14+ and Firefox 20+ supports the download attribute (tried and tested by me on Chrome).

I am including the .zip file for downloading in which I am showing the use of the download attribute as well as checking browser support for the download attribute.

Read More

August 9, 2013

Disable Ctrl+C ,Ctrl+V ,Ctrl+A in a web page : Javascript

Question How to disable Ctrl+C , Ctrl+V , Ctrl+A in any web page by using javascript.

Disable Button after clicking on it.

just copy and paste below script in <head> section

<script type="text/javascript">
        function Disable_Control_C() {
            var keystroke = String.fromCharCode(event.keyCode).toLowerCase();
            if (event.ctrlKey && (keystroke == 'c' || keystroke == 'v' || keystroke == 'a')) {
                alert("This function not allowed");
                event.returnValue = false; // disable Ctrl+C

and call the function in html body

<body onkeydown="javascript:Disable_Control_C()">
Hello World!
Read More

August 7, 2013

Disable Right Click Button - Javascript

while developing web application ,some situation arises where we have to disable right click button of a mouse in web pages of Asp.Net,PHP ,JSP. you can achieve this by using Javascript.

Qusetion - How to disable right click button of mouse in webpage.

add below script in head section of web page

<script type="text/javascript">
        var msg = "This function is disabled!";
        var bV = parseInt(navigator.appVersion)
        var bNS = navigator.appName == "Netscape"
        var bIE = navigator.appName == "Microsoft Internet Explorer"
        function nrc(e) {
            if (bNS && e.which > 1) {
                return false
            } else if (bIE && (event.button > 1)) {
                return false;
        document.onmousedown = nrc;
        if (document.layers) window.captureEvents(Event.MOUSEDOWN);
        if (bNS && bV < 5) window.onmousedown = nrc;

Read Also...

How to prevent page going back on backspace button click

Read More

August 5, 2013

The History of IPhone : Story so Far

In a scant few hours now, we’ll dive into chapter five in one of the most compelling stories of our digital-dominated era: The Life And Times of the iPhone. So for those of you who haven’t been paying attention, and even those of you who have (hands up if you remember the ROKR iTunes phone), here’s a recap.

Hover over the infographic to reveal pictures, videos and links from iPhone history. (The launch date of each phone is at the top of its screen.) Take note of the chips used in each iteration, and find out more about the real genius behind the iPhone’s design. Wax nostalgic in the comments about your favorite moments. And get ready for a whole new chapter Tuesday morning, whether it’s the iPhone 5, the 4S or both.

Read More

August 4, 2013

Grow Your Busines with Facebook

Facebook Business Page
Facebook on Tuesday debuted a step-by-step online guide aimed at helping small businesses use the social networking site.

The company is billing the new webpage, found at Facebook .com/business, as an "online education centre" that gives directions on such things as how to set up a profile page, create targeted ads and deals, and interact with customer feedback online.

The timing is interesting, as it comes just a week after Google began shutting off all company profiles on its Google + social network. The search engine giant says it's just company policy to restrict Google+ access to individual users, a stance that has inspired a good deal of controversy in recent days.

Facebook's new business webpage does not come along with any new features, it simply puts a lot of information that may be handy for small businesses in one place. Perhaps most importantly, it serves as a nicely timed reminder that unlike Google+, Facebook encourages companies to use its service for company branding.

"Facebook allows small businesses to create rich social experiences, build lasting relationships and amplify the most powerful type of marketing, word of mouth," a Facebook spokesperson wrote in an email. "We created to make it even easier for people to reach these objectives and grow."

This represents the second time in a month that Facebook has followed Google+ news with its own feature launch. Earlier in July, Facebook announced a partnership with Skype to bring video chat features within the social networking site, just one week after Google+ made waves with its own in-app video chat feature called Hangouts.

The timing of these events could certainly be coincidental, but it does look like Facebook is taking Google's recent entry into the social networking landscape seriously, and is increasing its feature updates and user satisfaction initiatives in turn. The new competition may be stressful for Zuckerberg and company, but ultimately it's great for consumers if both Google and Facebook continue to bring their A-games.

FB's new trick
The new webpage, found at, gives directions on how to set up a profile page, create targeted ads and deals, and interact with customer feedback online. The timing is interesting, as it comes just a week after Google began shutting off all company profiles on Google+. This represents the second time in a month that Facebook has followed Google+ news with its own feature launch.
Read More

© 2011-2016 Techimpulsion All Rights Reserved.

The content is copyrighted to Tech Impulsion and may not be reproduced on other websites.