Often you want to debug a website hosted in IIS from your visal studio. Requirement: Visual Studio, Website (you want to debug) must have the same source code. Now web browser (Internet explorer, Firefox , Google chrome etc) type the URL of your website hosted in IIS (Internet Infomration Server). Open the Source code in [...]
The other day I copied a working website solution onto a different machine and attempted to compile and run it in debug mode. It compiled fine and started to run, the browser attempted to load the page up in debug mode running of a port (as is normal), but then I got a Page Not [...]
Have you ever wanted to sort an ASP.NET drop down list, and tried to search for DropDownList1.Sort in the intellisense? How dissapointing that Microsoft did not supply this. Below I show you how to implement a SortDropDownList function that will allow you to achieve this functionality: public void SortDropDownList(DropDownList dropDownList) //Listbox too { ArrayList arrayList [...]
Removes extra space from the string using Regular expression. public static readonly RegexOptions Options =         RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline; public string RemoveExtaSpaces(string text) { Regex regex = new Regex(@”\s{2,}”, Options); text = regex.Replace(text.Trim(), ” “); //This line removes extra spaces and make space exactly one. //To remove the space between the end of a word [...]
I was using following code to show Popup window //opens a pop up window function PopupWindow(url) { mywindow =window.open( url, “Popupwindow”, “location=1,status=0,scrollbars=1,width=800, height=600,resizable=1,toolbar=0″ ) Above code was showing Popwindow then Requirement changed and we needed a Modal popup Window. Then I found followin code which provides required functionality. //opens a pop up window function PopupWindow(url) { var [...]
It really depends on your requirement. For graphics you can use MsPaint which comes free with windows operating system or you can go fot adobe photoshop or Macromedia Freeand, Firworks. But if your website is using CSS (Cas Cade Style sheets) then you can write them in not pad, word pad or you can go [...]