Changing your BlogSpot Blog to DoFollow CapturedTech - Technology - Patrick Stevens Apr 23 2009 206 11 Changing your BlogSpot Blog to DoFollow I have casually been running a Blogspot blog for some time mostly for linking back to my main web sites. Until today I hadn't taken the time to find out how to alter the blog from a nofollow blog to a dofollow blog. At first it seemed like altering the layout HTML would be all that was necessary but there were no nofollow tags in the code. Then I came across Tips for Blogspot which showed the needed flag 'Expand Widgets'. After selected this checkbox and replacing the two rel="nofollow" with rel="nofollow external", I was set. Read more ...
JavaScript OnMouseOver for Firefox CapturedTech - Technology - Patrick Stevens Apr 10 2009 483 17 JavaScript OnMouseOver for Firefox I wrote a fairly simple JavaScript line to modify the size of an image when there is a OnMouseOver event. And then wrote a similar line of JavaScript to reduce the size back to normal on the OnMouseOut event. The only problem is the JavaScript didn't work on FireFox although it was great with Internet Explorer. After some research I found that using the 'this' object was needed with FireFox. So I adjusted my code to also have the events in the image object itself. Here is the code: Read more ...
Updating a Table Without Firing the Trigger CapturedTech - Technology - Patrick Stevens Apr 09 2009 209 1 Updating a Table Without Firing the Trigger Having a Trigger on a SQL Server table is a great feature that can keep data in sync and update records automatically when needed but what about those cases where you want to run an update command and don't want the trigger to fire. I came across a situation where an update timestamp on a record was being displayed on a web page and I wanted a specific date to show up. The easiest way to fix this issue was to disable the trigger, update the update timestamp on the record, and then enable to trigger. Here is the code: Read more ...
Collapsing and Expanding HTML Code CapturedTech - Technology - Patrick Stevens Apr 01 2009 409 16 Collapsing and Expanding HTML Code When in need of a quick way to expand and collapse HTML code on the client without posting back to the server of your web application, utilize the tag with a style and some Javascript. Start with the style display set to either none or block and then interchange these two setting based upon a hyperlink click event. Read more ... Adding Items to the Cache, Retrieving the Items, and Clearing the Cache CapturedTech - Technology - Patrick Stevens Mar 27 2009 188 7 Adding Items to the Cache, Retrieving the Items, and Clearing the Cache When working with a web application that contains data items that do not change too often, it improves the performance of the application to store data items in the server cache and retrieve those items from the cache instead of making an extra trip to the database. Also clearing the cache when a item does change is important for your application. Read more ... Getting a List of SQL Database Tables with One Statement CapturedTech - Technology - Patrick Stevens Mar 23 2009 163 3 Getting a List of SQL Database Tables with One Statement There are a number of really good content management systems available today from Dot Net Nuke to Joomla to Wordpress and creating web sites with them is fast and somewhat easy allowing you to focus more on design and content. But when you need to dig into the database to remove old ads or quickly delete spam comments, knowing the tables available with a single SQL statement is very helpful. I came across a great SQL statement that shows not only the tables but record counts within those tables. And after finding the table containing the information to be changed, getting a list of the Top 10 records with all the columns available makes creating the needed delete or update statement a snap. Read more ... Binding a DataSet to a DataGrid in ASP.Net CapturedTech - Technology - Patrick Stevens Mar 13 2009 254 4 Binding a DataSet to a DataGrid in ASP.Net I am in the process of enhancing the functionality of an ASP.Net application that I inherited and today I needed to display a grid of related data below an entry form on a page. Some of the functionality was present on a different page following the style the original programmer implemented. A database function to return a Datasource did not exist within the data class so that was my first step. I found this great code below showing the basic syntax of binding a dataset to a datagrid in ASP.Net which was helpful. Read more ... SQL Server Grep Function for Keyword Code Searching CapturedTech - Technology - Patrick Stevens Mar 06 2009 422 1 SQL Server Grep Function for Keyword Code Searching Back in the days when I was working with Sybase there was a function I found and used often to search for keywords in database code areas called sp_grep. You could pass a keyword to the stored procedure and it would return all objects that contained code with the keyword present. This week I had the need to run Grep on a SQL Server database that we have taken over the maintenance of. I found this very useful stored procedure called sp_search_code by Narayana Vyas Kondreddi that performed the needed search. Read more ... Turning On/Off APS.Net Client Side Validation CapturedTech - Technology - Patrick Stevens Mar 06 2009 177 0 Turning On/Off APS.Net Client Side Validation Javascript has a built in function, ValidatorEnable, to turn on or turn off client validation so you can validate certain controls under only certain conditions. The code attached shows how to limit the validation on a textbox depending on value of a dropdown list. The code also only displays the textbox when the same condition is true. Read more ... Add Hyperlinks to an ASP.Net BulletList CapturedTech - Technology - Patrick Stevens Mar 04 2009 318 0 Add Hyperlinks to an ASP.Net BulletList I had the need to add hyperlinks to an asp.net server bulletlist today and found some very good examples online including the following example. This example defines a datasetdatasource as an xml file and them loads the values of the xml file into the bulletlist with hyperlinks included. Easy implementation and clear separation of the control and the data to be displayed by the control. Read more ... 1 ... 52 53 54 55 56
Adding Items to the Cache, Retrieving the Items, and Clearing the Cache CapturedTech - Technology - Patrick Stevens Mar 27 2009 188 7 Adding Items to the Cache, Retrieving the Items, and Clearing the Cache When working with a web application that contains data items that do not change too often, it improves the performance of the application to store data items in the server cache and retrieve those items from the cache instead of making an extra trip to the database. Also clearing the cache when a item does change is important for your application. Read more ...
Getting a List of SQL Database Tables with One Statement CapturedTech - Technology - Patrick Stevens Mar 23 2009 163 3 Getting a List of SQL Database Tables with One Statement There are a number of really good content management systems available today from Dot Net Nuke to Joomla to Wordpress and creating web sites with them is fast and somewhat easy allowing you to focus more on design and content. But when you need to dig into the database to remove old ads or quickly delete spam comments, knowing the tables available with a single SQL statement is very helpful. I came across a great SQL statement that shows not only the tables but record counts within those tables. And after finding the table containing the information to be changed, getting a list of the Top 10 records with all the columns available makes creating the needed delete or update statement a snap. Read more ...
Binding a DataSet to a DataGrid in ASP.Net CapturedTech - Technology - Patrick Stevens Mar 13 2009 254 4 Binding a DataSet to a DataGrid in ASP.Net I am in the process of enhancing the functionality of an ASP.Net application that I inherited and today I needed to display a grid of related data below an entry form on a page. Some of the functionality was present on a different page following the style the original programmer implemented. A database function to return a Datasource did not exist within the data class so that was my first step. I found this great code below showing the basic syntax of binding a dataset to a datagrid in ASP.Net which was helpful. Read more ...
SQL Server Grep Function for Keyword Code Searching CapturedTech - Technology - Patrick Stevens Mar 06 2009 422 1 SQL Server Grep Function for Keyword Code Searching Back in the days when I was working with Sybase there was a function I found and used often to search for keywords in database code areas called sp_grep. You could pass a keyword to the stored procedure and it would return all objects that contained code with the keyword present. This week I had the need to run Grep on a SQL Server database that we have taken over the maintenance of. I found this very useful stored procedure called sp_search_code by Narayana Vyas Kondreddi that performed the needed search. Read more ...
Turning On/Off APS.Net Client Side Validation CapturedTech - Technology - Patrick Stevens Mar 06 2009 177 0 Turning On/Off APS.Net Client Side Validation Javascript has a built in function, ValidatorEnable, to turn on or turn off client validation so you can validate certain controls under only certain conditions. The code attached shows how to limit the validation on a textbox depending on value of a dropdown list. The code also only displays the textbox when the same condition is true. Read more ...
Add Hyperlinks to an ASP.Net BulletList CapturedTech - Technology - Patrick Stevens Mar 04 2009 318 0 Add Hyperlinks to an ASP.Net BulletList I had the need to add hyperlinks to an asp.net server bulletlist today and found some very good examples online including the following example. This example defines a datasetdatasource as an xml file and them loads the values of the xml file into the bulletlist with hyperlinks included. Easy implementation and clear separation of the control and the data to be displayed by the control. Read more ...