Answer Questions
Mohit Gogia Return autonumber key field in Formview_ItemInserted
My ASP .Net 2.0 application inserts a new record into the database using a Formview. The key field for the database table is an autonumber field. In the Formview_ItemInserted event I'm writing some code to send out an email notification, which needs to include the value of the key field. So, my question is how do I return the value of the autonumber key field from the ItemInserted event Thanks in advance for your assistance. ...Show All
jackwc Converting int to nullable enumeration...
This is the piece of code that's throwing the exception field.PropertyInfo.SetValue(row, dataReader[field.Name],null); The field in the database is a number, nullable. On the other hand, the Property in the object is of type TerrainSequence , where TerrainSequence is an enumeration. When I try to do this conversion (int to TerrainSequence ) , this is the exception it throws. Object of type 'System.Int32' cannot be converted to type 'System.Nulla ...Show All
PeterPeter OleDbCommand.ExecuteNonQuery "Insert Into Select From"
Hello, I am working with OleDb to perform a bulk insert from a temporary table to permanent database table, both of which belong to the same database. I am wanting to use "INSERT INTO <permanent_table> SELECT * FROM <temp_table>". The query I run in MS Access to perform this bulk load does process correctly, but not in code using OleDb. After properly setting up my OleDbConnection object, opening it, and properly ...Show All
kaffeeschluerfer .Net 2.0 and 1.1 in same environment?
Hi Is there any problems in installing both .Net framework 2.0 and 1.1 on the same machine, and running both 1.1 apps and 2.0 apps on it Regards Anders Assuming that it is correct - then it was very helpful.. ;-) I'll try install the 2.0 framework on my workstation then - and see how it goes.. /Anders No problem, you can have as many frameworks installed simulateously as you ...Show All
saulius74 class design question
I have my class with properties and methods. I create an instance of the class and get some of its properties in my forms. When I go back to the class and try to access that property from inside the class itself, I see that it has a NOTHING value. 1/ How do I keep the value of the property between calls and instantiations of the class when I sometimes instantiate the class from different forms in my application. 2/ What is this techniqu ...Show All
Suhas_hk .Net client and Java server integration
Hi, My name is Liran, Im working on a project that the server is written in java technology (APACHE TOMCAT) and we considering now to turn the client to windows application instead of web. Our main option is to choose .net c# as our client technology and the connection to the server will be by web services on the server side (the webservices is written in java). I already made a prototype to check it and it worked really good. Im trying to get s ...Show All
Tariq Sharif Converting Column to String From Dataset?
Hi everyone , this is my first post and I am new here, I have some questions which requires your help ASAP. I actually need to convert a certain column from some table in a dataset to String array or simply String so I can verify its value with another textbox value. Let me explain in use case better: 1. I enter an value in the textbox 2. Upon textChanged, system search for value in specific column in the dataset 3. If code exist, xxx 4. ...Show All
suyang XML & XSL Presentation
I've been writing a WYSIWYG editor for XML and XSL, and I've stumbled upon a problem.. http://dotnet2411.combell.net/biglist.xml http://dotnet2411.combell.net/biglist.xsl The XSL file contains the lay-out etc for the XML file, it works perfectly in firefox, but not in IE. Could some one review these files and perhaps explain what I can do to make it IE compatible or even better, check if the works in your browser. If it works, then the text ...Show All
de_Stan How big is the SOAP wrapper overhead?
I'm using vs2005 Beta2, developing a system to transfer data to/from XDAs (PocketPCs) My issue is that our customers airtime contracts charge by 1024k chunks of data, so we batch data up to 1024k chunks before we send it. When the system was in evb we used HTTPRequests to post to an asp page, so it was easy to do this. Now we're using VB.net talking to WebServices, and I'm no longer sure what size the data is I'm sending. I'm not t ...Show All
LightDark2 Internet or Network Monitor
I want to make an internet or network monitor to retrieve how much data has been received and sent in bytes, does anyone know how to make this in .NET, what namespaces should i use thnx... System.net and System.net.sockets You could also use the new NetworkInformation APIs You might want to look into PerformanceCounters... and check for Bytes Sent and Bytes Received Counters ...Show All
princealadin Moving the file while it's still being created
Hi everyone, I have the following problem. I use FileSystemWatcher.Created event to call a procedure that needs to move that file. Well, Created event should be called Creating, because it raises when file creation begins, and while it is being created. So, my problem is that I can not move the file until process that is creating the file ends. This is my solution: Dim Success As Boolean While Success = False Try Succe ...Show All
mcrfanatic SSH/SFTP Communications in C#
I'm looking to get started implementing a SFTP handler in my application (.net 2.0) and so far I'm just not finding what I'm looking for. Seems like all the SSH/SFTP code and libraries out there are for the Linux crowd. Can anyone point me in the right direction Am I going to be making calls to a command-line SSH app, or is this something that's going to be doable with reasonable effort Hi, Recently I ported some of the JSch java SSH l ...Show All
Rottengeist Error "Invalid SQL Statement; expected 'INSERT', 'DELETE', 'PROCEDURE', 'SELECT' or 'UPDATE'"
can someone please help, according to my knowledge this should work... Dim sw As StreamWriter = New StreamWriter("C:\test.doc") Dim sw2 As StreamWriter = New StreamWriter("C:\query.doc") Dim catid As String Dim reader As OleDb.OleDbDataReader Dim comm As New OleDb.OleDbCommand("SELECT * from cat where catid <> 3", conn) If conn.State = ConnectionState.Open Then ...Show All
suresh babu krishnappa My solution was different
I have installed and test with not problems the samples of WSE 3.0 and also the P&P samples. The test system is using WP/Pro, IIS 5.1 and VS2005. Now I have tried the WSE 3.0 Hand on Lab samples. I executed the installvdirs.exe, that create all the virtual directories. After load in VS2005 the WebService projects C#: CS\Part1\before or Part1/after, they are giving error as if the IIS server is not serving the WS page. The same pr ...Show All
Chris.Ziel Call context and signed assemblies with strong names
Hi. Is it possible using the call context class with signed assemblies with strong names I have created a MyCallContext class inheriting from ILogicalThreadAffinative When I try to use it, the runtime gives me a error: By security issues, you cannot access to MyCallContext Class (translation form the spanish). Somebody know why Thanks. can you send more information -- specifically wha ...Show All
