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

Software Development Network >> .NET Development

.NET Development

New Question

SQLDataReader.GetOrdinal() fails rarely with IndexOutOfRange
Enumerating Sound Devices
dataset row delete problem
online database connecton
Add account into the Performance Counter Users Group or give admin rights?
Assembly.LoadFile and Dependencies
Smtp with c# through gmail.
Deleting a single row from related tables
How to develop chat program using VB.NET
advpack.dll error, different than the other topic.

Top Answerers

Uma Hettiarachchy
Joshua Morgan
gafferuk
chocobo_ff
Michael Schreuder
nobugz
J. Hammer
LandLord323
cplusplus1
ramseys
Mount Vernon Data Systems
Only Title

Answer Questions

  • Hansen Steve Page Load Firing Twice

    I converted to 2.0 and now hte page load fires twice on my web sites. I understand there may be a place where the converted inserted code that loads the page twice, but I can't find it in the code behind. I'm using vb. Thanks. Not a silly question at all. I am seeing the same behavior on two of my pages involving a CrossPage Post. It seems like if I do not go through the same logic to initialize all the controls twice (which is potentially a lot of overhead) the page won't look right. On the first Page_Load, Page.PreviousPage is set; the second time around Page.PreviousPage Is Nothing, The page_load even somehow looked like... Private Sub Page_Load(ByVa ...Show All

  • susanasusana [OT?] Programmatically refresh usb devices

    Hi All, I have a problem - I have written a .NET 2.0 program that allows me to automatically retrieve files from a Pocket PC (ipaq hx 2790) using RAPI. Unfortunately, if the ipaq is removed from the usb cradle while it is connected to ActiveSync, when it is replaced into the cradle it will not reconnect!!! Doing a "Scan for hardware changes" for USB devices from the Device Manager refreshes the connecting and the ipaq reconnects. Obviously I dont want the end user to have to refesh the usb this way if this problem happens, so what I want is a way to programmatically refresh the usb devices. (or if anyway knows what is the real problem here i would be grateful for a fix) Also if there is a better newsgroup for this questi ...Show All

  • Sarosh79 Retrieving Images From SQL & Display On Web Page

    I am a nebie so sorry if this is too simple a question... I have an Column in a table of type IMAGE that has image files in it. How do I go about extracting them and displaying them on a web page. I only need to extract and display one at a time along with some other data from teh same table. I knwo I can get the data out with a DataReader or DataSet but how do I display it on the web page along with other info that I am putting into text boxes etc Thanks! See if the following helps: http://codebetter.com/blogs/eric.wise/archive/2005/05/15/63236.aspx ...Show All

  • SolidSpace Files and folders

    Hi guys, sorry to bother you with stupid post, but I just don't know where to ask :) So...I need a simple code in VB.NET to acomplish the following: I have one folder (folder_name) with a few files . I want to arange them by date (accending) and rename all of them considreing that they'll have the same name, just with a number after na name (let say - file_name(1), file_name(2), file_name(3)) and 1 will be the oldest file, respectively - the biggest number will be the newest file. That's it. I have some misty ideas how to get to result, but it's really not enough :) I hope I'll find the answer here! 10x in advance! Hi, To sort your files under the directory; you will need to ...Show All

  • MongoBongo DataSet Copy/Clone

    Hi, I need to have a copy from one Dataset created at the Form level. I'm using the TableAdapters and BindingSource Objects also. In some cases I need to check and verify if a specific row exists in my DataSet. How can I do it using the DataSet Is there any other way (BindingSource.Find) My table have 3 fields for the table key. I am assigning the BindingSource to a DGV.DataSource to display it. This specific BindingSource as its DataSource and DataMember related to the original DataSet. If I want to consult a specific row on the DataSet this will change the Position on it, true This would mean that the DGV display would also change, true I don't want that to happen. Can someone help me Thanks, ...Show All

  • kuha60 File In Use error, Whilst using InterfaceCodeCompiler.CompileAssemblyFromSource()

    Through these samples of code is what leads up to the error. It happens in the Compile Console Method (1st one Below). I receive a Console.dll; file is in use and I cannot figure out why... without that error, this would work flawlessly, how I want it to. Basically, when the user enters any character with a hyphen (-) as a prefix to it, in the textbox, hits process, in my console, it will attempt to save all that to a file (it automatically includes a fixed class & method, it just writes the command), and if there are any errors, it will display it in txtHistory, using the Add() Method (not shown). Anyways , the error occurs where it is in YELLOW, with a RED background, and in pretty big font, compared to the rest, so i ...Show All

  • DzheiZee Serialization error with SqlConnection variable

    I'm getting a serialization error in ASP.NET when it tries to store one of my classes in the Session state. I marked the SqlConnection variable as non-serializable but it still tries to store it in the session state. My class looks like this: [Serializable] public class SqlServerDAL { [XmlIgnoreAttribute] private SqlConnection Connection; } Any ideas why this is happening even though I marked it with the XmlIgnoreAttribute Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'C ...Show All

  • jepptje Strong names for assemblies

    Hello, I'm a new developer (in several senses of the word "new") and I am working on a large-scale internal project requiring testing of code written before I got here. I have already used the CLR profiler successfully on a production release of the product. However, the CLR Profiler is not giving me the information I really need (how long a process takes in real time); so I've written a short assembly that I've attached to certain methods in the project that writes out to an external file with a trace and other information. The problem that has arisen is, in one specific class, this assembly causes a build error, because it is not a "strongly named assembly." How exactly does one name an assembly strongly BTW. ...Show All

  • Jimmy the Dev Trouble with Transaction & OLEDB

    I have the following code: Imports System.Transaction ... Using trScope = New TransactionScope Try Me .Repar1TableAdapter.Insert(xxx data ) Me .Repar2TableAdapter.Insert(xxx data) Me . ReparObsTableAdapter.Insert(xxx data) Catch ex As Exception MsgBox( "Error de Insert ..." ) End Try trScope.Complete() trScope.Dispose() End Using I have a conection to access database: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=R:\Reparaciones.mdb" I'm getting a exception on the first Insert: Message="El proveedor 'Microsoft.Jet.OLEDB.4.0' no admite la interfaz ITransactionLocal. Las transacciones locales no estan disponibles con el ...Show All

  • Sweeps78 downloading/reading source code from websites

    I just got visual C#, had been using java, and am stuck trying to figure out how to read the source code from a public website. In java it was... URL yahoo = new URL(Site); BufferedReader in = new BufferedReader( new InputStreamReader(yahoo.openStream())); String inputLine = in.readLine() I then read the strings from that source code to extract the daily data I need(don't need help with that part). If someone could just post a few lines of code that would get the source code from a website into string format, it would be much appreciated, thanks. Hi Sven,  I am pulling out my hair.  I have done the above and it works perfectly except I don't get the whole site.  ...Show All

  • ozhonetech Use Javascript to check if client has added the domain as a Trusted Site

    I need a way to check, using Javascript, if the user has added the domain as a Trusted Site. We sell different kinds of content management tools and similar products to our customers. To be able to guarantee it's functionality, we require, among other things, that the domain that the CMS is installed on, has been added as a trusted site. At the login prompt we need a way to check if it has been added as a trusted site and if not, display a warning. I haven't been able to come up with a good solution to this yet. Anyone know if it can be done <script type="text/javascript"> var protocoltxt = document.location.protocol.substring(0,document.location.protocol.length -1); var Tru ...Show All

  • Lavatress How to make Windows forms responsive to buttons while main thread is busy?

    Hello, I don't want to do thead programming. Is there an easy way to make form to resond to button click event while main thread doing some processing If I need to cancel that long process what is prefered way to handle this with minimum amount of code. Thanks, G Right! For changing the cusor, do this: this.Cursor = Cursors.Hand;// or any cursor you need! and then back to original one using the same command assigning the default cursor! You are probably calling MessageBox.Show(this,......); Remove this from the first parameter and all wil be fine then Anyother thing Best regards and Best of Luck, Rizwan Use BackgroundWorker Component to do this its recommended! ...Show All

  • J Lim Invalid Binary Format

    I so much need your help here. I have a simple application ... and its going to get big :) if I figure out the .NET remoting part. It just wont work. Its based on configuration files. I use VS 2005 - .NET 2.0 - IIS 6.0 to host the remoting objects and a simple Form GUI to test. I use binary format. thats the code : web.config - server : <system.runtime.remoting>     <application>       <service>         <wellknown mode="SingleCall" objectUri="Mail.rem" type="RemotingServer.MailManager, RemotingServer" />       </service>       <channels>         ...Show All

  • IanG Debug to Release version

    It's probably got a really simple answer... i've just started using VS2005, and am converting my web services over. How do I switch from Debug to Release mode Thanks! Which version of studio 2005 are you using Professional or Express Also check out this post Web Service Project Stuck in Debug mode to see if it applies. Also check out this post, VS2.Net 2005 Release/Debug Mode unavailable . That has some peculiarities with VB which may be affecting you. I've created a new console app, and there is no option to change the configuration at all. aaargh! Thanks OmegaMan and Ido :o) I'm using VS2005 professional. In VS ...Show All

  • HeathM How to monitor an I/O event from a separate process?

    I have a third party application that reads a file.  I am trying to create an new application that writes updates to the file after that 3rd party app reads it.  Is it possible to monitor file access from .NET on the O/S level to trigger my application to syncronize read and writes over time   How would you do it   If this is not possible, how would you solve this problem other than recreating the third party application (which is not realistically possible) I/O monitoring seems to be possible, as there are programs like http://www.sysinternals.com/Utilities/Filemon.html  that does it.  I just need to know how they hook into Windows and trigger an event ...Show All

373839404142434445464748495051525354

©2008 Software Development Network

powered by phorum