Rss Feed Like Us on facebook Google Plus

August 29, 2013

JQuery ColorBox : Do Postback for inline HTML

While using JQuery Color Box with inline content , postback of submit button is not working...

Color Box script generates an iframe for your target Page/Html.In case of inline content/html ColorBox generates an iframe outside the  <form> tag. As we all know to do postback we need  <form> tag. So in generated iframe HTML there is no  <form> tag available.

very simple hack , we have to just append the generated iframe html to <form> tag. checkout the below script.


<script type="text/javascript">
        function cbox() {
            $.colorbox({ inline: true, width: "50%", href: "#inline_content", onOpen: AllowPostback });
        function AllowPostback() {


<div id='inline_content' style='padding:10px; background:#fff;'>
      <h2>Inline Content </h2>
      <input type="submit" id="btn" name="btn" />

Read More

August 25, 2013

GPG Dragon Box v3.27 Ready to download

GPG Dragon software updates to latest version automatically. It also provides detailed news, information and features for latest release if available with if a popup window.

If you face any error you can use the GPG Dragon v3.26 .
  • Add SPD 8825\6825 CPU Support [First in the World]
  • Add SPD 8825\6825 CPU Write Flash Support
  • Just Support Factory Flash PAC Format File
  • Move the MTK 6575 NAND Write Flash Support 0x840 page .
  • Add MTK android IMEI Change with USB Cable Support .
  • <Without Root\more easy do it!!!> 
  • Software Add Set Pinout Windows 
  • in Software Tools Add Dragon V2 software 
  • Add Reset Foramt for SPD android Phone [beta]


Check out OLD Versions..
GPG Dragon Box v3.25
GPG Dragon Box v3.26 
Read More

August 24, 2013

Use More Than One Web.Config File : Asp.Net

If you have planned to have different Web.config files for sub-folders in the application root folder. It helps us to have small and easily maintainable configuration files.

System wide configuration settings are defined in the Machine.config for the .NET Framework. The Machine.config file is located in the  C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG
folder. The settings defined in this file are applicable to all ASP.NET applications in that system.

We can override these default settings by including a Web.config file in the application's root folder.

By including Web.config files in sub-folders, we can override the settings defined in the Web.config file in the application's root folder.

The following are sample section declarations from a Machine.config file:
<section name="processModel" 
        System.Web, Version=1.0.5000.0, Culture=neutral, 
<section name="sessionState" 
        System.Web, Version=1.0.5000.0, Culture=neutral, 
<section name="appSettings" 
  type="System.Configuration.NameValueFileSectionHandler, System,
        Version=1.0.5000.0, Culture=neutral, 
There is an attribute allowDefinition specified in the first two section declarations with the values: MachineOnlyand MachineToApplication.

What it does mean?

If allowDefinition="MachineOnly", then we can not override this section either in application level or in folder level. The only section declared in the Machine.config file with this settings is processModel.

If allowDefinition="MachineToApplication", then we can override these sections by the root directoryWeb.config. Sections with this setting 
in Machine.config are authenticationmachineKeysessionStatetrust, and securityPolicy.
If allowDefinition attribute is omitted in a section declaration of the Machine.config file, we can override that section at any level.

We can override the section appSettings at any level and can access it by usingConfigurationSettings.AppSettings easily.

Read More

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

© 2011-2016 Techimpulsion All Rights Reserved.

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