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

Software Development Network >> .NET Development

.NET Development

New Question

ICorDebug and "Debugger Users"
Save data as xml file
Embedding DLL in Web Page and trying to Access Client machine from web Page
DataColumn.Expression Property
DataTable - Null Object Reference Error
Using a string to supply a list in a "where something in (123, 456, 789)" style query
How to get number of rows?
Multithreading protection for DataViews - Any help?
Design Issue: Multiple definitions of db in separate prjcts. Aggregating prjcts in 1 sln. Help eliminating redundancy
Calculated fields?

Top Answerers

Saitham8
GoodCoder
vbtheo
geliser131
arifyemen
calmal20
Dietz
ash141vsp2003
angka
prozac11
Topix: Spam
Only Title

Answer Questions

  • lkld999 .Item property doesn't exist for ArrayLists???

    I'm getting compiler errors when trying to reference the .Item property for ArrayLists in my code. All the documentation I can find says this property does exist. But C# is telling me otherwise. If I say: ArrayList MyList = new ArrayList(); Object o = MyList.Item[3]; I get the compile-time error: System.Collections.ArrayList does not contain a definition for "Item" And as I'm entering my code and type "Mylist.", the IDE's auto-complete popup suggests "IsSynchronized" or "LastIndexOf" as the members at the place I'd expect to see the .Item property. I'm a bit of a C# newbie. Thanks for any help... It is true that the ArrayList class has an ...Show All

  • thomasd1234 how to generate excel sheets from sql server data using .net

    2/ Also , can we do that in sql server itself Thanks. See if this article helps: How to transfer data to an Excel workbook by using Visual C# 2005 or Visual C# .NET Couple of ways to do this. One is to use the Data Transformation Services (DTS) in SQL Server: http://www.codeproject.com/useritems/DTS__VBNET_.asp ...and the other would be to use SQL: Dim ExcelConnection As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & "c:\Test Files\Book20.xls" & ";" & _ "Extended Properties=""Excel 8.0;HDR=No""") ExcelConnection.Open() Dim ExcelCommand As New System.Data.O ...Show All

  • DavidThi808 Webservices return object problem

    Hello. I have one problem with webservices and that problem is: I have one application 3-tier. In Data tier i have a class Address(example). In Business tier (exposed by webservices) I have two webservices that returns class Address. In Client or Interface Tier i have one module aspx that makes management of addresses. But in this class i only can import Webservice1.Address or Webservice2.address. But i want import only class Address, and not webservice1.address and webservice2.address (in client this 2 address classes are not the same). I could i do that Thank you. Antonio Dias Thank you Rodrigo. What you said solve my problem. Did you know how I can configur ...Show All

  • mastermind1429 Stripping diacriticals from string?

    Is there a .Net string method that will strip diacriticals from strings That is, what can I replace ToNoDiacriticals with to get the following to work: string foreign = "Bia owie a"; if (foreign.ToNoDiacriticals().Equals("Bialowieza"))     System.Console.Writeln("Works!"); You can use Path.GetInvalidFileNameChars and Path.GetInvalidPathChars to test for the non-diacritical characters you want to remove... System.IO.Path.InvalidPathChars may help. Good luck. I made a typo; the comparison should be if ((c < 0x0300) || (c > 0x03FF)). Are you sure you're using NormalizationForm.FormKD The others will convert accented letters to their canonical form, which is not what I wan ...Show All

  • McGeeky AHHH serial port class

    OK, I have some basic code to send some commands and get some responses back from a serial device. One function calls SerialPort.Write(byte[], int, int), then I call SerialPort.ReadLine() after. This timeout on my serial port is 4 seconds. The data comes base in far less than a second. This process seems to work for about 7 send and receive calls and then starts timing out as if when I send commands after that, it doesn't get anything back, BUT it does. I know it keeps getting stuff back because if i close my app and run hyperterm when I connect to the serial port hyperterm flushes the input buffer and I get everything the .net 2.0 SerialPort class said wasn't there. can someone tell me what exactly I am doing wrong Does the serial ...Show All

  • Meera V VS2005 doesn't recognize .NET Framework 3.0 installation

    Hello ! I have just installed .NET Framework 3.0 in order to add PF, WF, CF and InfoCard components to my existing .NET Framework 2.0 installation. After installing it, I ran VS2005 and exptected to find more wizard concerning WinFX conponents, but VS2005 remained wihout any change. I was looking for Workflow Designer but I didn't find it either. I tried by installing VS2005 extensions for WF but it still didn't show any new wizard. Do you have any hint on this Thanks Jaime Hello Jaime, At least for using classes of WCF you must add a reference to Visual Studio. In my installation i found a new item called workflow under Visual C# when i chose new project from the file menu. I hope this helps because i jest sta ...Show All

  • vijay1 Serializing Trouble

    I am using a soapFormatter to serialize a datamembet that is a dictionary< byte [] , dictionary <string, int> > and I am getting the followign error {"Soap Serializer does not support serializing Generic Types : System.Collections.Generic.Dictionary`2[System.Byte[],InstrumentUI.Tallie+UserTally]."} I tried using the XMLserializer and met with similar troubles.  What do i need to do   \ Is it not possible to serialize a dictionary That seems funny that you can't it's just like a multidimentional array just with key's. Please Help Thanks Matt Ok I changed it to a lits of KeyValuePairs<string, int> then another list of List<KeyValuePairs<Byte[], List<KeyVa ...Show All

  • zoezoo [Best Practice] Verify a value is part of an enumeration

    What would be the best way for verifying, upon converting an int to an enumerated type, that the value actually exists in the enumeration Ideally, this would work with [Flags] and non-[Flags] enumerated types. A case statement would work, but is clearly undesirable, unless one does some sort of code generation. Perhaps checking int.TryParse((EnumeratedType){int value}, out dummy).ToString()) would work, but that seems awfully kludgy. Luke, I've provided a few techniques for validating enums on InvalidEnumArgumentException topic on the new MSDN Wiki. Regards David Thanks for the post David there's good useful stuff there. Now the whines First I understand stuff happens but it is a rea ...Show All

  • ErickBikeman Internal .Net Framework Data Provider error 12

    Sometimes this error occures when executing commands on Access database. Stack Trace: "System.InvalidOperationException: Internal .Net Framework Data Provider error 12. at System.Data.ProviderBase.DbConnectionInternal.CreateReferenceCollection() at System.Data.ProviderBase.DbConnectionInternal.AddWeakReference(Object value, Int32 tag) at System.Data.OleDb.OleDbConnection.AddWeakReference(Object value, Int32 tag) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInterna ...Show All

  • Teraabb datetime insertion problem

    i'm using sql server 2005 under asp.net 2.0. when i try to insert values of table columns , i get the error : {System.Data.SqlClient.SqlException: Incorrect syntax near '.2007' when i debug the sqlQuery, i see it is : INSERT INTO ASILTER_INBOX (tarih_saat,kimden,kime,konu,govde,atac,okundu,silindi) VALUES (16.02.2007 17:44:18,'ALISNMZ','ASILTER','Naber','OOo o 0o0 o OO oooo!','','false','false') the tarih_saat column is datetime at the database. could anyone reply to me, i need a quick help. thanks. Hi, You can try for cast function. INSERT INTO ASILTER_INBOX (tarih_saat,kimden,kime,konu,govde,atac,okundu,silindi) VALUES (cast('16.02.2007 17:44:18' as datetime),'ALISNMZ','ASILTER','Naber','OOo o 0o0 o O ...Show All

  • ChopperDavo Global Caching

    I've a windows application which connect to SQL server every second and gets data. Many user uses this application and it put lots of stress on the SQL server. So I would like to use Caching for this. What I like to do is, run an application which connect to SQL server, fills a dataset and caching it, another application that all other users use and get the data from the cache already created by the other appln and not from SQL server. Is it possible with Visual Studio 2005. Please let me know how with example Thanks, Antony Yes you can, I've done this with a windows app recently. My win app connects to a service that runs on the application server. The service contains my DAL code and handles a ...Show All

  • A kid what is the idea of segmented downlaod?

    hi .. i want to know what is the idea of segmented downlaod which found in any downlaod accelerator if any one have sample for this in vb.net it will be good thanks in advance I do not know any code sample, but segmented download is the main idea of the accelerated download. Download accelarators split file into many parts, then download each part simultaneously. For example, if a server upload 100kb/s per connection and your program use 3 parts for downloading, then your total speed is 300kb/s. As I know, I tried to explain;) ...Show All

  • Rabtok CompilerResults contains Type in VS, but not in Excel

    Hello all   I'm writing come classes where code is generated and compiled at runtime (i cut the exception handling and so to keep only the relevant code) Dim lsCode As String Dim loCompiler As ICodeCompiler = Nothing Dim loCodeProvider As New Microsoft.VisualBasic.VBCodeProvider loCompiler = loCodeProvider.CreateCompiler() Dim loParameters As CompilerParameters = New CompilerParameters loParameters.GenerateInMemory = True Environment.CurrentDirectory = IO.Path.GetDirectoryName(System.Reflection. Assembly .GetCallingAssembly().Location) Dim lsaReferencedAssemblies() As String = New String () { _ "System.dll" , _ "mscorlib.dll" , _ "System.Management.dll" , _ "Microsoft.Vis ...Show All

  • PrashanthBlog Problems with Regex.IsMatch and IndexOf methods

    Hi, I am developing a C# application and am trying to search for a string within a text. I tried using both Regex.IsMatch and IndexOf methods but they are somehow not working for me. Is there any other way to do the search Thanks, Hi yes there are alot of other ways to do search in a string for example split your string in the words, and search the array returned or load it to any collection and check Contains method.You can split string using string.Split method. By the way if the IndexOf and RegExp doesn't solve your problem then I think you are making some mistake in writing the pattren for regex or may be your string contain a EndOfFile or \0 character before your the text you are ...Show All

  • Malazar Find/Select Methods in vb.net

    Hi, I already know how to use this methods. What I don't know is if using them, will change the position on the DataSet In other words, after the Fill method is applyed, if the Find/Select methods are used, what happens to the DataSet position How can I determine the position on the DataSet Lets say that I found one particular row on the DataSet that matches my conditions (sql expression - key) and want to make this row "the current" (to move the "pointer" to that position). I only fill the DataSet at the beginning, must I do it again I'm using the DataSet/TableAdapter/BindingSource in VB 2005 Express. Please Help. Regards, Pedro Hi, OK, but if I have co ...Show All

91011121314151617181920212223242526

©2008 Software Development Network

powered by phorum