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

Software Development Network >> .NET Development

.NET Development

New Question

parse error w/ XML returned by Yahoo Web serach REST query?
! Possible System.NET bug? SocketException when performing Async download in Async thread
Creating Http/Https listeners
Sending email via Lotus notes
How to read values from a Text file of .NET UI application to windows service
faster way of accessing CSV files
How to preserve CDATA node in XPathNavigator
setting XML attribute
How can I ignore empty elements in my output xml file? (using xslt)
how do I get my result data set back from the constructor?

Top Answerers

hunb
Micael Baerens
TheresaB
Javahar
parlance
Narayan19
applepie
Jassim Rahma
David S. Anderson
flakmonkey
Simkin
Only Title

Answer Questions

  • Nightowly How-To (Object Class => Binary Serialization => To Memory => Encrypt => Save to File)

    Hi Every body .... I have a [Serializable] Class like this ======================================================== [Serializable] class Customer { private string _CustomerName; private string _Country; public string CustomerName { get { return this._CustomerName; } set { this._CustomerName = value; } } public string Country { get { return this._Country; } set { this._Country = value; } } } ======================================================== How can i use Binary Serialization to serialize the object class temprary to Memory and Encrypt it and then save the encrypted to file. Like this 1. Object Class => Binary Serialization => To Memory => Encrypt => Save to File 2. Read file => To Memor ...Show All

  • StefanKZVB opposite of XMLConvert class

    Hi! I was wondering if there is a class or method that does the opposite to what XMLConvert class does. i.e. convert a CLR type to a valid string for an XSD. Thanks in advance! Hi Derek, XMLConvert indeed is not what I'm looking for. That's why I'm asking for something that does the opposite. XMLConvert.ToString also does not do that. It returns culture sensitive string. I want to get an XSD valid string. Hi, I think the XMLConvert class does what your looking for. XMLConvert.ToString() method maybe. Hope thats what your looking for. Derek you are right! Here is the document that describes ToString() method (I home the link works): ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/WD_XML ...Show All

  • BalajiSanro How should I send query to datatableadapter?

    I can only set a static query in DataSet designer How do i send and set query to DataTableAdapter by the code I don't think you can do this, one of the limitations when using the DataSet/TableAdapter wizard. You will have to create either other TableAdapters with a different query or programmatically as shown, use the standard approach (not using the wizard) of using the "raw" DataAdapter. Thank you. but i don't want to use DataAdapter . All i say is about DataTableAdapter Hi I want to use this in Win App. Double click in the dataset designer on your TableAdapter. Now use a partial class like the fo ...Show All

  • Parker Lewis udp socket.listen() issue!!!

    hi,.. im trying to create a listener socket for the UDP sockets.. on which i transfer video... but when i declare the video socket and bind it to a IPEndPoitn .. then try to listen i get an exception.. m_VideoSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); int prt = 10002; IPEndPoint jsd = new IPEndPoint(IPAddress.Any, prt); m_VideoSocket.Bind(jsd); m_VideoSocket.Listen(10); the exception says:"the attempted operation is not supported for the type of object referenced". whats goin on here!! is it not possible to create a listener socket if the protocol type is UDP! thnx. http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.aspx ...Show All

  • Jeff Youel how to detect internet connection automatically

    i use this code to detect the internet connection but i need a better idea to get a notification as soon as the PC looses the connection and it will be silly to keep this code in a timer.. [ DllImport ( "wininet.dll" )] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue); public static bool IsConnectedToInternet() { int Desc; return InternetGetConnectedState( out Desc, 0); } Jassim Rahma wrote: ok.. let's see the code.. As you wish! using System; using System.Threading; using System.Windows.Forms; using Timer = System.Threading.Timer; namespace Born2Code.Net { public enum ConnectionState { ...Show All

  • veep Version 2.0 downloaded - now getting can't load messages on reboot

    Upon downloading the latest driver and ATI Control Center for my ATI X1300P video card, I was instructed to install .NET version 2.0, for it to work (hopefully for the video driver and not that pesky ATI Control Center application). I am working with Windows XP, Service Pack 2, and have no other reason to download this software - I don't even understand why I really need it. Anyway, I downloaded Microsoft .NET Framework Version 2.0 Redistributable Package (x86), and am now getting 2 messages on reboot: Could not load file or assembly 'MOM.Implementatiom, version 2.0 2589.34834 Culture=neutral, PublicKey Token=90ba9c70f846762e' or one of it's dependencies. System cannot find file specified. and Could not load file or assembly ' ...Show All

  • wijay_da WIA

    I visited the page http://msdn.microsoft.com/coding4fun/someassemblyrequired/lookatme/default.aspx regarding the usage of WIA to access imaging divices i m getting com exception wen i write Dim d As WIA.Device = class1.ShowSelectDevice(WiaDeviceType.UnspecifiedDeviceType, True , False ) error message is " Exception from HRESULT: 0x80210015" i m not at all able 2 make why i m gttng dis error . bfor running it i had installed "BlogWebcam-VB.msi" in MSDN . my appl is able to access the class " C ommonDialogClass" i hav also included wiaaut.dll. still i m gettng this exception. i m rnng it in VS2005 . Thanks in advance On my PC the WIA was extrem ...Show All

  • Fernando Tubio DATA SET

    Hai, I have doubt in dataset(data layer) creation in asp.net2005. i need example for data set like, 1.How to create the dataset. 2.how to write the methods in the dataset. 3.how to call these in aspx froms. Do you mean ado.net dataset Or what kind of dataset If you want to know ado.net dataset, You can see this aritcles in msdn... http://msdn2.microsoft.com/en-us/library/zb0sdh0b.aspx How to check I knew I don't know abt it Ah, there are lots of people here that can help you but it's difficult or impossible to do so if you don't have the basic knowledge you need to understand the answer. Most of us don't have the time to teach you these f ...Show All

  • moerderin CodeDom / Code Generator issue?

    I've discovered (a bug ) that has become a minor annoyance since our migration to the .NET 2.0 framework. We employ a code generator for the creation of many of our boiler plate classes (DAO / Domain Object type stuff)... which worked great under 1.1. When we upgraded to 2.0, I've noticed that the files it generates sometimes are not properly formatted. They still compile fine and, in fact will usually re-format if you open them in VS and then Ctrl-K, Ctrl-D, but the real issue is that if left in their original format, they really screw up our DIFF tool when compariing new minor revisions of files originally authored with the 1.1 generator. Here's what I mean: // The old way namespace ns1 { public class MyClass { private string m_st ...Show All

  • sugrhigh listen port

    hi please help me. I have a question about ports & sockets . I am trying to write a program that cans listen to the port 80/8080 and deagnose pdf or zip files from other files(html,...). then recive this files from port . I know how resice the file by c#.net but I do not know how deagnose files type . thanks. If you're reading the file over the TCP (i presume) port then you will have to read the first few bytes to determine the file type. That is pretty simple: for instance, the every PDF file starts with the byte stream: %PDF-<version number> where <version number is something like 1.3 or 1.5. Zip files start with the byte stream: PK Hope this helps. ...Show All

  • Dietz Xsd v2 and anonymous includes

    I've got an XML schema where I include a set of anonymous types. When running XSD to generate a class it doesn't seem to handle it very well. It ignores all of the types declared in the XML schema file. Meanwhile tools like XmlSpy and Stylus Studio seem to validate the documents without a problem. Schema validation warning: Type 'http://schemas.mydomain.com/Storefront/AddressBook:RestrictedLengthString' is not declared, or is not a simple type. L ine 32, position 6. The source schema looks like this: <xs:schema id="AddressBook" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://schemas.mydomain.com/Storefront/AddressBook" version="3 ...Show All

  • davco Application error message (override)

    I have a .NET 2.0 application that displays the application error: "The application failed to initialize properly." Is it possible to send a more graceful error message box, to convey to the user that they need the .NET framework on their system Thanks. ...Show All

  • Mr_White saving objects to application throwing null reference error

    I am having a problem and I don't know why. I am trying to save a datatable to application state and I cant seem to be able to acheive this. Here is what i'm doing: Sub Application_Start( ByVal sender As Object , ByVal e As EventArgs) Dim sqlConn As New SqlConnection(PubVars.connString) Dim sqlCmd As New SqlCommand("SELECT * from tbl1", sqlConn) Dim allMembersDset As New DataSet Dim allMembersDA As New SqlDataAdapter(sqlCmd) allMembersDA.Fill(allMembersDset, "tbl1") sqlConn.Close() Application("allMembers") = allMembersDset.Tables("tbl1") End Sub When I try to retrieve this table from another page like this: Dim dt As New ...Show All

  • ksona configSource - share connection strings file across web-services ?

    We wish to have a single (external) config file that stores database connection strings, shared across a number of web-services that all connect to the same database. This would allow a connection string to be changed in a single file that then applies to all relevant web-services. Possibilities include the .NET configSource, or EntLib 2.0's "File Configuration Source" (I'm using Data Access block). But I believe that .NET 2.0 only allows configSource to be in a relative sub-directory, and can't access relative parent directories, so this wouldn't work for sharing a config file across web-services At least that's what this post suggests: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=146960&SiteID=1 Does .NET ...Show All

  • Sir Sean Help with regular expresion

    Hi my problem is with the class Regex, i have this re : Regex s0= new Regex("Fracci ( [ ^ ( \ r \ n ) ] + ) /tr"); MatchCollection mcl6 = s0.Matches(strHTML); with ( [ ^ ( \ r \ n ) ] + ) i got all the characters, except the enter character but when appears a " ( " or " ) " character on the text im parsing it throw me an exception, can somebody help me please Trying to parse HTML using REs is going to be a test in frustration. There are so many ways that your REs could fail that it is often not worth the effort. For example a commented out block of code would be picked up by the RE even when it shouldn't. If possible you should try to use an HTML parser (of ...Show All

383940414243444546474849505152535455

©2008 Software Development Network

powered by phorum