Category: C# Blogs

Multiple Child Grids on the same level using MVC 2 and jqGrid (jQuery)

In many scenarios you will need to display more than a single child table at the same level. I.e. display multiple child tables at the same level. To accomplish this within an MVC 2 application using jqGrid you need to include the following: [sourcecode language=”html” padlinenumbers=”true” autolinks=”false” gutter=”false” toolbar=”false”] <link rel="stylesheet" type="text/css" media="screen" href="../../Content/jqgrid/jquery-ui-1.8.4.custom.css" /> […]

Read More →

How to create a Feedback Web User Control form in C# (Part 2)

If you have not read Part 1, read it here. [sourcecode language=”csharp” gutter=”false” toolbar=”false” autolinks=”false”] <%@ Control Language="C#" CodeFile="LeaveFeedBack.ascx.cs" Inherits="include_LeaveFeedBack" %> <asp:Table HorizontalAlign="Center" ID="BlogFeedbackTable" runat="server"> <asp:TableRow><asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow> <asp:TableRow><asp:TableCell BackColor="#2BA94F" HorizontalAlign="Center" ForeColor="White" ColumnSpan="2">Feedback / Question></asp:TableCell></asp:TableRow> <asp:TableRow><asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow> <asp:TableHeaderRow> <asp:TableHeaderCell HorizontalAlign="Left">Your Name:</asp:TableHeaderCell> <asp:TableHeaderCell HorizontalAlign="Left">Your Email:</asp:TableHeaderCell> </asp:TableHeaderRow> <asp:TableRow> <asp:TableCell HorizontalAlign="Left"><asp:TextBox ID="TextBoxName" Width="245" MaxLength="20" runat="server" /></asp:TableCell> <asp:TableCell HorizontalAlign="Left"><asp:TextBox ID="TextBoxEmail" Width="245" MaxLength="50" […]

Read More →

Hacked

Benjamin Perkins C#

This happened to me way back in 2011.  I am migrating all my blogs and articles to this site and am adding it here.  This shouldn’t happen anymore if you use an ORM like Entity Frame Work or NHibernate.  A few weeks ago I had to fend off a hacker. Some of the database statements […]

Read More →