We've basically built a rule engine here. Rules are built where you specify criteria that will be applied when the application is run for "approval". What it boils down to is I have about 250-350 unique TSQL statements (they're basic TSQL statements, no subqueries and just 2-3 joins max) that...
I'm trying to limit the permissions granted to the people using the databases through the websites (we have one webuser per web application). Currently that web user is part of the db_owner role, but I don't think that's right. That means any user who's accessing the database through our...
So I've fought and fought and fought some more, and I've finally got my dynamic DataGrids saving to and loading from viewstate properly... or so I thought.
A quick description of the page. It contains a dynamic # of 4 different types of datagrids. Each row in each datagrid will contain a...
As a former .NET windows applications programmer, I'm having a bit of a hard time in my transition to web programming. This stateless thing is killing me. Basically, I want to use anywhere from one to three different DataTables for each web page for this site. All the pages are working just...
I've finally finished all the forms for my project and I'm now tackling the issue of reports. In an effort to keep the cost for the program lower, I believe I am going to try to avoid using Crystal Reports or any other reporting software that isn't free, so I'm designing my own reports using...
Maybe I'm not understanding ComboBox events properly but it seems like these events aren't working as they should be.
I have a System.Windows.Forms.ComboBox placed on a form and its Items list is populated with items. When I open the dropdown box and click on an item, the SelectedIndexChanged...
Five months after quitting my old job to become a self-employed programmer I find myself wondering if I made a mistake. I have not seen a real paycheck in five months. Instead I've been developing the product I'm intending to sell. I'll be the first to admit that when I quit I was not ready...
I have a custom control that is acting like an MS Access subform. When I modify a new record, it is supposed to add a new blank record to the subform, just like MS Access does (in the subform the record has a * indicating it is a new and blank record).
In my project, if I modify a text box and...
I've spent the last five months working on a project full time. I'm currently using VS.NET 2003, and the entire project is in C#.
I'm not going to deny there are benefits to using my IDE. Control placement becomes extremely easy with the GUI, as does hooking events. Basically it's great for...
I've finally finished my Data Access Layer using a custom code generator that also creates the stored procedures the code will use to access the underlying data in my MS SQL Server database and. As tempting as it is to just use the DAL directly, I've read you should use a Business Logic Layer...
I'm implementing a data access layer for the project I'm currently working on. In order to provide basic validation these classes are each keeping track of the schemas for each of their fields (FieldName, Type, Size, Nullable).
I'm considering the use of static schemas so all this information...
You know how as you add components to a form or control the IDE automatically updates the InitializeComponent() method of your code. Is there any way to get the IDE to add static components to a form or control? Maybe it would add a static constructor and create a static method called...
I have a control "template" (I'll call UserControlTemplate) that I inherit as the base type for several other similar controls, like below:
public class UserControl1 : UserControlTemplate
{...}
public class UserControl2 : UserControlTemplate
{...}
My problem is I need to allow access to a...
I have a vertical scrollbar (VScrollBar) that I declare like below:
VScrollBar sb = new VScrollBar();
sb.Minimum = 0;
sb.Maximum = 200;
sb.SmallChange = 1;
sb.Value = 0;
Now, when I use the scroll arrows or move the slider the highest I can ever get the value is always the maximum minus 9...
A row is "added" to the DataTable after I type in some info into a cell and then call EndCurrentEdit on the DataGrid. Spiffy. However, the DataTable.Rows.Count still shows 0. When I trap the RowChanged event (which fires right after calling EndCurrentEdit) I get the following information...
I'm currently developing a commercial application that will be using a datasource (SQL Server in most cases) w/ several tables. My last few attempts have ended up in the recycle bin after I became discouraged and knew I could do better. Now I'm basically starting over (minus the knowledge and...
I have several large controls contained in a Panel control. If one of these controls isn't completely visible (eg. its too long to fit on the panel) when I click on it the control's click event does NOT fire sometimes. Instead the panel will move it's scrollbars so that the control is more...
I'm working on a "line control" that will connect two points. I'm having problems with the region however. The region of the "line control" should really only be the line itself, however no line appears when I do the following (btw, the BackColor of the control is black, so as to see it...
Ok. What makes something qualify for Garbage Collection? I ask because I'm worried the events I'm hooking up might be keeping the objects from being disposed of.
You tell the program you're interested in an event by using the += like so:
this.OnClick += new EventHandler(this_Clicked)...
public void AddItem()
{
this.Add(new ***); // here is where I'm stumped
}
private void Add(MySubItemType inSubItem)
{
this.Controls.Add(inSubItem);
}
There needs to be a type where the *** is but this type will not be known until runtime. Obviously, it will derive from MySubItem. Is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.