You are here:   Home
Register   |  Login

Programmer Newsletter

Minimize

Master Programmer

Minimize

Find articles on computer software, programming, ASP.net, Sql server, databases, C#, websites, Internet, Windows, Outlook macros.

Programming Articles

Minimize
Asp.net Relative and Virtual Path Problems with Applications and Development and Production Environments
When you use Visual Studio to develop a website application and you run the website in the Visual Studio debugger you get a url like this. http://l...
Asp.net 9
Asp.Net User Control Content is not allowed between the opening and closing tags for element
In Asp.Net 4, I have a user control for putting an email address on the page. The control looks like this. <my:email ...>Any Text</my:emai...
Asp.net 46
The type or namespace name 'Objects' does not exist in the namespace 'System.Data'
In migrating my website from Asp.Net 3.5 to 4, I got this error. The type or namespace name 'Objects' does not exist in the namespace 'System.Da...
Asp.net 47
Disabling Printing, Selecting and Right Clicking to Prevent Copying Text and Saving Images Using Javascript and CSS
Here is some useful code to protect the content of your website from the average viewer who may casually try to grab it. Of course, this will not pre...
Web Browser Html Javascript Jquery 67
CSS List Bullets and Numbers Overlay Floating Image
Have you had the bullets, numbers or letters for your list items overlay an image or some other item on your page? Try this. ul,ol { list-style-...
CSS - cascading style sheets 367
Microsoft Sql Server Management Studio Express How to Edit More than 200 Rows
In Microsoft Sql Server Management Studio Express (MS SSMS Express 2008), if you right click on a table you have the option to Select Top 1000 Ro...
Sql 415
Asp.net Login Not Working in an Iframe
If someone wants to embed part of your website within their website, a simple way to do that is using an Iframe. One problem is if people need to log...
Membership 461
Giving Up for Now on Auto Resizing Iframe for Cross Browsers
I have written a number of articles about how to auto resize an iframe to fit to the size of its contents.  This is a great thing, when it ...
Web Browser Html Javascript Jquery 578
Css Center Images Horizontally
You can try to use this CSS code to center an image. img.center { display:block; margin:0 auto; position:relative; } Use in your ...
CSS - cascading style sheets 680
Sql Server Changing the Default Database
In Windows 7, Sql Server Express R2 with SSMS, the default database is the master database. Not great. If you run a script and forget to specify the ...
Sql 449
Understanding SqlCmd Variables and the Use Command
SqlCmd variables appear to be object references or at least something related, not strings. SqlCmd variables can be set to strings, but they can also...
Sql 1320
Powershell How to Make Windows Faster By Stopping Processes and Services
The more programs running the slower your Windows computer will work. To speed up your computer, stop programs from running that you do not need...
PowerShell 781
Powershell Execution Policy Warning Cannot Be Loaded Scripts is Disabled on this System
Powershell scripts are programs and can take over your computer. They are potentially dangerous, so by default Powershell scripts are disabled. You w...
PowerShell 723
Asp.net Menu Control Remove Inline Font-Size 1em
The Asp.net menu control adds font-size:1em to the menu items. This prevents setting the font-size in a CSS style sheet. That is a nuisance. Th...
Asp.net 882
Asp.net Menu Control Horizontal Bar Separator Add the Easy Way
When using the Asp.net Menu Control to display a horizontal menu, you might want to add a bar between menu items, like this: Item1 | Item2 | Item3 ...
Asp.net 2102
Asp.Net Menu Control How to Skip the First Item
If you are using an Asp.net menu control with an Xml file, you may have a problem in that the root node is displayed. For example, if your Xml file l...
Asp.net 743
How to Read a Delimited Text File in Asp.Net Using OleDb Including CSV or Tab
Here is a handy way of reading a delimited text file into an Asp.net program. Rather than reading and parsing the file yourself, you can use the OleD...
Asp.net 1611
Chamber of Horrors Cross Browser Programming
Back in the day, when I first started writing software for the Internet, there were a few browsers around. The first thing that stuck out was they did...
Web Browser Html Javascript Jquery 817
Dynamically Resize Iframe to Fit Contents for Internet Explorer and Firefox
Only works on the same domain. Wasted way too much time on cross browser support, but it must be done since Firefox and IE deliver about the same num...
Web Browser Html Javascript Jquery 1733
Windows Live Mail Programming Macros SDK
Wanted to write some code for the Windows Live Mail client. I have a bunch of different from email addresses. Some are for clients. The problem is, s...
Windows 1307
Asp.net Menu Control Drop Down Not Displaying Appears Blank in IE8
When using IE8 the drop down menus with the Asp.net Menu Control do not show. You get the outline of the menu, but there are no menu items in the box...
Asp.net 2265
How to Parse an Xml Document in Asp.net Grabbing Attributes Values and InnerText from ChildNodes
Asp.net provides many ways to parse Xml Documents. How you parse your Xml document depends on the structure of your document and what values you need ...
Asp.net 3665
Ustream.Tv Get Archived Videos for a User
Ustream.tv lets you stream live videos. After your live show, Ustream automatically archives the videos. You can embed your live show on our website....
Asp.net 1241
Convert HTML and XML to Display on Web Page
You may get some html or xml text that you want to display as is. To do this, you need to convert the text so that the web browser does not format the...
Asp.net 1276
Asp.net Menu Control Drop Down Menus Display Badly in Safari and Chrome
The Asp.Net menu control does not display drop down menus on Apple in Safari browser and may have problems on Chrome and other browsers. The two...
Asp.net 1884
HtmlTextWriterTag.Div Downgrades to Table on Lower Level Browser in Asp.net
Yikes, in Asp.net you can ask for Div tag  and get a Table tag. writer.RenderBeginTag(HtmlTextWriterTag.Div); That sucks. In my case, I ...
Asp.net 1144
ASP Does Not Work in IIS 7
You are using Internet Information Services 7 or 7.5 and you get an error trying to bring up a classic ASP page. Server Error in Applicatio...
Asp.net 1614
CSS for Information Highlights, Boxes and Tables
Here is some CSS to make highlighting information on your website easy. Rather than putting the highlighting directly in your HTML code, you create a...
CSS - cascading style sheets 870
CSS Tables without HTML CellPadding and CellSpacing to Remove Space Between Cell Borders
To have a thin line as a border around the cells in your tables, using HTML, you need to use the BORDER, CELLPADDING and CELLSPACING attribu...
CSS - cascading style sheets 2493
CSS Background Image Url Not Working
This CSS code adds a background image. .backimage { background-image:url(/images/imagefile.jpg);} If you followed the instructions for How to Fix ...
CSS - cascading style sheets 1586
Add Avatars for Your Users
An avatar is a picture icon that you place next to your user's name so people can identify a face or image with that person. You could go ahead and c...
Website 1192
Dynamically Resize an Iframe to Fit Content and Prevent Scrollbars
November 5, 2010 - updated code here. http://www.programmer.bz/Articles/tabid/159/asp_net_sql/243/Dynamically-Resize-Iframe-to-Fit-Contents-for-Inter...
Web Browser Html Javascript Jquery 3701
How to Include Multiple Forms on One Asp.Net Page
Asp.net only allows one form with the attribute server="runat" per web page. However, on the client side, you can have as many forms as you want. So...
Asp.net 1771
Sql How to Get the First Occurance of a Value (Email) in a Column
A common Sql problem is getting the first record of each set of records with a duplicate value in a column. For example, suppose you have a set ...
Sql 1026
Variables in Sqlcmd Setvar and :r commands
Author's note: updated the below article and have posted a new article on the same subject on May 3, 2011, for Windows 7, Sql Server Express 2008 R2. ...
Sql 2275
How to Edit Outlook 2003 Email Message HTML Source
In Outlook 2003 you can view the Html source, but you cannot edit the html source. Found a brilliant post with a macro to edit the html source in Out...
Outlook 3322
Asp.net Accessing Page Object from Controls During Initialization
When controls are initialized on an asp.net page, the Page object may not be available. You get an error message that says: Object reference not ...
Asp.net 1072
How to Fix Problems with Internet Explorer that do not happen in other browsers
When Internet Explorer does not work like other browsers it is often because the DOCTYPE was not specified. Add this to the top of your html document ...
Web Browser Html Javascript Jquery 1210
Scrollbars on Iframe in Internet Explorer with Aweber Form
Like Aweber email service a lot. They have a nice form generation feature, but the other day, their forms started showing up with scrollbars. Have fi...
Web Browser Html Javascript Jquery 2732
How to start Powershell from Sql Server Management Studio
Open Sql Server Management Studio (express version works). Click on databases, click on a database, right click on Tables, click Start Powershell. 1...
PowerShell 1615
How to Add Aweber, Constant Contact or Paypal Forms to Asp.net and DotNetNuke Websites
Paypal, Aweber.com and Constant Contact, among others, require you to put a FORM on your website. If you are using Asp.net or DotNetNuke, you cannot ...
1395
How to Create a Favorites Icon and Put on Your Website
What is a Favorites Icon? A favorits icon is the little graphic image that appears next to your domain name in the address bar in a web browser. How...
Web Browser Html Javascript Jquery 1315
Break Out of an Iframe in the Same or New Window for Asp.net and DotNetNuke
All the code you need is below. This code will let you easily add FORMs that go to other websites, like Paypal, Constant Contact or Aweber, to yo...
Web Browser Html Javascript Jquery 3912
Load the Jquery file from Google
You can load the Jquery file from Google. Check Jquery.com for the latest version. Go to Jquery.com and view the source for the page. Look for jquery...
Web Browser Html Javascript Jquery 1035
What the $ (dollar sign) is in Javascript
Apparently the $ has has become a standard shortcut to document.getElementById() Do not code up your own $ function or you wll break Jquery.js and p...
Web Browser Html Javascript Jquery 1241
How to Break Out of an Iframe
How to break out of an iframe from a form or link on your website To break out of an iframe from a link or a form use this attribute on the. target=...
Web Browser Html Javascript Jquery 2585
To Make Good Decisions Find People Who Disagree with You
If you want to make good decisions, you need to be informed. There are a lot of ways to get informed and one of the best is to find people that disag...
Programming Philosophy 1036
HttpContext.Current.Handler for Access to Page Pass as Variable Instead
In your code you often have need of getting the current Page. You can HttpContext to get the current Page, like this. Page page = (Pape)HttpCont...
Asp.net 1765
Asp Net Membership Managing Create Delete Roles and Manage Users
Namespace: System.Web.Security Class: Roles Reference: http://msdn.microsoft.com/en-us/library/system.web.security.roles.aspx The System.Web.Securi...
Membership 6128
Guideline: If you do not have a good reason to do something, do not do it
Guideline: If you do not have a good reason to do something, do not do it. In the course of doing stuff, you have to make a lot of decisions. At time...
Programming Philosophy 1159
Page 1 of 2First   Previous   [1]  2  Next   Last   

Programmer Newsletter

Minimize

Subscribe to the Internet Handholding newsletter



Reccomend Programmer.bz

Minimize

Share/Bookmark Bookmark and Share