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

Software Development Network >> .NET Development

.NET Development

New Question

how do I get current system time
My.User.Name returns empty string.
Obfuscation and debug
Delegate help?
Best Practices question.
Invalid attempt to read when no data is present.
Exposing dynamic properties of a com object using Reflection
Boolean or bool?
How to make http connections to an MS SQL server and retrieve data from a data base this way?
loading tables with relations to two combobox

Top Answerers

Nightmare_BE
Pierce28
KhRo
Will Merydith
a.d.m
trun_gup
FrankGroves
Tony B
TheMaj0r
Liu Qiang
New Frontiers International, Ltd.
Only Title

Answer Questions

  • Davids Learning 2 versions of .NET Framework

    When one has .Net Framework 2.0 and the patch installed, is it necessary to keep .Net Framework 1.1 and its patch as well I have both listed in Add/Remove programs and would like to know if I should remove the 1.1. Thanks The versions of the .NET Framework are designed to install and co-exist side-by-side, so there is no need to uninstall version 1.1 once you install 2.0. Also, there may be some applications on your system that specifically depend on version 1.1, and they will be broken if you remove it. Thanks! Aaron You don't have to remove 1.1. I would recommend keeping it unless you have a good reason for removing it. ...Show All

  • FergusLogic Shared Assembly in GAC

    My question is that why we install assembly in GAC ,if we can't refer to it through IDE I have installed the assembly in GAC.....But i don'y know how to refer it from GAC in my application There is absolutely no benefit to installing an assembly in the GAC as far as the IDE is concerned. The GAC is strictly a runtime feature of .NET. When you install an assembly in the GAC you are reducing the load time of the assembly, making the assembly safer to use and allowing for multiple versions of the assembly. Only shared assemblies should ever be put in the GAC. When you load an assembly in .NET the loader has to verify the assembly is valid and a few other ...Show All

  • HSBF Lewe Socket Connect/Disconnect

    Hello.  I have a specific question I hope someone in the forum can answer. I am writing an application that will collect data from several instruments over tcp.  I am implementing this by assigning a socket to each instrument I want to connect to, and then establishing a connection to the instruments IP address (port 502, MODBUS communication protocol requires this port).  I have a form where a user can enter the IP address of the instrument and then click a button beside it to test if the application is able to connect to the specified instrument.  The button procedure Connects to the socket and then Shuts it down and closes it.  I have no problems connecting to it initially, but if I try to test the connection ...Show All

  • bessermt IPV6 for CIFS

    Hi, Do windows XP/widows 2003 support IPV6 for CIFS how can i access a windows machine with IPV6 address as of now im able to access windows vista with only NetBIOS name but not with ipv6 address. when i try to acess with ipv6 address (//2222::100:20) im getting an error message "please check spelling **********".please let me know how can i acess a vista / ipv6 configure machine with ipv6 addres The question is outside of the scope of this forum. ...Show All

  • pariax web.config file

    Hi, Can we create 2 web.config files in an asp.net application. will it work. can anyone suggest me the solution. Thanks in advance. yes u can but in diff directories under the root dir Hi Srid, Two web.config files doesn't work in a web application root directory. Good Coding! Javier Luna http://guydotnetxmlwebservices.blogspot.com/ ...Show All

  • MK_India Serialization design problem relating to custom objects

    Hi, I am developing a modeling application where custom objects would be created by certain external assemblies. These assemblies would be picked up on the fly by using reflection. In my application, I have defined an abstract class ObjectBase, which implements ISerializable. The custom objects would derive from this class. Lets say that a model is created, and a custom object from an external assembly is added to the model. Now we save the model. Saving is implemented using binary serialization. Now, I give the saved model file to a friend, who does not have the assembly present on his machine. In such a case, deserializing the model on his machine would fail. To overcome this problem, I have defined a placeholder object, called ...Show All

  • Sameep Regular expression best practice

    With respect to the Regex cache , is there any advantage of using a static Regex instance for frequent matching For example I have a case where I know the pattern will never change at runtime, so I figure the most efficient approach is to share a static Regex object. This is surely more efficient than creating new instances and relying on the Regex class cache <bb /> Which performance are you interested in Load time or match time. If it is match time...this discussion is moot. If it is load...according to the post you referenced Regular expressions created by static methods are cached in 2.0 as users of the static methods do not have any way of managing the lifetime of their regular express ...Show All

  • boban.s Creating a Search using VB.NET and SQL

    Okay, I have ran into a problem with my Search engine for my database i created in VS.NET (phonelist.mdf). I have an <asp:GridView> setup for the results. I have been trying to read up on SQL and implement my own search but here is what i am running into. I launch the program and it runs fine until it gets to MyCommand.Connection.Open() . The error is InvalidOperationException was unhandled by user , The ConnectionString property has not been initialized. Here is my code for the search. <% @ Page Language ="VB" AutoEventWireup ="false" CodeFile ="phonelist_search.aspx.vb" Inherits ="phonelist_search" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T ...Show All

  • AVVIT Server.Transfer Demands Unmanaged Code Permission due to HttpResponseUnmanagedBufferElement

    I have some ASP.NET 2.0 code (Subtext) running using Webserver.WebDev that has been working fine for a very long time. I was testing some Medium Trust scenarios and found that Server.Transfer throws a Security Exception. Stepping through the code I noticed that the page I transfer to runs just fine. Once the page is done rendering, an exception occurs as the content is being flushed to the response. In the stack trace, there's a call to System.Web. HttpResponseUnmanagedBufferElement .System.Web.IHttpResponseElement.Send Anyone know why the unmanaged buffer is used instead of the HttpResponseBufferElement Hmmm, this looks like it might be a problem with running the site in WebServer.WebDev, as it works ...Show All

  • 20001801 ResolveEntity for File Entities

    So the gist of what I want to do is copy an xml file like: < xml version="1.0" encoding="utf-8" > <!DOCTYPE chart[ <!ENTITY XAxis SYSTEM "XAxis.xml"> ]> <chart> <chart_data> <row> <null /> &XAxis; </row> </chart_data> </chart> The copyed file would contain: < xml version="1.0" encoding="utf-8" > <chart> <chart_data> <row> <null /> <number>1</number> </row> </chart_data> </chart> After looking around the web and experimenting this is what I have: XmlValidatingReader reader = new XmlValidatingReader(new XmlTextReader(@"")); XmlTextWrite ...Show All

  • KML67 scripting in applications (c# .net2.0 vbs etc)

    I am looking to include scripting support in my program. I have read alot on msdn and outside. There appear to be two (2) opttions: 1. Use the CodeDom namespace to compile a language vb c# etc to an assembly then run it. 2. Use the VSA namespace. This is for either JScript or VB. I'm not too worried about the script language. Would prefer c#, as thats what the prog is in. But VB is fine too. VSA looked like it might be dropped from .NET2, but it appears to be there. I would like the script to be easliy updated and catch/report errors well. Once updated it needs to kill the previous scrip and replace it with the new one. Any help/suggestions welcome! Mark Many thanks. I did look ...Show All

  • _Jon_B_ SslStream Write Block Size Optimization

    What is the best block size to use when transmitting large amounts of data with the new .Net 2.0 SslStream class We know that the default MTU in Windows is usually around 1460-1480 bytes. We also know that SSL uses symmetric encryption once the asymmetric handshake process has been completed. Therefore the (symmetric) encrypted blobs will be almost 2-3 times the original size(length) of the plain text source that we attempt to write to the stream. Based upon the previous assumptions, is it then correct to assume that writing in chunks of 512 bytes or less would yield the best performance Can someone give me a good rule of thumb for dealing with this scenario Your assumptions are incorrect. Symmetric ...Show All

  • Paarul Cannot Access SQL Server from VS 2005

    I am not sure whether this is the best forum, but I've not had success elsewhere. Using VS 2005 and SQL Server 2000, I have just installed both on a new computer; the same machine. When I run the app in debug mode, it connects to SQL Server with the supplied connection string, returns rows OK, updates them, etc. When I am working in the app, though, I cannot connect to SQL Server. For example, when I use the Data Souce Configuration Wizard > Add Connection > Refresh Server Name, the name of the SQL Server will show up in the drop down. When I try to enter a database, or hit the test connection button, though, I receive an error stating that "while connecting to SQL Server 2005...may be ... the default settings SQL Servier does n ...Show All

  • sagepe How do I take text from a text box and store it in my existing Access Database?

    I want to take the text a user enters into a textbox and store it in the existing fields in my Access Database. Ive tried several things, do you have any suggestions. Thanks. Hi Yes you can find a lot of help from the MSDN Labrary @ http://msdn.microsoft.com/library/ here on the left panel Select [.NET Development] + [Data Access and Stroage] If you are intrested to read from an e-book then let me know at akbarbuneri[at]gmail.com ([at] =@) I will send you few. Hi! Read following topics: 1) ADO.NET 2) Connection 3) DataBinding 4) BindingSource 5) DataAdpater Sohail. Is there any code out there for this specific thing ...Show All

  • Anarchy default value 0

    i have a a select statment the bring up data from my data DB to a dataTable the i Bind the DataTable to a DataGrid but i can many cells with no value i want to make the default value to be 0 how can i do it It sounds like the select is returning null values and you want to replace these with the value zero in the datagrid. I found an easy way to do this in .NET 2.0. What I did was create a datagrid bound to a datatable using the Wizards (drag and drop table to my form). Then I opened the properties for the datagrid and went to the Columns collection. For the column there is a property called DefaultCellStyle. I clicked on this to open the CellStyle builder and there is a NullValue property i ...Show All

34567891011121314151617181920

©2008 Software Development Network

powered by phorum