Answer Questions
DinaD Why do all examples assume you're binding data to a control?
I'm starting to get frustrated now. Every example I come across shows you how to open a connection to a database, fill a dataset, but not how top programatically get at the data... Every example assumes you are going to bind the data to a control and update using a GUI. How do you get at the data within a DataSet once you've Fill()ed it Not from a form, but from with the application. This frustration is also heading towards disappoinment. The ex ...Show All
Nirmalya Viewing assembly dependecies and COM interop problems
Hello folks, I have spent the last two days researching an issue I have. Here's the setup briefly. Created a ComClass with VS 2005 in VB.NET. Strongly named and versionned Registered it on our test server with Regasm /tbl:DLLName.tlb DLLName.dll /codebase Added the file to the GAC Call the component though classic ASP via Server.CreateObject("Namespace.Class") This worked fine and beautifully just before XMas... Then, jus ...Show All
CampAlbion Calling Indexer using Reflection
What is the best way to call indexer using reflection Currently I'm using Type.GetMethod("get_Item", ...) and then method.Invoke(obj, args); It works fine, except I have to special case for Array object, where I cast to array an call Array.GetValue(index) Is this the best way What if someone uses IndexerNameAttribute, will it change get_Item to different name Thanks. Yea, hard coding the method name is not a go ...Show All
perun Parsing data from MSQL to TextBox
ok I have the following code System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection("SERVER=localhost;DATABASE=test1;UID=username;PWD=dbpassword"); System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand("SELECT * FROM tbl1 WHERE IDNum = '"+txtIdNum.Text+" LIMIT 0, 1', conn"); System.Data.DataSet ds = new System.Data.DataSet("MyDataset"); Ho ...Show All
MikeB75077 Missing schema targetNamespace=\"\".
I am trying to serialize an object that implements the IXmlSerializable interface and has the XmlSchemaProvider attribute but I keep getting the an exception thrown with the message "Missing schema targetNamespace=\"\"." when I try and serialize an object that contains my object. Here's the code I'm using to generate the schema: public static XmlQualifiedName CreateSchema( XmlSchemaSet xs) { XmlSchema sch ...Show All
SrijitCN UploadFile
Hi everyone! I'm having some trouble uploading a file to my webserver, using the new My.Computer.Network.UploadFile method. This is the code i am using (The credentials are fictitious ) : Dim filepathupload As String = "C:\uploadtest.txt" Dim urlupload As String = " http://hamdisk.hamdev.com/jacob/uploadtest.txt" Dim username As String = "jacob" Dim password As String = "JCrules" Try My .Computer.Network. ...Show All
J van Rhyn How can I save a specific area of bitmap (rectangle area) into a file ?
Hello, I create a bitmap from a file. I design a rectangle on it and I want to save this area (limited by the rectangle) into a file. How can I do that in VB.NET Thank you for your help! Best regards It works fine. Thank you very much Chris. Load your ImageFile to Bitmap object (instance), then use the Bitmap's Clone method to crop the image into smaller size, i. ...Show All
nfreeze Scalable, stand alone database?
I am developing an application that requires reliable, searchable, and scalable storage for a lot of data. At first it won't be much but, eventually data may surpass 2GB. I need the database to be standalone; I don't want to install a server with my application. Does anyone have any recommendations as to what I should use What does programs like Outlook use to store data (since it can handle well over 2GB of data and it's still searchable) ...Show All
TOWFAS Browse database objects
How can I browse database objects (tables, views for example) in .NET In ODBC API there is a SQLTables() function. You can browse all the objects you like using SMO, (SQL Management Objects). You'll find it in namespace Microsoft.SqlServer.Management.Smo. Start with the Server object, from there you can enumerate databases, then tables, users, roles, stored procs, and so on. Can some one give m ...Show All
Pete Edberg One more time
Ok guys 10th time lucky I think (Hope) I am trying to build a VERY BASIC Windows Form Application using Visual Studio 2005 and C# I have a MSQL db attached to the application, on the table are 2 columns IDNum (int) Primary AutoIncrement Nombre (varchar(50)) on the form I have TextBox called txtIDNum A button called btnSubmit another TextBox called txtNombre What I want to happen is someone types a number in the txtIDNum. Press the submit button ...Show All
BrainWasher ADOX column properties
Can anyone please provide c# example for the following vb ADOX code Set tbl = New ADOX.Table With tbl .Name = "Artist" .ParentCatalog = cat .Columns.Append "Artist_ID" , adInteger .Columns( "Artist_ID" ).Properties( "AutoIncrement" ).Value = True .Columns( "Artist_ID" ).Properties( "Nullable" ). ...Show All
Ilyas Kazi ReadOnly List<>?
Is there a way to get a ReadOnly List<> We could do that with ArrayList with: public class EmptyArrayList : ArrayList { public override bool IsReadOnly{ get { return true ; } } public override bool IsFixedSize{ get { return true ; } } private void OnPopulate() { Console .WriteLine( "Warning: Attempted to populate a static empty ArrayList" ); Console .WriteLine( new System.Diagno ...Show All
Henrik Viklund DataReader? Problem
Hi I have a weird problem I have encountered with an application I am developing. I have looked on the forums but I cannot find anyone with a similar problem. My application simply takes data from one database does some conversions and inserts it into another database. I should probably note that both databases are in Oracle. Anyways I have a section of code (see code below) that runs, but when I check the DataReader it shows "HasRows&q ...Show All
Peter Stuer soap response processing.......
Hi, I need to connect to a webservice and post soap request via http and should get response back and then need to process it, I am getting soap response back. now I need to process it and display in a grid, which would be the best way to process it, if I convert it to xml it would be easy for the dispaly, is anyway we can do it, pleaseeeeeeeeee advise. thanks Hi I am trying to send xml over HTTP to the serv ...Show All
syzheng Cryptographic Service Providers
Can someone please explain why the .NET framework allows us to access 128-bit crypto routines like TripleDES and yet, the redistributable does not include the CSPs for these algorithms The algorithms in the System.Security.Cryptography namespace fall into two categories, completely managed implementations (e.g. RijndaelManaged) and wrappers around the Win32 Crypto API (e.g. TripleDESCryptoServiceProvider) ...Show All
