I am using Request.IsSecureConnection to check for SSL and redirecting where appropriate. When running my asp.net website on Rackspace's cloud, the server is running behind an SSL cluster, so IsSecureConnection will always return false. The same goes for checking whether the url contains "https://", always false, checking the port, etc...
I have an encrypted SQL Server stored proc that I run with (or the vb .net equivalent code of):
declare @p4 nvarchar(100)
set @p4=NULL
declare @p5 bigint
set @p5=NULL
exec AA_PAY_BACS_EXPORT_RETRIEVE_S
@PS_UserId=N'ADMN',
@PS_Department=N'',
@PS_PayFrequency=2,
@PS_ErrorDescription=@p4 output
select @p4, @p5
this returns 2 datasets a...
Recently I implemented an interface which had some 130 members that i should implement (C#, but i think thats irrelevant).
How can i generate the stubs for all those automatically, in VS 2008
Edit:If its not possible in VS 2008, i've also installed Coderush Express, can some one guide me on how to do that with CR Express ?
...
In my .NET porject, I have to run a lot of validation on 4/5 fields. This validation checks if certain fields have errors, for example: the name field is not allowed to have numbers or symbols. If all these checks are passed, I need to execute a SQL query to pull some data out of the database.
I could have it with a lot of nested IFs, a...
I've got extremely strange behavior on one of my pages. I was able to get a work-around in place, but I'd like to get input on why this error is happening (and why my work-around actually works).
(Let me also say that this is in no way, shape, or form my code...so please don't bash me too hard)
When loading the page, we're getting
...
Hi All,
Banging my head against a wall here. I have a query that looks like this.
SELECT FirstName, LastName, Address
FROM Members
WHERE FirstName LIKE 'JOE%'
That works absolutely fine in query wizard and the DataTablePreview data window. However, when I do this.
SELECT FirstName, LastName, Address
FROM Members
WHERE FirstName L...
I've made a new combobox property : readonly.
I'm changing the dropdownstyle to simple.
There is a small combobox where i only need to see first 2 char.
The issue is when i change the dropdownstyle to simple since the text is longer then the space it's always at the end
All my property is doing : When you click save it changes the dropd...
Hi,
Following is the format of the data stored in my arraylist.
A-Amsterdam
B- Brussels
C-Canada
so and so forth.
I wan to search my array list by passing just the first few characters till '-'
So if i have something like AA-Test then i want to pass just 'AA' to check if it exists or not.
I know that i can use contains or binarysearc...
Is there a way to call a procedure in Visual Basic (.net) with a variable name?
For example, the variable strColour can be one of 10 pre-defined values, green blue black white red pink orange yellow indigo purple. How to handle each one is in it's own Sub Routine, colgreen, colblue, colblack and so on.
I can use a bunch of if..then..e...
I have a VB.NET program. In proerties/Application I checked Make a Single Instance Application. But it still allows someone from opening the program while already opened. How can I prevent this?
...
I have Informix Dynamic Server 11.50 and Informix Client SDK 3.5 installed on my server. I am developing a .NET application to read data from Informix database using ODBC functions.
In the database, i have a table with columns of Serial and BigInt data types defined. My data retrieve function looks like this.
Dim cmd As New Odbc.Od...
I'm using visual studios 2008, VB9 and I am trying to write an app that basically performs calculations on a set of data input by a user. During the calculations, I want to display the data at each step, and have it retained in the display area on the GUI (not overwritten by the next data being displayed).
For example:
UserInput = 1
D...
I have a dataset column which is "newsID".
I want to get the value of it's last record so that I can use it as a default value or starting point to auto increment when I add a new record using the BindingNavigator.
Thank you for your help!!!:)
...
Hi,
I have a form.vb file that has recently became a binary file, while it supposed to be a text file. That means that I can't compare or merge it anymore. When I try so, I get error message that tells me that the file contains '\000' character, but I can't find this character although I searched the whole file.
Do you know what is tha...
I've seen posts on deleting the lines from a text file that are specified as a function parameter, but I only need to delete the first and last lines from the file.
I'm still a newbie when it comes to working in files, but it seems that it should be simple to delete the first line... Just delete all text from BOF to the first CrLf chara...
Functionally, is there any difference (apart from syntax onbviously) between lambda expressions in C# and VB.Net?
EDIT: following up on CraigTP's answer: any references to the situation in .Net 4?
EDIT: I'm asking because I'm used to C#, but for a next project the customer asks VB.Net. We're not a priori against that. We realize that m...
I have to hide the VIEWSTATE and EVENTVALIDATION hidden fields on my ASP.net page at RUN time.
I managed to remove the EVENTVALIDATION like so.............
<%@ Page enableEventValidation="false" EnableViewState="false" %>
But the VIEWSTATE is still there and I cant get rid of it and I need to. (hard to explain why)
Is there another ...
Well im trying to make my own basic Slider control just so i can learn abit how to interact with the mouse...
so far i have this:
vb.net:
Private Sub Rectangle_MouseMove(ByVal sender as Object, ByVal e as System.Windows.Input.MouseEventArgs)
If (e.LeftButton = MouseButtonState.Pressed) Then
Dim p As Point = Mouse.GetPosition(Me)
...
I Have a windows application made using VB.net and Mysql database. I want to install it on a Local network to be used by several users on different windows machines. How best can I do this?
...
I am using vb.net 2005. I want one clarification for datagridview.
I use the following property to set the alignment of header text:
DataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.BottomCenter
This property applies to all header cells. I only want to change one headers alignment property.
How ca...