I retrieve data from database like below. How do I check whether the value retrieved from database is null?
Private Function GetBatch() As DataSet
Dim dataset As New DataSet
Dim adapter As Data.SqlClient.SqlDataAdapter
Dim cn As New System.Data.SqlClient.SqlConnection(connectionstring())
GetBatchCommand.C...
Hi,
I have a problem in the instances of the website in ASP.NET web application.
website navigate in the the way
Page1-->page2-->Page3-->Page4 and so on..
But in if some value in a drop down box in Page1 with result in the following flow.
Page1-->page2-->Page4
But the problem is ...
When i stalled it on load balancer.
it gives...
I have one Field in MYSQL DB. Name is ' Field1 '. I can store the Richtextbox text(it contains Bold, Italic, Etc). using the code ' Richtextbox1.rtf '
But when i am trying to display using 'Richtextbox1.rtf=dt.rows(0).item(0).tostring ',
It shows 'File Format is not Valid '.
What is the Solution.
...
Hi, i'm using sharpdevelop to program WPF application(I'm newbie to WPF i've knowledge of VB only and no C#, is it necessary to learn C# to know WPF ?).
and i want to read CSV file first. after that i want to modify and save file. any suggestions and pointers for this ?
...
I have a simple ASP.NET GridView......... Using ASP.NET 2.0.
For some reason you cant right click on a item in a grieview and say Open in NEW tab or page. Why is that? And how can i fix this?
Thanks in advanced
...
Can I get an example of how to make something like a Vector or an ArrayList in Visual Basic .NET?
...
I have a solution with about 10 projects, and I recently upgraded to new version on NHibernate, yet when I run solution and get the message: "The located assembly's manifest definition does not match the assembly reference". So some component is looking for old version. I tried removing all references in my project to NH, and re-adding t...
I have a VB.NET site. At the top of many of my pages I have code such as this:
Partial Class _Default
Inherits System.Web.UI.Page
Dim fns As New Functions
Dim bOnOff As Boolean
Dim LNBs As New LimsNetBusiness.SiteUI.SiteUI
Dim LNBu As New LimsNetBusiness.User.user
Dim LNBp As New LimsNetBusiness.PasswordFunctio...
Hi, I have this function to see if all of a certain columns DataGridViewCheckBoxCell values are True. It however fails because it seems to think the current value is false. I'm running this code in the _CellContentClick event, is there somewhere else I could run this, after it's assigned the value to the cell?
Private Function AllTasksA...
I have a class in VB with some constants that represent the string name of my security roles. I need to be able to call a function to return to me a string array(or collection, or whatever) of the values of each of these constants. I will be using it to make sure that my databases Roles table has the same roles as coded into the applic...
in a windows form if i want to duplicate the properties window layout on my form, which is basically a 2 column table with title on the left and value on the right, what control do i use to achieve that?
...
I have a user control that creates a jQuery DatePicker (standard one in the UI). This user control is called twice by my page (date from/to) so I have dynamic ID's for my inputs/controls/buttons/what-not. I need to somehow set either a hidden input or use a webmethod somehow to set a variable on the user control so the search function ...
For Each row As DataGridViewRow In DGV.Rows
DGV.Rows.RemoveAt(CInt(row.Index.ToString))
Next
The above code will remove every other row
For i As Integer = 0 To 7 Step 1
For Each row As DataGridViewRow In DGV.Rows
DGV.Rows.RemoveAt(CInt(row.Index.ToString))
...
Title says it all. How can you obtain a list of files (as a stringcollection or some other storage method) which contains the full path on the user's computer to the files?
Is there a method for doing so?
...
My app bundles a set of VBScripts (UTF8 text files) into a VB.NET assembly. I used to embed the script code into the classes as String members, but this is proving to be a poor design. I want to include them as resources instead. What's the best way to add resources to the CompilerParams?
What I've got so far (excluding all the error ch...
Converting a downloaded query xml string to a usable xml document in vb2005.net
i would like to convert a image query, found here
http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=xxxxxxx&query=cars
in vb2005.net to the xmldocument which i can then cruise around and grab the data with, current code using the web...
I am having two databases for the same application , one in windows and the other is web based.Since web based one have few functionalities I can't opt for a single database.At the same time I want to share Both databases to be updated with other's data so as to work error free with my module of appointment fixing.If anyone have a nice...
http://msdn.microsoft.com/en-us/library/x810d419.aspx
From what we can see on MSDN, it says to be careful about which expressions we put as they change from language to language. My question is: what are the supported languages for writing those expressions? If various languages can do it, how does it detect which language is being used...
Hi,
I am using VB.net and Sql server 2005.
I have GridView in Application where I have my CPUserID. There can be thousands records in GridView with different CPUserIDs.
Now I have a button "Allocate Token". But before allocating the token I want to check in my Token Table that if that CPUserID has already exists in table it should no...
Hi,
I've got a strange problem with a Response.Redirect. I'm using VB.NET with the .NET 2 framework (so VS2005 & SP1).
I've got a page that I do a form submit on (that's a proper form method="POST" hard-coded onto the page) and that properly posts me back the page data which is then processed. As part of that processing the system det...