Skip to main content

How do I get the website URL Solved

Well their are multiple ways through which we can get link of page we are on
some are
  1. we can use window.location.href to get the complete URL.
  2. And  window.location.pathname to get URL leaving the host
see example here get the website url 
through jquery we can access it using href attribute
$(location).attr('href'); 

Comments

Popular posts from this blog

Difference between ASP.NET Web Application and ASP.NET Web Site

Web Site   Just a bunch of files and folders. There’s no project file. Code-generation and compilation of web pages (such as .aspx, .ascx, .master) is done dynamically at runtime, and changes to these files are detected by the framework and automatically re-compiled. You can put code that you want to share between pages in the special App_Code folder, or you can pre-compile it and put the assembly in the Bin folder. Web Application    Because Web Applications contains files that are not meant to be deployed, such as project and code files, there’s a Publish command in Visual Studio to output a Web Site to a specified location. Difference between ASP.NET Web Application and ASP.NET Web Siteaption  

USB Device not recognized

Their are many reasons for this error some are This issue can be caused if any of the following situations exist: The currently loaded USB driver has become unstable or corrupt Windows may be missing other important updates hardware or software issues Your USB controllers may have become unstable or corru Your PC requires an update for issues that may conflict with a USB external hard drive and Windows Your PC motherboard may need updated drivers Solution  Uninstall and then reconnect the external hard drive This method resolves issues where the currently loaded USB driver has become unstable or corrupt. from the device manager Right-click the USB external hard drive with the issue, and click  Uninstall . After the hard drive is uninstalled, unplug the USB Wait for 1 minute and then reconnect the USB cable. The driver should automatically load Check for the USB drive in Windows Explorer Install Windows Update  Reinstall USB controllers. Install your mothe