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
ChrisDM
Posts
-
Nigerian cosmonaut kidnapped by Russians -
SpaceShipOne made it!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
-
dates in C#There are two ways to achieve this... You can use Convert.ToDateTime(37634) or DateTime.FromOADate(37634). Chris
-
Cargo ships give International Space Station a push...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
-
Drop Down ControlThanks for the information, I am looking at this at the moment. Chris
-
Drop Down ControlI 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
-
Database Connection QuestionI 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
-
Keeping Database Connection OpenI 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
-
DirectX 9The 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
-
DirectX 9.0 >>PUBLIC<< SDKIt 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
-
Using ArrayList in Web DesignPaul, 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
-
Web User Controls Dont Show Up!??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
-
Using ArrayList in Web DesignI 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 definitionprotected 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 screenprivate 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