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

Software Development Network >> .NET Development

.NET Development

New Question

IIS Worker Process message box
problem with Installing .Net Framework 2.0
connecting to MYSQL in C#.NET
as to show tables of the data base through one winapp
Enumerating Sound Devices
Cannot load aspx.net in website
Enabling a panel.
why doesnt System.Drawing work on Console Application?
How to extract a value from an object in a form of string?
getting rid of milliseconds in DateTime

Top Answerers

asalcedo
georgeob
ArielNY
AlanKohl
Anarchy
Maxim Goncharov
dotnetTechnocrat
Socrates Kapetaneas
kenambrose
Near Fantastica
DBBuilder
Only Title

Answer Questions

  • Kris Nye MMC 3.0 Namespace Extension

    Can a MMC 3.0 namespace extension extend a MMC 2.0 primary snap-in I get the following results from my experiment: Server stack trace: at Microsoft.ManagementConsole.SharedDataItem.GetData() at Microsoft.ManagementConsole.Samples.ExtensionToSnapIn.OnInitialize() at Microsoft.ManagementConsole.Advanced.NamespaceExtension.ProcessNotification(Notification notification) at Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.IMessageClient.ProcessNotification(Notification notification) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArg ...Show All

  • MariamCR Programmatically change UpdateMethod of ObjectDataSource

    I want to change the UpdateMethod of an ODS. I've tried changing it but it keeps going to the method initially defined. The parameters are the same between the two methods. The docs indicate that you can Set the property and you don't get a compile error. Any thoughts Hi, Have you done exactly as in http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.objectdatasource.updatemethod.aspx If it does not work please post your code. Charles If you place a breakpoint in UpdateCustomer and use the immediate window to read the value of the ObjectDataSource2.UpdateMethod, does it say UpdateCustomer or UpdateContact Charles ...Show All

  • Aditya.P DataTable.Select() Question

    I've searched high and low for an answer to this, but all I can find is stuff about the filter/sort bug, so hopefully someone can help me. I want a distinct list of instruments where the date is the first date where the instrument has data. Ignore the possibility of null values. Normally I would write this is SQL: Select ValueDate, Instrument, Price where Instrument = '0001' and ValueDate = (select min(ValueDate) where Instrument = '0001') For some reason I just can't get this to work, no matter how many variations I use. I hope I'm missing something terribly obvious. Thanks in advance, James If you are using DataTable.Select(), you can simply achieve what you want by using strFilter ...Show All

  • Dan Heile Type of File

    Hi Guys, How can I extract the information of a file like 'Type of File' ex. Type of File: Microsoft Excel Worksheet. I am able to extract the other information like Last Access..using FileInfo. But I can't find the value for the said subject. Can you please give me a sample code 'coz I'm just new to Visual Basic 2005 Thanks in advance. Hi Lepaca, Thanks for the quick replies. ok i'll try your sample code and get back to you. thanks again You could use two ways. One is to check extention of the file. It is not reliable 10%, but could be enough for you. Another way is to analize first 4 bytes (I believe it is correct number) of the file, becc ...Show All

  • DragonWolfZ When is a socket ready to recieve data?

    Greetings, It seems that sockets on some computers takes longer to "wake up" than on others... I have a Windows Service listening for LAN broadcasts. This is the relevant code: ... IPEndPoint ipep = new IPEndPoint(IPAddress.Any, ListeningPort);             listeningSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); try{} listeningSocket.Bind(ipep); //catch code here   int receivedBytes = 0; byte[] receivedData = new byte[512]; IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0); EndPoint remoteComputer = (EndPoint)(sender);  while (true) {   try   {  receivedBytes = listeningSocket.Rece ...Show All

  • anukirthi Phone number dialer. VOIP. Skype. Dial. Dialling etc.

    Hi everybody I need to make an application that dial a phone number and then register the response status for statistics issue (if it was connected, if the line is busy, etc) How can I manage those signals May I use SerialPort object Please, if you have some example code, I will appreciate so much Thanks in advance Dr CRs Rizwan, There is no problem, thanks very much for your help! Best Regards Dr Crs Hi, Maybe you could hook into a VOIP program like Skype to do the dialling and return the results you are after I wouln't know how to to this though, sorry, i am just passing you the idea. Regards, S_DS I have answered this question before on forums but cant f ...Show All

  • itznfb Accessing XML files via network shares

    Hi; Note: While our specific use is ASP.NET, this is a general "accessing XML" question. Our ASP.NET application allows a user to give it an XML filename and the app then opens that file as a datasource to generate a report. The issue we face is we do not want the file opened using the credentials of the user that our ASP.NET app is running under for two reasons: The ASP.NET user may not have access to \\hr\payroll\salaries.xml but the person requesting the report does. The ASP.NET does have access to Web.Config but the person requesting the report does not. Our app supports both forms and WindowsIdentity as an authtication/authorization method. So we do not have the client identity to use if they are using ...Show All

  • Blake01 inserting & reterivel binary data in msaccess table using vb.net 2003

    can any one help me in this context that i want to insert binary data that is in a byte array in msaccess ole object field using vb.net please help Below are two routines that write to and read from an OLE object field. Note that the OLE header is not included in the stream. Sub WriteBlobToAccess() Dim SourceFilePath As String SourceFilePath = "e:\My Documents\Greenstone.bmp" Dim AccessConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=e:\My Documents\db1.mdb") Dim AccessCommand As New OleDbCommand("UPDATE Table1 SET OLEField= WHERE [record id] = 1", AccessConnection) Dim FileStreamObject As New System.IO.FileStr ...Show All

  • Jamie Thomson store a file into a database and retrive it

    hi I want to store my generated xml files into a database and then retrive some of them. my data type in sql server database is Image. my algorithm works OK with images but when I try to store xml files I miss a few characters from the end of the retrived xml file. and for some heavier xml files have the same problem with some rubbish characters attached to the end of the file. what's going on file is a file. if my algorithm had problem it shouldn't work with Images either. SQL expects an image column to be binary, an xml file is not binary, it is text utf* . You should not really insert text into a binray field, you should insert it into a text/xml field. If you must sinsert into the same field then ...Show All

  • Giulio-G Is an assembly the only possible target for an emitted method?

    I am wondering if there is any way to emit a method and its supporting metadata without having to create a full-fledged assembly I want to be able to emit individual methods on the fly and feel that it's rather heavy handed to create a whole assembly just for one method. What I would ideally like to do is emit the byte codes into a buffer that is part of another data structure and then pass that buffer's adress along with a pointer to appropriate metadata (which could contain metadata for multiple methods and data types) to a function that will jit-compile the method and execute it. Is there an interface that will let me do this -- that will let me separate the metadata I point to from the acutal executable byte code and submit them in se ...Show All

  • rauhanlinnake System.Runtime.InteropServices.COMException: This command is not available

    The application is working fine in my local machine.But after deployment in client's machine I am getting this error.Please help me. How are you writing to the Word document if not via the COM-based Office automation APIs Anyway, it sounds like you should add proper exception handling and logging to your application so you can tell where the exception originates from. No,my application is not using any COM components.Just I am writing values into word document.It is not coming with any stack trace. Thanks Mattias. You have to tell us a lot more about your application. Does it use any COM components When do you get this error ...Show All

  • Sandeep_MSFT Limit the row number result in a .Select() method.

    Hi! I have a DataTable with 180.000 rows, i need get the rows one by one with a less ID and TTL = 0, i use this: DataRow[] NextValue = dt.Select("TTL = 0", "ID") ; Debug.Print("Arr" + NextValue.Length.ToString()); if (NextValue.Length > 0) { // Do stuff with NextValue[0] .... }   The problem is, that the firsts times ... the NextValue array could have 179.999 DataRows... and next 179.998 ... etc.. etc... Do this query spend a lot of time, i need reduce the time but ... how Some idea Regards. It might be better to fetch only rows you need using a proper sql statement (where...). However if this won't work for you then you might consider some sort of index on DataTable using a Dictionary<int, DataRow[]> ...Show All

  • ElectricBliss Perform aggregate functions on Dataset

    Hi, Iam working on a project that involves getting the data from Lotus Notes and displaying the data in a web form. I am making use of a tool called NotesSQL, that converts the data from Lotus notes into any conventional database. It also provides a database connectivity between the front end and Lotus notes. The following is a little description about my project: Front-end :- ASP.Net Backend - Lotus Notes Connectivity using :- Notes SQL Iam able to create the connectivity between the backend and my web form. Iam creating the connection using ODBC Connectivity and have the required data in a DataSet. The problem with Lotus notes is, it doesn't allow any aggregate functions to be performed on the data, while creating the d ...Show All

  • JohnnyBlade Conversion problem

    Hi! I need to take a text string from a tab-delimited text file referring to a date and load it into a database (SQL 2005) as datatype datetime. I parse a tab-delimited text file thusly: [CODE] AccountBalance ab = new AccountBalance(); ab.buildType1DataTable(); // METHOD THAT BUILDS THE DATATABLE string[] type1Row = line.Split(new string[] { "\t" }, StringSplitOptions.None); ab.tbl.Rows.Add(type1Row); [/CODE] For each of the columns of the datatable, I define them each like this: [CODE] DataColumn StartDate = new DataColumn(); StartDate.ColumnName = "StartDate"; tbl.Columns.Add(StartDate); ... [/CODE] How can I convert the column with strings that must go into a database column expecting datetime The date string is ...Show All

  • NeederOfVBHelp How to Load Xml data into SqlServer Table

    Dear All i created a button on myForm.cs and write following code for it ... ds = new dataSet adapter.fill(ds,"tab"); ds.WriteSchema("xmlSchema"); ds.writeXml("xmlFile"); schema and xml file successfully created, now i want to send these files to another city where i want to read these files and update (insert new records from xml) database, for that i write following code dataSet.readSchema("xmlSchema"); dataSet.readXml("xmlFile"); data from xml successfully read (loaded) to dataSet, but i dont know how to write dataSet data into myDatabase could you please guide me using same solution or any alterntive Thanks What exactly do you want to do Store the XML file ...Show All

737475767778798081828384858687888990

©2008 Software Development Network

powered by phorum