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
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.
$.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
Subscribe to:
Comments (Atom)