Browsed by
Author: camro

Granting Permissions Based on AD User Group Membership

Granting Permissions Based on AD User Group Membership

After several different trial and error expeditions, I finally have a working PageLoad event to check whether the currently logged in user is a member of a specific group in Active Directory. The first step I used was a stored procedure to get a list of the user’s groups in Active Directory. We needed this for another project and I just reused it for this one. USE [master] GO /****** Object: StoredProcedure [dbo].[GetLdapUserGroups] Script Date: 11/18/2013 11:58:14 ******/ SET ANSI_NULLS…

Read More Read More

Using ExecuteScalar to Populate a Variable in C#

Using ExecuteScalar to Populate a Variable in C#

After many attempts and various and sundry internet searchings, I have finally have properly working code to display the result of a scalar query in tSQL using asp.net C#. I had to add the reference to System.Configuration in Visual Studio. using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.Sql; using System.Data.SqlClient; using System.Configuration; Then I have this code in the PageLoad event of code behind: int addcount; //variable to hold my result string strConnection =…

Read More Read More

Irritating “Invalid URL” Message

Irritating “Invalid URL” Message

Several months ago, I started getting “Invalid URL” message when going to Facebook or Google, but only on my home network. I tried different browsers, etc., but couldn’t figure out what the problem was. I think I might have gotten it under control now. I tried flushing my DNS cache and that cleared it up this time. I will continue trying that when I get the error again. If you start getting this error on Facebook or Google (or any…

Read More Read More

Sending a Form to HTML Email Using C# and asp.net 4.0

Sending a Form to HTML Email Using C# and asp.net 4.0

I often find myself needing to set up a form to email page on a website. For whatever reason, I am not able to always use the same code. So my latest code is included here. This code sends an HTML email from an asp.net 4 website using C#. using System; using System.Net; using System.Web.UI.WebControls; using System.Net.Mail; using System.Text; public partial class contact : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { txtFirstName.Focus(); } protected void btnSendMail_Click(object sender, EventArgs e) {…

Read More Read More

The Gardens at Jane Circle

The Gardens at Jane Circle

These are photos of the Gardens at Jane Circle. They are located in the front and back of our house in Fayetteville. Click on each picture to see a full size, hi-resolution copy of the picture.      

iTunes SQLite3.dll Error

iTunes SQLite3.dll Error

So, you’ve update iTunes and now you get an sqlite3.dll error every time you boot your pc. It’s happened to me the last three times I’ve updated iTunes. It’s easy to fix following these three easy steps. The error says “The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.” To fix the dll error, go to this folder: C:\Program Files\Common Files\Apple\Apple Application Support and right click and copy this file – SQLite3.dll. Then, go…

Read More Read More

Most Improved Swimmer

Most Improved Swimmer

Kori got the award for the most improved swimmer for the Fayetteville High School Bulldogs Swim & Dive team tonight at their end-of-year awards ceremony. She worked really hard and shaved almost two minutes off her time of the 100-yd backstroke during the year. Now she’s decided she wants to learn the butterfly stroke for next year. Hopefully we can find a coach/teacher for her this summer. We are so very proud of her!!!

The Great PC Rebuild of 2011

The Great PC Rebuild of 2011

I had to rebuild my pc this past weekend – so NOT what I’d planned to be doing. I’m still trying to get everything reloaded now. Had the operating system on a 35gb 10k Raptor drive, but Windows 7 eats up drive space like crazy. So, I had to rearrange my drives and reinstall Windows 7 on a larger drive. That actually went pretty smoothly. Now the fun part – getting everything else reloaded. I think I’ve got most everything…

Read More Read More

Consequences

Consequences

Kori got caught with her phone out at school a couple of days ago and got it taken away. So she has been without her phone for the last 48 hours – horrors!! I wondered why she hadn’t responded to the last few times I’ve texted her – LOL. Now I get to have a conversation with the principal tomorrow about her consequences at school. If that’s the worst thing she does, I think we are doing just fine.

Missing the Danes

Missing the Danes

I raised and showed Great Danes back in the late 80’s and early 90’s. They are such gentle giants. My baby sister sent me this picture of her 5.5 month old Mastiff puppy, Maggie, chillaxing with my adorable nephew, Jacob. She said Maggie thinks Jacob is “hers”.  Makes me miss the Danes a lot.