Can partial classes be used for web-services ?
Can partial classes be used for web-services or there is some other way to implement it ? ...
Can partial classes be used for web-services or there is some other way to implement it ? ...
I have following code that is generating random no. between 1 to 10. This is working fine. But, I do not want doubling in combobox (cmbRnd is my combo box). How can I avoid it? Private Sub cmdRnd_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cmdRnd.Click Dim random As New Random(), i As Integer = 1 Do While i < 10...
I am trying to send an Arraylist over to my server to broadcast to all other clients but I am not sure after serializing it, how do I proceed to send across. This is what I have here: Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim BinFormatter As New...
Hi Firstly, I've never used threads, but have found lots of examples on the internet about their use but nothing that obviously answers my question. I have a class that loads and manipulates a file(s). It is fairly CPU intensive so I intend to put it in its own thread so that the GUI remains responsive. However, I would also like to us...
Hi, I'm trying to write a small Windows Service in .NET 3.5, that check every 10mn or so if thee are new files in "C:\demofolder", then send e-mail out. So far, I made it to here like in the following code, then there's error in Public Sub New() Imports System Imports System.Timers Imports System.ServiceProcess Public Class TestMyServi...
I am trying to insert 11000 records using sqlite in database but values arent inserted though program executes without error. Dim s As New System.Text.StringBuilder("") sql = "insert into mulRecords1 (symbol, date_p,open_p,high_p,low_p,close_p,vol_p,oi_p) values ('@symbol', '@date_p','@open_p', '@high_p', '@low_p', '@close_p', '@vol_p'...
hello, how can i delete a item from an array (vb.net)? thanks ...
I am trying to append 3 fields one of which is an image field (long raw in oracle) from the local system to the server using vbscript and asp.net. I am using vbscript to open the local connection to the database on the system executing the program and am able to get all the records using recordset in vbscript. I dont know how to pass thi...
Is it possible to automatically insert a Code Snippet when an interface is implemented? If so, how do you do it? I am looking for something similar to when you implement IDispoable in VB. e.g. I have the following Interface Public Interface ITransferable ReadOnly Property TransferParameters() As Object End Interface I also hav...
I am using Excel interop in my VB.NET program. My problem is that I can't seem to figure out how to write to Excel and define the Range using numbers. Alright, so I have objects being created depending on the file that the user opens. So there could be 100 objects or there could be none. Now each object has an array of values, and these...
I'm creating an application that notifies users if a new row has been added to a table in the applications database. Would it be best to create a trigger for this or just check every few seconds directly from the application? Thoughts? ...
Suppose we have a class like: Public Class Question Private Shared _field as Integer = CrazyIntegersRepository.GetOne() ' Some other useful things go here End Class And the method GetOne throws an exception... How can we manage that? Is a good practice to rewrite that into a static constructor? When is the GetOne method go...
I am trying to create empty tables on Oracle as a part of initial setup for one of the internal tools. Before, I had a SQL script that had the create statements separated using semi-colon and was executing them without checking for existence as follows: Setup.sql: CREATE TABLE ex.employees ( empID NUMBER, firstName VARCHAR(255)...
What all points should I consider while making asp.net application for torrent ? The application would allow user to browse, upload, download torrents. Further is there any particular standard for making torrents. Kindly share and enlighten. Thanks in advance. ...
Hi, I have developed some software(vb.net) that records fees paid by the students. The purpose is that the database should be stored in a server, which can be accessed from any stations linked with it. This is working fine with a network of 10 computers. I need to publish it over the net so people could do this job logging in over int...
Hello hello. Here's what I have. I have an MVC application where all the data is tied together by VisitDate table in my database. The home page is a strongly typed view of type VisitDate, all it does is pull up some simple data. Now, here's where I'm having a problemo. I need a link that passes the current model in the view back to a sep...
I need to access a 3rd party web service. The computer that needs to make the call does not have internet access so it needs to go through a 2nd internal computer that does have internet access. I'm fairly new to consuming and using web services. Through searching I've established that I need to use some sort of routing to do this. ...
Kind of new to C# and trying to broaden my abilities a bit. I have this code in VB: Private Sub BreakdownFilesToCompare(ByRef file1BReader As BinaryReader, _ ByRef file2BReader As BinaryReader, _ ByRef firstFile As StandardFormatFile, _ ...
Consider the requirement to always declare Option Strict On. We'll always need to declare variables with the As keyword. What would be the type of an anonymous type? Example : Dim product As ... = New With { Key .Name = "paperclips", .Price = 1.29 } What will follow the As? ...
In .Net 3.5 and VB.NET VS2008 How to set the DataTextField property in this link: http://www.brainbell.com/tutorials/ASP/Simple_Databinding.html It says: Now update the page to build a list of TechnologyDescriptors and to attach the collection of TechnologyDescriptors for each control. For each control, set the DataTextField pro...