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 →Category: C# Blogs
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> </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> </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 →How to make your code faster when you use IF THEN

I read this very cool article and I had to test it out for myself. I can say that for sure that if the pattern of your IF THEN statements are predictable, that you code will run faster. This is due to a concept called Branch Prediction that is located on the CPU. Basically, the […]
Read More →Connect to an Oracle database without an Oracle Client

Reducing the number of tasks during deployment of a new system or version update does, at least, 2 things. Fewer number of tasks means it takes less time Fewer number of tasks means less items to troubleshoot if something doesn’t work Removing the installation and configuration of an Oracle Client can now be avoided from […]
Read More →How to create a Feedback Web User Control form in C# (Part 1)

While creating this technical blog website, I decided to implement the functionality that allows readers to give feedback. This is a common function. What is not common is finding examples of how to create a feedback form. As well, a feedback form that can be resued inside of each blog using a web control. So […]
Read More →Progress Bar, Multithread in WPF using C#

I created a video a while ago that discussed how to implement a progress bar in a windows form application. It used the System.Thread class library and the the BackgroundWorker class. With the release of .NET 4, there is a new. easier way to implement this. In this example, I have added the progress bar […]
Read More →LINQ to NHibernate, JQuery/jqGrid SubGrid, HQL and ICriteria

My video on this topic can be found here. We will do 4 things in the article. Add a subGrid to a JQuery/jqGrid Grid. Populate the Grid using ICriteria Populate the subGrid using IQuery (HQL) Change the ICriteria and HQL to use LINQ to NHibernate First, let’s open the Views/Home/Index.aspx file and add the /jqGrid […]
Read More →Hacked

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 →How to add assembly references to an Azure Function App

I wanted to do this and I found these articles helpful: #AzureFunction #Azure #Csharp Azure Functions C# developer reference –> see Referencing External Assemblies How to make a simple DLL as an assembly reference just for fun Could not load file or assembly … The system cannot find the file specified SOLVED It did take […]
Read More →Using the as keyword versus boxing in C#

When I convert one object to another using the keyword “as” and the original value is not of that type, the converted value simply becomes NULL. For example, if theItem is of type MessageBox, then row will be NULL. DataRowView row = theItem as DataRowView; However, when using this code, I.e. boxing. DataRowView row = […]
Read More →