Software Development Network Logo
  • Visual C++
  • SQL Server
  • Audio and Video
  • Smart Devicet
  • IE Development
  • SharePoint Products
  • Visual Basic
  • Windows Vista
  • Visual Studio
  • Visual C#
  • Visual FoxPro
  • VS Team System
  • Game Technologies
  • Microsoft ISV
  • Windows Forms

Software Development Network >> .NET Development

.NET Development

New Question

How about a form topic "Getting Started"?
String.Remove(int32) convenience
SqlDataReader Update???
Unzip File using .net 2.0 class libraries [no third party component like sharplib]
Parsing HTML
How to save dataset data to other unbinded data table ?
udp component ?
New customer acquisition count
IIs host in net Remoting.
Asynchronous Receive Method and Threads

Top Answerers

Dietz
corblet
John12312
Saiboro
Bill Henning
kettch
ReiXou
Srinivasa Chary
hchavali
Shadoware Technologies
IBM DeveloperWorks:
Only Title

Answer Questions

  • e.henriquez Concurrency Violation

    Whenever I update or delete records using sqldataadapter update method I get an error message saying: concurrency violation:the update command affected 0 of the expected 1 records. I am using master-detail records and this error only occurs when I delete or update records of the child table through datagridview control. There is no problem while updating records of the parent table. Please help. You can't update a joined table directly. You can try updating using the join in a subquery to find the record you want to update. Declare @Fname varchar(50) SET @FName = 'Adamus' Update Employees Set Fname = @Fname WHERE LName = (Select LName from Operations o JOIN Employees e on o.employeeid = e.employeeid WHERE ...Show All

  • Stampede2 socket programming

    I have googled for quite some time regarding socket programming articles still i have lot of queries like 1)what is the need for writing such difficult socket programming code, instead we have much easier and advanced technologies like Webservices 3)Where actually sockets are used, i mean in which applications 2)can any one suggest me real time applications involving socket programming which i can download 3)where can i find socket programming information on MSDN Where Can I find sample (but real time) applications in .Net involving sockets When I searched, i only found articles involving clientSocket and serverSocket programs pls suggest ...Show All

  • spattewar msWebBrowser..again and again and again: memory problem

    Hi all. I read a lot about this topic and i found that there are many people like me having problems with the memory usage of the ms WebBrowser component. First i was using the AxWebBrowser component and had problems with the memory usage. With every new page-load the memory usage increased by some megabytes. As a result, it is almost IMPOSSIBLE to build a automated browser for complex operations (cause after 10 minutes, the programm uses 250 MB Ram...). When i noticed that ms has added a webbrowser-control to their base Windows-Forms NET classes in visual 2005, i thought this wrapper class would handle this problem, but as it seems, nothing has changed. I read a lot in the web and this is a very well-known problem. Some guy said calling t ...Show All

  • mkb2006 asp.net 2 assign queryresultset to array

    I have a query that returns all values from one field for the req_id specified I need to put the result into an array so that I can then assign individual values to textboxes. There will never be more than 8 values. Tried using dbreader but that would only take one value from field. you can read a specific column on the current row in a while loop on a dataReader. Just read it and add to the array the values you want. If you like, but could may well be overkill if you are reading 8 values only, is to fill a dataset/datatable with data and access it via the Row/Column array collection. you could also use the GetValues() method of the dataReader to return you the entire row in an array. going with th ...Show All

  • a n d r e w Getting protected controls using reflection

    Hi, I am inspecting an assembly that has a form, and this form has some controls that are inherited from a BaseForm class. Using GetFields I get to know its controls. However, the inherited controls do not show. I have set BindingFlags as follows: BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic; Am I missing something, any ideas Thanks in advance. Controls are declared private by default on a form so you can't find them with reflection. Use the Controls property of the form to find all the present controls. Made a little mistake. Private members are returned by using BindingFlags.FlattenHierarchy. just the static private members are not returned. Yep I noticed :-/. Thanks ...Show All

  • averge joe IPC Remoting Server and async events

    I have windows service that hosts a .NET Remoting IPC server. This server has several events that clients (a trayapp monitoring application) can subscribe to. I am using begin/endinvoke with a callback to execute these events so my service doesn't have to block while the clients are executing. The problem I am having is when my client application terminates improperly (crash etc), the event stays registered in the remoting server. When this event gets firied it will continue to call BeginInvoke on the delegate even though the client is no longer connected. It throws no exception and gives no indication that the client is down. How can I fix this aside from kicking up a thread of my own and calling the syncronous invoke and catch the excep ...Show All

  • Smitha R SOA Service and Deployment

    Hi, We have developed a Service using SOA. We plan to host it as Web Service to be cosumed by clients.However we want our internal .NET clients to use .NET Remoting (by hosting in the same web server as web service) to access the service and some other internal .NET clients to run the service as "InProcess" (by copying the Service binaries to the client folder). Will this model work Are we violating the concept of SOA Thanks, Suresh. Suresh, you model will work fine.... actually you are creating different "Service Interfaces" for your code..... you have a "web service interface", ".net remoting service interface" and "in-process". I rec ...Show All

  • Manoj Kumar Goud Binary Serialization of CollectionBase

    I have just hit a brick wall whilst building custom binary serialization for my object graph. The issue I am having relates to the Deserialization of a collection. The "Designs" collection inherits from CollectionBase. The items stored in the Collection of the type "Design" The class "Design" Inhertis "PhysicalJobEntity" which Inherits "JobEntity" I inherit the class "Design" to create any type of object whether it be a truck, house or can of drink. So to paint a clear picture I will use an example. I create three classes "Truck", "House" and "Drink". All of these inherit from design. I run the app and create 1 instance of each of these cl ...Show All

  • jwize byte array tcp

    i have a byte array frorm a tcp socket how would i covert it to a int array Cisco public static int[] ConvertByteArrayToInt(Byte[] buf) { int len = buf.Length; int[] retval = new int[len]; for (int ix = 0; ix < len; ++ix) retval[ix] = buf[ix]; return retval; } ...Show All

  • raghu_grdr List<> with unknown type

    I have something like this: public List<MyClass> GetItems { get{ return (List<MyClass>)GetList(); } } public List<MyBaseClass> GetList() { List<MyBaseClass> lst = new List<MyBaseClass>(); Type typeOfProperty = EvaluateType(); // List<typeOfProperty> -- does not work //... AddItems // return (typeOfProperty)lst; -- does not work return lst; } How can I create a List with the unkown type List<typeOfProperty> is not possible Or how can I cast the list from <MyBaseClass> to List<MyClass> Because return (typeOfProperty)lst; also doesn't work. I'm not sure how the GetValue() method knows who calls it (for example how does it know ...Show All

  • Amjath Retrieving data from Excell 2003 - Could not find installable ISAM.

    I am trying to access some data in a Excel 2003 file and import it to a dataset using a oledb provider.Here is the code : string cnxString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\TEST.xls;" + "Extended Properties=Excel 8.0;"; this.excelConnection.ConnectionString = cnxString; this.excelConnection.Open();I keep getting this error :A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dllSystem.Data.OleDb.OleDbException: Could not find installable ISAM.I have search everywhere there is a space between data and source. I have read the KB articles but nothing seems to be doing it. Any help would be greatly appreciated.Thanks. ...Show All

  • setareh Async issues with Web Service Proxy Object

    Hi, I'm having issues with a Web Service Proxy in VS 2005. I have a java web service that I am using with a C# .NET client. Synchronously everything works fine, but Asynchronously I'm having problems. Intermittently I am getting the following error message in the asynchronous event handler for the call: "Unable to write data to the transport connection: An established connection was aborted by the software in your host machine" The fact that it is intermittent is what is confusing me. To be more precise I'm calling 3 asynchronous methods at once, 2 of which are the same web service operation but with different parameters, like so: ///////////////////////////// In Constructor wsObject.getPointCompleted += new getPointCompletedEve ...Show All

  • Misbah Ahmad how to unzip a file in .net 2.0 with C# as a language

    I have a zip file.I want's to unzip it how can i do this in .net 2.0 as we know there is a class i think gzip from which i can unzip a file. Please can anybody help No #ziplib doesn't fit in my licensing model. I have downloaded the " compression application sample" and run that sample but it is a full application and there is some sort of .xip file extension which they are uncompressing.I can't well understood how can i get benefit from this application. I need a simple sample which will unzip a .zip file and save that file to some location [my .zip file contains only one xml file with the same name as the zip file] I have to do it in pure .net without using any third part dll. Previously in .net 1.1 I were using #ziplib for u ...Show All

  • imdqa CLR error in winforms application

    I have an application VB.NET that was first developed under framework 1.0, VS.NET with reference to office xp. later applicaton got upgraded to framework 1.1 and office 2003 in VS.NET 2003. Now the application only works on clientmachines that has been upgraded from office xp to office 2003. If i remove office2003, install officexp and then upgrade to office 2003 the application works fine. Where should i start to look The applications dll have dependencies to mscrorlib.dll version 1.0.5000.0 . in the Deployment project. But the client computer only contains Framework 1.1 and this version of mscorlib is not included in framework 1.1, (i think it is in Compactframework) Could this cause the problem Thankful for any idea or guidance. ...Show All

  • Paul Stovell How to assign Config file - created AppDomain

    I have a C# class library. I am invoking this from installshield. To assign the app.config to this dll I am creating an app domain as shown below but it doesn't work. Instead of calling this from installshield [using CoCreateObjectDotNet()] if I call it from a VB application it works fine. The goal is to let the library know its config file.. Thanks for all the help in advance. AppDomainSetup setup = new AppDomainSetup (); //work out what the config file name and app base are //FileInfo fileInfo = new FileInfo ( Assembly .GetExecutingAssembly().Location); FileInfo fileInfo = new FileInfo ( Assembly .GetCallingAssembly().Location); string appBase = fileInfo.DirectoryName; string configFile = fileInfo.Name + &qu ...Show All

123456789101112131415161718

©2008 Software Development Network

powered by phorum