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
D

dotman1

@dotman1
About
Posts
20
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • STL List
    D dotman1

    I have created a STL List customer_list with several detail properties. all works fine. However I now need to store a list of string for each customer. I have added a STL List string_list to the customer object which is accessible the problem is the data in the list is not persisted. Is it possible to have a list within a list? what could be the reason for the list not persisting the data? Regards Mark

    ATL / WTL / STL c++ sales help question

  • Scope issue declaring a delegate within a static class
    D dotman1

    ok worked it out :) forgot to pass the delegate to the method.

    dotman1

    C# help question

  • Scope issue declaring a delegate within a static class
    D dotman1

    I have a static class that requires a delegate. A delegate should not be static and cant be fine. However a static class requires the variable and methods be static; There for how do I declare a delegate within the class? e.g. public delegate void currentBalance(int value); public static DoSomething() { do something... balance = 10; currentBalance(balance); } Any Help more than welcome. Thanks

    dotman1

    C# help question

  • DropDownList - MVC3 Razor Application
    D dotman1

    Thanks for the input. Yes I did step through using VS debugger the create method is called and process the steps through to and including the call to db.SaveChanges(); return RedirectToAction("Index"); is not reached and the create method is called processing the second post this time after the call to db.SaveChanges(); return RedirectToAction("Index"); is returned. This is result is random in other instances the process flow is as expected but once again the create method is called twice.

    dotman1

    ASP.NET database html asp-net

  • DropDownList - MVC3 Razor Application
    D dotman1

    Using EF Code First, I have implemented a dropdownlist on a create method everything works fine however duplicate records are posted as the method is called twice. Any idea what I have not implemented correcty. Model(s) public class Country { public int CountryId { get; set; } public string Name { get; set; } } public class State { public int StateId { get; set; } [Required(ErrorMessage = " Name is required")] public string Name { get; set; } [Required(ErrorMessage = " Code is required")] public string Code { get; set; } public virtual Country Country { get; set; } [Required(ErrorMessage = " The Country is required")] public int CountryId { get; set; } } Controller (partial) [HttpPost] public ActionResult Create(State newState) { ViewData["Countries"] = db.Countries.ToList(); try { // TODO: Add insert logic here db.States.Add(newState); db.SaveChanges(); return RedirectToAction("Index"); } catch { return View(newState); } } View (Partial) <div class="editor-label"> @Html.LabelFor(model => model.CountryId) </div> <div class="editor-field"> @Html.DropDownListFor(model => model.CountryId, new SelectList(ViewBag.Countries, "CountryId", "Name")) @Html.ValidationMessageFor(model => model.CountryId) </div> Regards

    dotman1

    ASP.NET database html asp-net

  • Database Unit Testing with Visual Studio 2010
    D dotman1

    I am using Visual Studio 2010 Professional. I have created a new SQL Server 2008 Database Project, locally applied and deployed a simple scheme and stored procedure. Everything looks as it should until I try to create the unit test by right clicking the stored procedure, is this functionality only supported in Premium and Ultimate? thanks.

    dotman1

    Database database testing csharp sql-server visual-studio

  • ASF Files
    D dotman1

    I need to aquire the bitrate(kps) for wmv files without the use of the media player, attempts to Parsing an ASF Stream in C#, C++ and VB have failed, including the examples/articles post on his site. My C++ is not that great but the example provided within the VS documentation will not compile. Any assistance appreciated.

    dotman1

    C# csharp c++ visual-studio json tutorial

  • GridView Custom Paging Issue
    D dotman1

    I have implemented custom paging I find the BottomPagerRow is no longer visible after selecting a row on the last page index only. Any suggestions welcome. Regards

    dotman1

    ASP.NET database help

  • Issue with Grid View
    D dotman1

    Having successfully implemented custom BLL's and DAL's that support select, update, insert, delete and paging for use with the ObjectDataSource Component, I have identified the following issue. Example SQL select returns 87 records, the grid view displays 8 pages * 10 records which is providing paging and select only for use with a details view. When selecting the last page (8) on the grid view AND ONLY when selecting a record within that page, the paging index area of the grid is no longer visible preventing further page navigation as if grid view paging has not been specified. I may have overlooking a specific setting but I am not sure, any assistance welcome. Regards,

    dotman1

    ASP.NET database css help tutorial announcement

  • Creating a User Control thats Supports Lookup Databinding
    D dotman1

    Hi, Thank you for considering my query. MS VS 2005 .NET installed and using the Microsoft online Help example: 'Walkthrough: Creating a User Control that Supports Lookup Databinding' I have encountered a problem with step 6. using the Data Source Window to set a column to use the new control. Steps 4,5,6 are unclear is this a .NET 2003 example ? and if so how do I continue? During this walkthrough, you will learn how to: 1. Create a new Windows Application. 2. Add a new User Control to your project. 3. Visually design the user control. 4. Implement the LookupBindingProperty attribute. 5. Create a dataset with the Data Source Configuration Wizard. 6. Set the CustomerID column on the Orders table in the Data Sources window to use the new control. Step 6 Setting the CustomerID Column of the Orders Table To Use the LookupBox Control Within the Data Sources window you can set the control to be created prior to dragging items onto your form. 1. To set the CustomerID column to bind to the LookupBox control Open Form1 in the designer. 2. Expand the Customers node in the Data Sources window. 3. Expand the Orders node (the one in the Customers node below the Fax column). 4. Click the drop-down arrow on the Orders node and choose Details from the control list. 5. Click the drop-down arrow on the CustomerID column (in the Orders node) and choose Customize. 6. Select the LookupBox from the list of Associated Controls in the Data UI Customization Options dialog box. 7. Click OK. 8. Click the drop-down arrow on the CustomerID column and choose LookupBox. Regards

    dotman1

    C# tutorial design help question csharp

  • Ultra portable notebook [modified]
    D dotman1

    I have a sleek MacBook :-D, excellent performance, fantastic battery life the best notebook I ever purchased. Regards

    dotman1

    The Lounge csharp asp-net com architecture question

  • Dataset format inconsistency.
    D dotman1

    Hi, I am new to .NET and not sure if this will be of use. Have you read the XMLSchema prior to reading the file? // read the XML schema first to make sure we know how to generate the resulting DataTable myDataTable.ReadXmlSchema(myFile + "\\myXMLSchema.xml"); // fill the DataTable with the actual values that exist in the XML file. myDataTable.ReadXml(myFile + "\\myXML.xml"); // bind the resulting DataTable to the DataGridView xmlResultsDataGridView.DataSource = myDataTable; Download the Microsoft Samples (CS101SamplesAll) to reference reading and writing XML data. Regards

    dotman1

    C# help html debugging xml

  • C# Socket issue
    D dotman1

    I am aware of that, but until I can address the issue with the current framework this is a cleaner solution. Can you assist with this issue? Regards

    dotman1

    C# csharp help debugging performance question

  • Setting network adapter to promiscuous mode
    D dotman1

    Is it possible to set a network adapter to promiscuous mode within a C# application? Will this also work with WiFi? Regards

    dotman1

    C# csharp sysadmin question

  • C# Socket issue
    D dotman1

    :-D Thank you, this worked well. Regards

    dotman1

    C# csharp help debugging performance question

  • C# Socket issue
    D dotman1

    I am having difficulty filtering IP Addresses using IPAddress.TryParse() I am trying to get upto speed with .NET programming, running MSVS 2005 .NET on Vista Home Pro. System Config Notebook one ethernet + built-in WiFi. On form load I request Internet Host Info and aquire numerous addresses, and add them to the listbox for selection later. The problem some do not reflect a true IP address are varied lengths some look like partial mac adresses etc, and are invalid for speific reasons hense the need to filter them. Having stepped through debug I am now assuming the reason IPAddress.TryParse() is not filtering them is because the values are valid based on the AddressList[] static members: Any, Broadcast, IPv6Any ... the list continues. Identifying IPv6Loopback as being the problem for the following scenario because IPv6Loopback contains {::1} For simplicity, with no ethernet connection & WiFi disabled; I have 2 items in the listbox: ::1 (I regard as a problem) 127.0.0.1 (Loopback no problem) The code: string strIP = null; IPHostEntry hostEntry = Dns.GetHostEntry(Dns.GetHostName()); if (hostEntry.AddressList.Length > 0) { foreach (IPAddress ip in hostEntry.AddressList) { strIP = ip.ToString(); IPAddress tmpAddress; if (IPAddress.TryParse(strIP, out tmpAddress)) { socketListBox.Items.Add(strIP); } } } If my assumtion is correct how can I filter the items which cause phyical issues. Regards

    dotman1

    C# csharp help debugging performance question

  • Hiw do i Update the dataset records to database
    D dotman1

    Apologies type in first line of code, correction. DataSet changedData = MailDataset.GetChanges();

    dotman1

    C# database help announcement

  • Hiw do i Update the dataset records to database
    D dotman1

    on completion of any change you could try something like the following: DataSet = changedData = MailDataset.GetChanges(); if(changedData != null) { SqlDataAdapter.Update(changedData); } else { MessageBox.Show(" Error ...", "Error"); }

    dotman1

    C# database help announcement

  • Plugin Frmaework in VS 2005 .NET
    D dotman1

    Thanks Joseph, No I had not noticed your article; the article is well documented and clear, the demo code what can I say this is exactly what I was trying to achieve, its good to see someone else also appreciate class diagrams. I will revisit my prototype as I did manage to get a prototype working with the support of an article “Plugins in C# by Redth”, obviously there is nothing wrong with this approach yours lends itself to my personal style and approach. Greatly appreciated.

    dotman1

    C# csharp visual-studio database docker help

  • Plugin Frmaework in VS 2005 .NET
    D dotman1

    Hi, I am a new to Visual Studio.NET but not to development and require assistance; after downloading Plug-in samples from codeproject and the Microsoft sample, and finding issues with deprecation etc using Visual Studio 2005 .NET. The MS sample performs some form of conversion and I suspect this is in relation to the PluginCollection class, which now causes an issue with ConfigurationSettings being replaced with ConfigurationManager, and naturally the following type cast is no longer supported: m_plugins = (PluginCollection)ConfigurationSettings.GetConfig("plugins"); I am attempting to develop a plug-in host capable of displaying usercontrols plugins on a panel in the same manner as the codeproject sample (ExtensibleUI_demo) but using the Microsoft framework by adding the IPlugin Interfaces to the welcome class. E.g.: public partial class Welcome : UserControl, IPlugin I have managed to develop an application based on the ExtensibleUI_demo to work, but the plug-in name details are not added to the listbox, and I am not sure how much of this framework is no longer applicable or appropriate best practice. Can anyone assist? it is my intention to use plug-ins to replace database forms, displaying them on a parent container such as a panel. Regards

    dotman1

    C# csharp visual-studio database docker 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