I have a strange situation here and I hope someone can help me. I don't have the same problem when using an untyped dataset.
OK. I have a typed dataset MyDS with a typed datatable MyTable (TableID, Title, Message).
The table gets filled with results from two tables, using a UNION ALL
Select
TableAID,
TableATitle,
Message
FROM T...
protected System.Threading.Thread m_searchthread = null;
Question: I've implemented a search algorithm, which a user can start from an ASP.NET website.
When the user clicks on Button "Start", this code is executed:
m_searchthread = new System.Threading.Thread(new System.Threading.ThreadStart(Search));
m_searchthread.IsBackground = tr...
I am new to VB.Net and I'm a little confused why this line happened to be valid in VB:
DataGridView1.DataSource = ds.Tables("Customerslist")
DataSource is of type Object while Tables("Customerslist") is of type DataTable. How will I know what types of objects can be assigned to the Datasource property?
...
Hi, I am changing a script that is used in ArcMap to create a UIControltool, which allows you that an available StreetView at a given coordinate in your Map pop-ups, to the ArcScene environment. I have the following problem: google opens but not at the right coordinates. I think there is an error in my definition of the spatial reference...
Hi All,
I am having a strange issue when building assembly's for one of my modules.
I was getting errors when running on 64bit which I traced back to being related to the assembly being 32bit specific. Our modules are(or should) all be built to be bit agnostic.
Running CorFlags.exe on the assembly showed the following.
Version : ...
C# in Depth (http://csharpindepth.com/) is an excellent book aimed at experienced .NET developers, however it's only for C-Sharpers. Anything like that available for VB.NET folks?
...
Hi i have a vb.net generated Dll with Com interop enabled. in my Vc++ 6.0 project i have included the .tlb and tried to create object for the class but it is failing for me.
CoInitialize(NULL); //initialize COM library
HRESULT hresult;
CLSID clsid;
hresult=CLSIDFromProgID(__uuidof(SHandler), &clsid); //retrieve CLSID of component
SHa...
So I want to test one of my Functions in my Web Project, but it's not actually connected to anything in the project yet (someone else is working on that part). The Function takes in an "ID" field, goes off and does some queries and gets some data, performs some calculations on it, and then writes a bunch of lines to a FileStream and retu...
I am using a masterpage. On a accounts page I have a Usercontrol on this UserControl I have one more user control. If Account is closed I want to Disable all the controls on Accounts page ( including parent and child userControl – controls collection).
How do I do this?
Thanks
...
Hi,
I having a problem in my website where I have 2 objects held in session, both object are structured differently and do not have any links to each other (not intentionally). Both objects however, have a collection of "Travellers". What I am trying to do is modify one collection by adding or removing "Travellers", when a finish button...
On buttonSave click after saving the record successfully ,I want to show “Save successfully “ message on a label on a page for few seconds and then reload the page.
Thanks in Advance
...
As Eric Gunnerson shows in this blog post, in C# you can nest using statements as:
using (StreamWriter w1 = File.CreateText("W1"))
using (StreamWriter w2 = File.CreateText("W2"))
{
// code here
}
Is there a similar way to do it in VB.Net? I want to avoid too many indentation levels.
...
I have a ASP.NET (C#) web page which utilizes a VB class library. The VB library performs a SOAP POST to a remote web service and returns a message. However the VB library keeps running into a "No connection could be made because the target machine actively refused it xxx.xxx.xxx.xxx"
However, I've also created a C# test client which ...
I have a file that has > 10 rows. I want to create 9 files that each contains equal number or rows, with the 10th file containing that equal number plus any left over.
I currently get the data from the main file by the following:
Dim sData As String
Using sr As New StreamReader(vsFilePath)
sData = sr.ReadToEnd
End Using
Dim oData...
On buttonSave click after saving the record successfully ,I want to show “Save successfully “ message on a label on a page for few seconds and then reload the page.
Thanks in Advance
...
I am using IonicZip to compress video files and store in a blob field. I have the zip file created just need to convert it to a byte array. How is this done without writing to the harddrive?
Thanks,
Dave
...
In ASP.NET MVC, is it possible to fill the list of values of a Html.DropDownList from multiple data sources along with multiple manually entered values?
Basically, I envision it being formated like the below using something along the lines of OPTGROUP:
**Group 1**
Manual Item 1
Manual Item 2
**Group 2**
DS1 Item 1
DS1 Item 2
**Group ...
What is the name of the character at the end of each of these lines?
Dim _int As Integer = 1I
Dim _short As Short = 1S
Dim _long As Long = 1L
Dim _single As Single = 1.0F
Dim _double As Decimal = 1D
I've always called these "type specifiers". I assume that's incorrect as I'm unable to find the official documentation using this term. I...
i have a string that comes in say "Joesph Van Andrews".
I want to split it in such a way that firstname is "Joseph" and lastname is "Van Andrews"
how can i do that in vb.net?
...
I have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did:
I Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module.
I opened the project properties and went to "Assembly Informat...