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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
X

xoph

@xoph
About
Posts
9
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sending Log Files from Client to Server
    X xoph

    .XML Webservice seems to be the best solution for your business. You can build a web service that takes a dataset as argument. This web service would process this dataset and store it in your database. On the client side, you would build a windows app that reads EventViewer lists and Backup logs or whatever you require. The windows app would gather all this data in a dataset and call the web service passing in the dataset.

    .NET (Core and Framework) sysadmin help csharp database xml

  • Posting Forms
    X xoph

    I don't think it is actually possible to post a web form to a web server using a WebForm. WebForms derive from System.Web.UI.Page and are meant to be sent to a web browser and not a web server. This is the job of a browser that you would like to do programatically as I understand? If yes, you can use System.Net.WebRequest to create a web request, and specify post as the method to accomplish this.

    C# question

  • DataSet Relations
    X xoph

    Try one of the Merge overloaded methods, something like targetDataSet.Merge(sourceDataSet) when you need the data from one dataset to be copied into one another. Chris

    C# help tutorial

  • DataSet Relations
    X xoph

    I suggest you create a typed dataset with both your tables in it. When you create a typed dataset, the typed dataset class will automatically include a method to find rows by the primary key. (Make sure the primary key is defined in all your tables in your dataset!) For example, if your table is called "Product" and has "ProductID" as primary key, the typed dataset will provide a method called FindByProductID(int value). You can iterate throuh the rows collection of your second table, get the productid of the current row and then go to the first table and retrieve the related record by calling FindByProductID. That is 1 way of doing it without data relations. Of course you could also create a data relation in your dataset, and use getchilds or getparent methods in the dataset to navigate along foreign keys. :-OChris

    C# help tutorial

  • Macro to update data from excel file
    X xoph

    The easiest way to transfer data accross is to create a DTS package: start SQL Enterprise Manager, go to the Data Transformation Services node, right click on "Local Packages" and select "New package". By drag and drop, you can create 2 connections objects, 1 Excel object and 1 SQL Server object (you can create other types of connections as well, including ODBC, csv file, Oracle, Sybase, etc...) Then drag and drop a "Transform Data Task" object, set its source to Excel and its target to SQLServer. Right-click on the "Transform Data Task" object and select properties. You can configure how you want the data to be mapped, it even creates a table in SQL Server if you want. It is quite easy to use, virtually no code to write. Save your package, execute it and you're done. If you want to re-use this package it is quite handy. You can add all sorts of other tasks/macro that run before or after the data pump. You can also specify the order in which each step should be executed. :rolleyes:Chris

    Database question database announcement

  • MCSD
    X xoph

    There are some big heavy Microsoft Press books that are recommended for each modules. Some of them do exactly what it says on the cover, it prepares you for the exam but nothing more and can be thrown in the bin once you have passed the exam. For example "Building Web Applications with ASP.NET and C#" is one of them. The series XYZ Step by Step (like ASP.NET Step by Step) gives you more for your money and at least you have a good reference book that can be useful even after the exam. Chris

    .NET (Core and Framework) question career learning

  • Posting Forms
    X xoph

    What do you mean by "post it somewhere" ? You can create a form, set all its properties, add controls and so on, but not show it at once (by calling the Show or ShowDialog method) and keep it in memory until you need to display it or do whatever. Chris

    C# question

  • App configuration file (App.config)
    X xoph

    Thanks for suggesting creating a new AppDomain. I found out that I don't need to create a new AppDomain, I can just set the application file of the current AppDomain with the following: AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", @"C:\aaa\test.config"); :-DChris

    C# question workspace

  • App configuration file (App.config)
    X xoph

    :cool:I started investigating about application configuration files. It seems that window based application can only have one config file that must reside in the application folder. This file must be named as follows: myapp.exe.config Does anybody know if it is possible to avoid the double extension .exe.config and have only .config ? (I would like to avoid double extensions files, because it may be seen as a virus) I tried to replace myapp.exe.config by myapp.config but it did not work. Any suggestions? Thanks Chris

    C# question workspace
  • Login

  • Don't have an account? Register

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