Quantcast
Channel: HTML element – Random Technical Thoughts
Browsing all 8 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

JS to tell if an object is viewable on the screen

  Here is some JavaScript that has a function to tell if an object is viewable on the screen. This is quite helpful if you have something on the screen you want to make sure the user sees, like a an...

View Article



Image may be NSFW.
Clik here to view.

Record count of all tables in a database

Here is a sql script that will give a count of all records in every table in your database. This comes from my friend David McCollough. CREATE TABLE #sizes ([name] nvarchar(200), [rowcount]...

View Article

Image may be NSFW.
Clik here to view.

Track Changes to objects in your database

Ever have the need to be able to track changes to the objects in your database? This code sample was provided by a friend, Josh Shilling.  It provides you with a change log on your database.  This will...

View Article

Image may be NSFW.
Clik here to view.

How to programmatically determine the current method name

If you want to determine the current method in code (C#) here is the line of code you need. MethodInfo.GetCurrentMethod().Name This call will return the current method name as a string.  (It is from...

View Article

Image may be NSFW.
Clik here to view.

How to add a content editor web part to a SharePoint page

Here is some code to add a content editor web part to a page. So if you are creating a page in code (like during feature activation), then you put a content editor web part on the page. Setting the...

View Article


Image may be NSFW.
Clik here to view.

How to insert records to a table with an identity column

If you have a table with an identity column, you can’t just do a simple insert.  That identity column needs to be excluded from your insert statement. There are times when you need to keep the ID...

View Article

Image may be NSFW.
Clik here to view.

How to add a content editor web part to a SharePoint page

Here is some code to add a content editor web part to a page. So if you are creating a page in code (like during feature activation), then you put a content editor web part on the page. Setting the...

View Article

Image may be NSFW.
Clik here to view.

How to insert records to a table with an identity column

If you have a table with an identity column, you can’t just do a simple insert.  That identity column needs to be excluded from your insert statement. There are times when you need to keep the ID...

View Article

Browsing all 8 articles
Browse latest View live




Latest Images