Posts

How to Create a Clickable Map Using Your Own Custom Map Image

you can find co-ordinate of a specific location inside your image map by the help of ms-paint and then put into polygon or circle point. <div style="float:left;width:960px;">         <div style="float: left; width: 960px;">             <img src="~/Images/CampingMap.png" style="width: 930px;" id="CampingMapImg" />             <svg width="930px" height="800px" style="overflow: hidden; position: absolute; top: 0; left: 8px;">                 <polygon fill="#000000" fill-opacity="0.5" stroke="#000000" stroke-width="2" points="878,125 896,125 896,148 878,148" stroke-opacity="1" stroke-linejoin="round" data-campid="818" data-available="false" onclick="CampStatus(this);"></polygon>                 <polygon class="poly_avail" fill="rgba(188, 112, 112, 0.55...

How to debug Windows services in Visual Studio?

Image
Yo can find this solution from http://stackoverflow.com/questions/4678819/how-to-debug-windows-services-in-visual-studio  or http://msdn.microsoft.com/en-us/library/7a50syb3(v=vs.110).aspx You can also try this. Create your Windows service and install and start…. That is, Windows services must be running in your system. While your service is running, go to the  Debug  menu, click on  Attach Process  (or process in old Visual Studio) Find your running service, and then sure the  Show process from all users  and  Show processes in all sessions  is selected, if not then select it. Click the  Attach  button Click  OK Click  Close Set a break point to your desirable location and wait for execute. It will debug automatic whenever your code reaches to that point. Remember, put your breakpoint at  reachable place , if it is  onStart (), then stop and start the service again If your debugger ...

Visual Studio ALL keyboard shortcuts

Ctrl+S Save current file Ctrl+Shift+S Save all files Ctrl+Shift+N Create new project Ctrl+O Open file Ctrl+Shift+O Open project Ctrl+Shift+A Add item to project Esc Close menu or dialog Ctrl+P Print Shift+Alt+Enter Toggle full screen mode Ctrl+F4 Close current tab Ctrl+F6/Ctrl+Shift+F6 Go to next / go to previous window Ctrl+Tab, then Arrow keys Press and hold Ctrl+Tab, then using arrow keys gives a small task manager with all open files and views For keystrokes with two keys such as Ctrl+k+k, keep holding the Ctrl key until releasing the last key. Ctrl+K+K Toogle bookmark Ctrl+K+N Goto next bookmark Ctrl+K+P Goto previous bookmark Ctrl+Shift+K+N Goto next bookmark in folder Ctrl+Shift+K+P Goto previous bookmark in folder Ctrl+K+W Put focus on bookmark window Esc Leave bookmark window and focus on editor Ctrl+K+H Toggle code shortcut at current line* Ctrl+K+L Clear all bookmarks Ctrl+\+T Show Task List (including c...

Chandra Bhushan Prasad: How To Get IP & Locations details of client machin...

Chandra Bhushan Prasad: How To Get IP & Locations details of client machin... : Using JQuery Add this code in head section <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/j...

How To Get IP & Locations details of client machine in asp.net

Using JQuery Add this code in head section <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>     <script type="text/javascript">         $.get("http://ipinfo.io/66.87.90.80", function (response) {             document.getElementById("<%=Label1.ClientID %>").innerHTML = "";             document.getElementById("<%=Label1.ClientID %>").innerHTML = "IP is : " + response.ip + "<br> Host Name is : " + response.hostname             + "<br> Host Name is : " + response.hostname             + "<br> City Name is : " + response.city             + "<br> Region Name is : " + response.region             + "<br> Country Name is : " + response.country   ...

C# Downloading website into string using C# WebClient or HttpWebRequest

1st Method............ ---------------------------------------- public void ReadPage()     {         HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create( "https://www.kickass.to/");         req.Method = "GET";         req.UserAgent = "Mozilla/5.0 (Windows; U; MSIE 9.0; WIndows NT 9.0; en-US))";             string source;         var response = req.GetResponse();         var stream = response.GetResponseStream();         try         {             if (response.Headers.AllKeys.Contains("Content-Encoding")                 && response.Headers["Content-Encoding"].Contains("gzip"))             {                 stream = new System.IO.Compression....

Chandra Bhushan Prasad: Concatenate column's in sql server...

Chandra Bhushan Prasad: Concatenate column's in sql server... : declare @s varchar(8000) select @s=coalesce(@s +',"' ,'"') + ProjectName +'"' from ProjectMaster se...