Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

ChrisDM

@ChrisDM
About
Posts
13
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Nigerian cosmonaut kidnapped by Russians
    C ChrisDM

    Wow what a great opportunity :laugh:. I must send them my account details immediately so that I can get the money. What with all the other others I have had in the last two month I will be very very rich. :eek: Chris

    The Lounge c++ html com help

  • SpaceShipOne made it!
    C ChrisDM

    To make the attempt they have to use a different launch location, New Mexico I believe was selected as the site. Then they have to do 2 launches with the people or weight of three. Chris

    The Lounge python com question announcement

  • dates in C#
    C ChrisDM

    There are two ways to achieve this... You can use Convert.ToDateTime(37634) or DateTime.FromOADate(37634). Chris

    C# question csharp tutorial

  • Cargo ships give International Space Station a push...
    C ChrisDM

    In Nasa's original plans for the station they did have a propulsion module which would achieve this function and would be attached to the station, I am not sure what was designed into the plan for refueling however. Since all the changes to the design of the station I think this module has been dropped and they are relying on the Space Shuttle and Proton Module to achieve this. This other issue with continually using Jets of the station is that whenever they do the reboost they have to lock the Solar Panel to stop any damage happening to them. Chris

    The Lounge c++ html database com question

  • Drop Down Control
    C ChrisDM

    Thanks for the information, I am looking at this at the moment. Chris

    ASP.NET csharp algorithms

  • Drop Down Control
    C ChrisDM

    I need to create a control similiar to a combobox, however the dropdown will be a treeview. I would like to create a Web Custom Control in C# to achieve this. I need some pointers to get this working as I cannot find any documentation (most likely because I am not searching for the right things). Cheers Chris

    ASP.NET csharp algorithms

  • Database Connection Question
    C ChrisDM

    I am attempting to create an ASP.NET application which constantly accesses a database, from all the examples I have seen in the MSDN documentation it says that the connections should be opened and closed for each transactions. However I would like to lock the records that are shown on the screen so that they cannot be edited by another instance. I cannot find any examples of how to: - 1) Keep the connection open the whole time. 2) Pass the DAL object between ASP.NET pages so that I can have multiple pages containing the data. Chris

    ASP.NET csharp asp-net database tutorial question

  • Keeping Database Connection Open
    C ChrisDM

    I am attempting to create an ASP.NET application which constantly accesses a database, from all the examples I have seen in the MSDN documentation it says that the connections should be opened and closed for each transactions. However I would like to lock the records that are shown on the screen so that they cannot be edited by another instance. I cannot find any examples of how to: - 1) Keep the connection open the whole time. 2) Pass the DAL object between ASP.NET pages so that I can have multiple pages containing the data. Chris

    Database csharp asp-net database tutorial

  • DirectX 9
    C ChrisDM

    The final version is available from a link on the following page http://msdn.microsoft.com/directx I installed it this evening and have started playing around with the new C# wizard. Note: If you have VS.Net 2003 Beta then you need to manually install the Wizards otherwise they will not be available. You also need to edit the vsz files which are standard text and add .7.1 to the VsWizard.VsWizardEngine otherwise the wizards will not run. Chris

    The Lounge php graphics game-dev beta-testing question

  • DirectX 9.0 >>PUBLIC<< SDK
    C ChrisDM

    It has been released today... http://msdn.microsoft.com/directx... Note it you are using VS.Net 2003 Beta then you will need to edit manually install the AppWizards and also edit the vsz files and add .7.1 to VsWizard.VsWizardEngine before the Wizards will work correctly. Chris

    C / C++ / MFC graphics game-dev question

  • Using ArrayList in Web Design
    C ChrisDM

    Paul, Thank you for the information, I will change the code to reflect this information and see what happens. At present I am playing around but once I get it working well I will indeed create an article for it. Regards Chris

    ASP.NET csharp database design help

  • Web User Controls Dont Show Up!??
    C ChrisDM

    jon, I had the same problem, I believe that you will need to run the repair function for the .Net Framework. If you go to Control Panel->Add Remove Programs and click on the help option for the .Net Framework it will tell you how to run the repair. Alternatively installing the 1.1 Beta appear to fix the problem also. Chris

    ASP.NET help csharp visual-studio winforms windows-admin

  • Using ArrayList in Web Design
    C ChrisDM

    I have modified the Web Site which is created when following the "Walkthrough: Creating a Web Application Using Visual C# or Visual Basic", using Visual C#. I have added a new class called MyBasket which has the following structure using System; using System.Collections; namespace MyWebForm { /// /// /// public class MyBasket : IEnumerable { public MyBasket() { } public IEnumerator GetEnumerator() { return items.GetEnumerator(); } public bool AddItem(string titleId, string title, double price) { // Create Item MyItem myItem = new MyItem(); myItem.TitleId = titleId; myItem.Title = title; myItem.Price = price; // Add Item items.Add(myItem); return true; } public int ItemCount { get { return items.Count; } } public double TotalPrice { get { double total = 0; foreach (MyItem item in items) { total += item.Price; } return total; } } private ArrayList items = new ArrayList(); } } I have declared this as follows within the WebForm1.asp.cs within the class definition protected MyBasket myBasket = new MyBasket(); I have created a button on the form which adds the current selected item when clicked. The problem I am experiencing is that the MyBasket class does not keep the information, therefore whenever I click the Add button there is only every one item in the ArrayList. I don't understand why this is not working and would value some advice. The following code is used to add the items and refresh the screen private void buttonAdd_Click(object sender, System.EventArgs e) { // Add Selected Item to basket int index = DataGrid1.SelectedIndex; // myBasket.AddItem(Label1.Text, Label2.Text, Convert.ToDouble(Label8.Text)); // Refresh Basket refreshBasket(); } public void refreshBasket() { // try { Label7.Text = myBasket.ItemCount.ToString(); Label9.Text = string.Format("{0:C}", myBasket.TotalPrice); } catch { Label7.Text = ""; Label9.Text = ""; } } Chris

    ASP.NET csharp database design help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups