Tuesday, October 29, 2013

Including JQuery manually

<script src="<%= Url.Content("~/Scripts/jquery-1.5.1.min.js") %>" type="text/javascript

Use NuGet

to install JQuery in a project where it isn't already installed

Monday, October 28, 2013

advantage of IE JS Debugger over chrome

putting breakpoints on anonymous code blocks

drop table statement

doesn't work on table variables

when I was sleeping

sql server added multiple values on insert thusly:
 DECLARE @tbl TABLE (
test VarChar(100) NOT NULL
);
insert into @tbl values('xzczxc'),('erter')
select * from @tbl


Difference between 'POST' and $.post

in this case the the token was properly posted

$.post(serviceURL, {Ids: ids,actionId: action.Id, __RequestVerificationToken: token },
             function (data) {


while this way

$.ajax(
      {
            url: serviceURL,
             type: 'POST',
              contentType: "application/json; charset=utf-8",
            data: {
                    Ids: ids,
                   actionId: action.Id,
               __RequestVerificationToken: token

it wasn't. No idea why.

Thursday, October 24, 2013

export registered servers in ssms

do not include user names and pswds - otherwise the file is encrypted and the export file wont work on another machine

Tuesday, October 22, 2013

mvc http 500 errors

check the passed parameters - the procedure will never be hit

Thursday, October 17, 2013

Monday, October 14, 2013

search in VS

ctrl-shft-f to get search in files

Friday, October 11, 2013

The remote server returned an error: NotFound

use fiddler

InvalidDataContractException: No set method for property

here 

Chrome clear cache

1. In chrome, open the chrome developer toolbar. (shortcut F12)
2. Click and hold the “Reload” button on the chrome. After a second you get the options as shown in the screen shot below.
3. Select the third option : “Empty Cache and Hard Reload”

Thursday, October 3, 2013

get schema of sp

select OBJECT_SCHEMA_NAME([object_id]),OBJECT_NAME(object_id)  from sys.sql_modules

Debugging in VS large solutions

never run "run"

instead , go to the main website and view in browser then attach the debugger to the port

otherwise all the symbols will have to load and life is too short

Wednesday, October 2, 2013