Posts

Quantum Internet Benefits

Image
  The quantum internet is a network of quantum computers that are connected together using quantum communication. It has the potential to revolutionize many industries, including: Secure communications: The quantum internet would be inherently secure, as it would be impossible to eavesdrop on quantum communications without being detected. This could be used for applications such as secure financial transactions, government communications, and military applications. Quantum computing: The quantum internet would allow quantum computers to be connected together, which would allow them to solve problems that are currently impossible for classical computers. This could be used for applications such as drug discovery, financial modeling, artificial intelligence, and materials science. Quantum sensors: The quantum internet could be used to connect quantum sensors together, which would allow them to create a global network of sensors that could be used to monitor the environment, detect earthq

Getting Distance and Traveling Time (Bus Mode) Details from Google Maps in ASP.NET C# using Google Maps API XML & XPath Webservice

Image
Description: 1. In Design View Coding, add the Javascript Code in Head section to make an integration with Google Maps API Script.     <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"         type="text/javascript"></script> 2. Add the Source and Destination functions inside script tags, which is indicating the locations function Source() {             try {                 var input = document.getElementById('TextBox1');                 var autocomplete = new google.maps.places.Autocomplete(input);                 autocomplete.setTypes('changetype-geocode');             }             catch (err) {                 // exception catching here             }         }                  function Destination() {             try {                 var input = document.getElementById('TextBox2');                 var autocomplete = new google.maps.plac

Show your Current Location in Google Maps using ASP.NET C# website and Google Maps API

Image
Descriptions: Add this script tag inside <Head> section " <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyByJmQq7PkPaznZUFsH7AesFNUz82U8iOc&sensor=false"> </script> " Inside this Script add your own Key value  [ key=AIzaSyByJmQq7PkPaznZUFsH7AesFNUz82U8iOc]   from Google Code  https://code.google.com/apis/console/ 1. Getting User Location function in Javascript coding        function success(position) {         var latitude = position.coords.latitude;         var longitude = position.coords.longitude;         var city = position.coords.locality;         var myLatlng = new google.maps.LatLng(latitude, longitude);         var myOptions = {             center: myLatlng,             zoom: 12,             mapTypeId: google.maps.MapTypeId.SATELLITE         };                2. Setting Marker in Google Maps       var map = new google.maps.Map(document.getElementById(&

Auto Calculation in Textbox textchanged event in ASP.NET C#

Image
Screen Shot Coding 1. Design Coding <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Sample Text Change Event for Auto-Calculations</title> </head> <body> <form id="form1" runat="server"> <h2> Auto Calculations </h2> <div align="center" style="background-color: #C0C0C0" > <asp:TextBox ID="TextBox1" AutoPostBack="true" runat="server" ></asp:TextBox><br /><br />                                                                        

How to write Array in PHP code

Code <?php $food = array('Rice','Naan Panner Butter Masala','Veg Briyani','Sola Poori'); echo("<br/>"); print_r($food); ?> Output Array ( [0] => Rice [1] => Naan Panner Butter Masala [2] => Veg Briyani [3] => Sola Poori )

"How to maintain or retain tabs in same tab after button click events or postback?" using JQuery in ASP.NET C#

Image
In this post I'll share an details about " How to maintain or retain tabs in same tab after button click events or postback? " Step 1: you need to download Jquery and JQueryUI Javascript libraries from this site http://jqueryui.com/ Step 2: As usually you can create ASP.NET website from Visual Studio IDE and add Jquery and JqueryUI plugins in the header section of aspx page. Step 3: Add HiddenField control inside aspx page which is very useful to retain tab in same page Step 4: Use the HiddenField ID in Jquery code to indicate that CurrentTab Index Step 5: In code Behind, using Enumerations concept give the tab index values as user defined variable  Step 6: Use the Enum values in every Button click events on different tabs to check that tab could be retained in the same tab Further, Here I'll give the code details and snap shot pictures, 1. Default.aspx: Design Page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="