How do I disable the search indexer windows 7

by ebarcza 2/24/2012 8:41:00 AM
  1. Click Start
  2. Click Control Panel
  3. Click Administrative Tools
  4. Double-click Services
  5. If asked for permission, click Continue
  6. Scroll through the list and find "Windows Search"
  7. Right-click it, and click Properties
  8. Click Stop
  9. Click the dropdown box next to Startup Type
  10. Click Disabled
  11. Click OK


Math.Round not rounding up

by rbellantoni 2/22/2012 4:53:00 AM

If you have a value like 12.1065 and you use Math.Round and it is not rounding to 12.107 like it should and is instead rounding to 12.106. Then this is what you need to do:


Changing the midpoint rounding mode will allow you to round properly!


IIS7 framework version

by ebarcza 2/21/2012 8:27:00 AM

.Net framework version in IIS7 is set for the application pool and not application.

This saves you from making sure to keep framework version of all applications which will run in a application pool to use same framework version. Go to application pools, select your apppool and click basic settings to configure.



Disable form validators with Javascript API

by pencilvac 2/17/2012 12:00:00 PM

You may come across the necessity in a project to disable or enable server side form validators because of some form of client side action with javascript. In my scenario I had to either display or hide a state dropdownlist ( a telerik control radcombobox) and show a region/province text box in a customer input form depending on whether the user was from the USA or another country. When the user was outside of the U.S. we obviously need to remove the state recquired field validator.

In order to do so I took advantage of the very robust Telerik radcombobox javascript api which included the onClientLoad and OnClientSelectedIndexChanged Client side functions which I attached to my countries radcombobox.

<telerik:RadComboBox  Width="142" ID="ddlCountries" OnClientLoad="checkCountry" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"  runat="server" MarkFirstMatch="True" />

onClientLoad runs any javascript you put inside of it immediately after the drop down is done loading. OnClientSelectedIndexChanged runs, well, right after the user picks a new value in the drop down.

OnClientLoad function :

    function checkCountry(sender) {

        var value = document.getElementById('<%=ddlCountries.ClientID  %>').value;

        if (value !== "United States") {

            var stateValidator = document.getElementById('<%= valState.ClientID  %>');
            ValidatorEnable(stateValidator, false);

        else {

            var stateValidator = document.getElementById('<%= vaState.ClientID  %>');
            ValidatorEnable(stateValidator, true);


Basically the function onload checks to see if the value of the drop down selected is the United States or not. If it is the U.S. then the 

ValidatorEnable function take the parameter of the server ID of the validator you either want to enable or disable as well as whether you want

to enable or disable it. In order to retrieve the Client side ID of the validator I threw the javascript functions within a Telerik Code block.


Like magic you can disable and/or enable your server side validators from client side javascript using the Telerik javascript API.


ASP.NET AJAX | JavaScript | Telerik

C# format string as a number with ToString()

by ebarcza 2/17/2012 7:00:00 AM
int x = 25600;
//No Decimals
string numString = x.ToString("N0");

//With Decimals
string numStringDec = x.ToString("N5");



SQL Server print GetDate with Seconds

by ebarcza 2/9/2012 9:53:00 AM

print CONVERT(varchar, GetDate(), 121)


Best Repair Tracker and Service Tracker out there!!

by rbellantoni 2/3/2012 6:41:00 AM

If you looking for a great system to track your repair items or service calls, this system is the best one out there: Repair Tracker. It can take pictures of your items, track orders, search orders, integrate with quickbooks, generate claim checks and even email clients for you!

This software is simple, yet powerful, it can track your service or repair items easily and quickly, as well as give you reports on employee work and time spent. Repair Tracker will save your business time and money and keep your customers happy!

Repair Traq is one of the best repair trackers out there!


Powered by BlogEngine.NET
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail


<<  September 2022  >>

View posts in large calendar

Recent comments



The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2022

Sign in