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

Software Development Network >> .NET Development

.NET Development

New Question

Help Creating a Wrapper
error CS0016, Directory doesn't exists
ClickOnce not FIPS compliant?
XML for ASP.net
Need Help On HttpWebRequest
Problem when accessing/enumerating MSMQ with .NET v1.1
database to b converted.
Issue with Socket Buffer
Intro to XPathmania - Extending Visual Studio 2005 to Support XPath Development
File uploading problem with WebClient Class

Top Answerers

Snarf99
Andrew Todd
Joseph Wee
BLueDeViL
gafferuk
keshavbs
Rhubarb
english_d
Peacho
Chimme
ComputerZen.com
Only Title

Answer Questions

  • DanBog How to know what exceptions a method can throw?

    I was reading in some other posts that you only have to catch known exceptions. And that it is not allowed to catch Exception like this: private void CheckCancelEntryWeighingRecords() { try { mis.Transfer(data.CsvData); //Call to a third party dll } catch (Exception ex) { LogError("Error occured in CheckCancelEntryWeighingRecords", ex); } } How can I know what exceptions a method can throw So that i can decide on which situation i can recover and on which not I know that the Framework.NET has documented the most exceptions. But what about third party dll's with bad of no documentation I also know i could use reflector to look what the possible exceptions a ...Show All

  • DavidLant obtain the same value

    Hello, i'm a freshman on C#...,seems that's a simple question but i can't do it..., please give me some clue on it... i've a text file as below, every string line ends with CR & LF A A B B C ..... how can i retrieve the lines which has the duplicated ones, as the text file, there're two lines of A & two lines of B... etc. please forgive me if it's really very easy... thanks Richard Hello OmegaMan, thanks for your guidance, my code is almost done. thanks again Richard You will have to revamp the code but the trick is to change the hash. Instead of holding an int as the value..it will hold a list of stri ...Show All

  • SERware CodeDomProvider.Parse

    I am developing a simple form designer application using C# .NET 2005. I am trying to persist the application from the designer host to SQL server, and later reload it into the designer for further editing after reading it back from the database. Once the application design has been completed, I would like to be able to generate the CodeCompileUnit, generate C# code, compile, and run. (This part is working well). The problem is trying to get the application back onto the designer surface. My plan was to store my application as C# in a varchar(max) field in SQL Server. Then read the text back into a TextReader and recreate the CCU using CodeDomProvider.Parse(). Unfortunately this method is not implemented. Is there a way to get around th ...Show All

  • SD Diver .NET equivalent of std::set

    Basically, I would like a generic class which stores only key values, is sorted on the key, requires keys to be unique, and is better than O(N) when adding elements to the set. I would have thought this would be the SortedList class, but it takes a key,value pair, like the SortedDictionary. I could use one of these classes I suppose, but it seems like this requirement would be common enough that such a class would exist as part of the standard library. Any suggestions hmm how is the Dictionary different than the SortedDictionary And is there a class like this with just a Key parameter, rather than Key, Value That would be a bit more convenient, since I only have need of one value. Anyway, I tried both ...Show All

  • Brennon what effect would it take when dataTransfer.effectAllowed set to 'link'

    i dont know if it's a appropriate place to put this thread, cause i cant find a place for 'javascript'   my question is what is the effect it would take when dataTransfer.effectAllowed = "link" i try "move" and "copy", and the effect is just like the word mean, when i tried "link", i see it works like "copy". could anyone give me a explain about this thx! ...Show All

  • Cute_Celina Update Query not updating or issuing exceptions

    Hey guys I have this Access Query I am trying to run in C# windows app the Query from access UPDATE tblStaff SET tblStaff.Record_Password = [ NP], tblStaff.LastUpdatedBy = [ LB] WHERE (((tblStaff.CorpID)=[ CD]) AND ((tblStaff.Record_Password)=[ CP])); C# code OleDbConnection objConn = new OleDbConnection(); objConn = Config.ConnBuilder(); OleDbCommand oCmd = new OleDbCommand(Query,objConn); oCmd.Connection = objConn; oCmd.CommandType =CommandType.StoredProcedure; oCmd.CommandText = "PwChange"; oCmd.Parameters.Add(" NP" , OleDbType.VarChar).Value = newPass; oCmd.Parameters.Add(" LP" , OleDbType.VarChar).Value = updatedBy; oCmd.Parameters.Add(" CD" , OleDbType.VarChar).Value = corpId; oCmd.Parameters.Add(" CP" , OleDbTy ...Show All

  • Magannahan Skjellifetti Performance of Type.InvokeMember vs MethodInfo.Invoke

    At first glance I'd say MethodInfo.Invoke() would obviously be faster than Type.InvokeMember(). I just wrote a little program to verify that assumption: Type myObject = ... int numTries = 1000; MethodInfo method = myObject.GetMethod( "StaticMethod" , BindingFlags .Static | BindingFlags .Public); DateTime startInvokeMethod = DateTime .Now; for ( int i = 0; i < numTries; ++i) method.Invoke( null , null ); DateTime endInvokeMethod = DateTime .Now; txtOutput.Text += "\r\nTime taken to invoke " + numTries + " times on method: " + (endInvokeMethod - startInvokeMethod).ToString() + " secs\r\n" ; DateTime startInvokeOnType = DateTime .Now; ...Show All

  • RMan54 how to check if ExecuteScalar returns null (datetime) value?

    Here's what I want to do ( please pardon the formatting ) public static DateTime CustomerLastCallbackDate(string custID) { if (custID != null) { string sql = "SELECT LastCallbackDate" + " FROM Customer" + " Where CustID = @CustID" ; SqlCommand cmd = new SqlCommand(sql, dbSession.CN); cmd.Parameters.Add("@CustID", SqlDbType.VarChar).Value = custID; dbSession.CN.Open(); object result = cmd.ExecuteScalar(); dbSession.CN.Close(); if (result == null ) { return DateTime.MinValue; } else { return (DateTime)result; } }} My problem is that if the value from the database is null, the check for "result == null" doesn't work right ( I don't know why ) and processing goes to the retu ...Show All

  • mitchwardrop .Net Remoting samples

    I'm looking for any .Net remoting sample using Visual Basic .Net. Could you please so kindly to provide me any link or something like that Lots of links are related with C#. Thanks in advance, http://www.codeproject.com/vb/net/Remoting_HelloWorld.asp ...Show All

  • Proxima Assmebly Resolve

    I have lately started running into a very random issue for which I cannot find enough online help (from blogs, etc.). This issue is quite unpredictable, and I have encountered it only on Windows Server 2003 (more notably, IIS 6.0). Here is my current environment setup: 1) I have a host application with a default implementation - all it does is catches the OnArrival() event of the SMTP sink and captures the email attachment which is then parsed and passed on to an interface method. 2) Other developers can inherit this method and do whatever with the attachment - at run-time, the host application loads the specific library that implemented the interface method using the AssemblyResolve event. This must be done because the CDO COM object is i ...Show All

  • Darren Woodford Error: Too many parameters were provided in this RPC request. The maximum is 2100.

    I am trying to call a web service (part of an ASP.Net website that I am designing); and I get the following error: Server was unable to process request. ---> The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100. Does anyone knows how to solve this issue Is-it possible to raise the limit above 2100 (note: I have also posted this question in the ASP.Net forum ) Thanks in advance, Joannes ...Show All

  • Ritesh Singh opening web folder in icon view

    im habitually speak french, but i gonna try in english :) i would like to open web folder without use the open command of file menu in internet explorer, i can do this in html page like this; < A HREF = "http://[ipadress]/[ foldername ]/" FOLDER = http://[ipadress]/[foldername] TARGET = "_top"> < img src ="image/folder.gif" id ="id" /> </ A > and this is work very find my problem is i wanna do this programmatically in csharp(dotnet), i would like to change foldername according to user logged in, how can i do this ok i understand, so thank again to try helping me, r u working for microsoft ...Show All

  • adibza Update Command and the use of IsDBNull!! ???

    Hi all. I have a number of records in an access db and would like to update various rows by using one sql statement.  I would like to replace an empty field with a set value but do not know the correct wording, or functions.  For example: sql = "Update SourceTable set EmptyFieldName = '" & strNewValue & "' Where IsDBNull(EmptyFieldName)" As a work around I have had to do this: Dim Adap As New OleDbDataAdapter("Select * from SourceTable Order By EmptyFieldName", Cn) Dim Dataset1 As New DataSet() Dim DView As New DataView() Adap.Fill(Dataset1) DView.Table = Dataset1.Tables(0) If Dataset1.Tables(0).Rows.Count > 0 Then Dim RowView As DataRowView Dim I As ...Show All

  • keroed1 AccessViolation error when use DsBrowseContainer in Vista

    Hi guys, I went through and played with the Example given in .net 2.0 SDK It is working perfectly fine in 32 bit OS that is XP... and i am getting the same error AccessViolation in Vista...Please help me how to solve it...My Vista is aslo 32 bit.. Path of Sample on My machine... C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\LateBreaking\PlatformInvoke\WinAPIs\ActiveDir Code: //----------------------------------------------------------------------- // This file is part of the Microsoft .NET Framework SDK Code Samples. // // Copyright (C) Microsoft Corporation. All rights reserved. // //This source code is intended only as a supplement to Microsoft //Development Tools and/or on-line documentation. See these other //materials for d ...Show All

  • Friedrich B Two Quick Sockets Question

    I am writing data acquisition software that implements the MODBUS/TCP protocol to acquire data from various instruments. I implemented a class CInstrument which contains a socket member to connect to the instrument. Some of my (yet to be acquired) instruments implement the MODBUS protocol over serial port only. This is fine, because I can get aftermarket converters that will translate the MODBUS/Serial to MODBUS/TCP transparently. However, I have two questions arising from the use of the sockets with this type of system. 1. Since serial data transmission is baud-dependent, I am concerned that after a Socket.Send() call, the Socket.Receive() call will read from the buffer before the data response buffer has completely arrived. I have ...Show All

464748495051525354555657585960616263

©2008 Software Development Network

powered by phorum