I am trying to use Authorize.net's SIM payment gateway process and am using the base code provided on the developer site. The problem is I am using Master Pages with my site and the hidden field names are getting concatenated with the nested control IDs as an example:
This is what the field should look like:
<input type="hidden" runat=...
Hi,
I use the following statement to shuffle the data in a range (for example 1 to 10) and result is stored in a combo box.
Dim RndSQs As New Random()
Dim ArNumbersSQs As Integer() = Enumerable.Range(1, Val(txtSQs.Text)).OrderBy( _
Function(x) RndSQs.Next()).ToArray()
Dim iSQ...
Hi All
Using the .NET mail api. I have tried using sendmail and sendasync and I am getting a complete application fail. The ASP.NET 2 runtime is failing
NOTE I am not getting any exceptions the application pool/Website completely dies HELP!!!
The system error log has 2 entries related to it I think and these are the w3p process ...
When declaring a byte array, what is the difference between the following? Is there one, or are these just two different ways of going about the same thing?
Dim var1 As Byte()
Dim var2() As Byte
...
I have List (of class). having 1800 of count and each object has 90 properties. When I terate earch with 90 properties taking more and more time. How to resolve this
Dim cellIntStyle As HSSFCellStyle = hssfworkbook.CreateCellStyle
cellIntStyle.DataFormat = HSSFDataFormat.GetBuiltinFormat("#")
Dim cellDateStyle As HSSFCellStyle = hss...
I was reading this article about relative time calculation
The problem is that the results are wrong due to the time offset. My webpage is Greek.
So how should i modify that function to work correctly, including the GMT+2 or GMT+3 hours offset?
...
I have a simple COM add-in for office that I am developing (for access specifically).
I have added a custom commandbarbutton item to the context menu that pops up when you right click on an object in the navigation pane.
This works fine. The debug code I added runs (currently just a msgbox command). The one thing I cannot figure out ...
I have a page with Ajax Tab controls, within one of the tabs is a webcontrol that as a Telerik RadGrid, with Edit forms pointing to another web control. That edit form also contains Ajax Tabs and on one of those tabs, there is an Ajax modal popup of yet another webcontrol.
The initial webcontrol works fine when used on it's own page, bu...
hello guys,
i know this a frequently asked question, but i cant find the solution. I hope u can help me.
i try ti bind imagebutton controls into a gridview.
i want to handle the data for the row where the button was clicked
my aspx file looks like
<asp:ImageButton ID="Button1"
runat="server"
...
I've check everywhere and can't find a solution. I have the following
Dim users as New List(of TUser)
Private Sub AddSelectedUsers()
For Each user as TUser in gridSelectedItems()
If Not users.Contains(user) Then
users.Add(user)
End If
Next
End Sub
The "Contains" is not working. I keep getting duplicates on the users list.
...
I've been trying to trace down a bug for hours now and it has come down to this:
Dim length as Integer = 300
Dim buffer() As Byte = binaryReader.ReadBytes(length)
Dim text As String = System.Text.Encoding.UTF8.GetString(buffer, 0, buffer.Length)
The problem is the buffer contains 300 bytes but the length of the string 'text' is now 28...
So I am getting the same exception as a lot of other people when I am trying to run an execute statement into my SQLite database in my Windows Forms project in Visual Studio 2010. The exception reads:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional confi...
I have code in an ASP.NET form that needs to, depending on user entry create messages in the database. We are speaking of potentially thousands of db entries. How do I protect against deadlocks, I mean apart from using Transactions and setting IsolationLevel to Serializable, as well as using WITH(NOLOCK) statement on my select statements...
I know that AndAlso is equivalent to && and OrElse is equivalent to ||. But what is the cleanest way to achieve the equivalent of Visual Basic's And and Or in C#?
For example, consider the following VB.NET code. The ValidateForControl method performs some validation and returns whether the state of the specified control is valid. The en...
I’ve got a massive memory leak in my program. This is the first time I’ve used IronPython in a tight loop, so I’m wondering if this could be the cause.
For Each column In m_Columns
Dim rawValue As String
rawValue = line.Substring(column.FileColumnIndex.Value - 1, column.FileColumnEndIndex.Value - column.FileColumnIndex.Value ...
Using VB.net, C# and SQL Server
I want to write a pseudo for my application.
pseudo code is like coding or flow chart...?
Can any one provide a sample pseudo code for any type of application.
...
I am having trouble binding data to data repeater when I use ISyncResult.
This is what I am doing.
There is a button inside a Update Panel that gets the input from the user and calls a function that returns a dataset that I then bind to data repeater which is also inside a update panel.
What I did is that I made a delegate to this functi...
Is there any way to make a RegularExpressionValidator render itself using display:block, instead of display:inline in its style attribute, when setting the Display property to "Display='Dynamic'"?
I have tried setting it in the stylesheet but this gets overwritten when it is rendered on the page.
Thanks
...
it doesnt like my code:
Dim n As Integer
Dim flag As Boolean
Dim i
Dim x() As Integer
n = InputBox("How many numbers do you want to be sorted?")
For i = 1 To n - 1 Step 1
x(i) = InputBox("Please enter a record")
Next i
I want to put values into x()
...
Hi
I am trying to split multiple arrays and insert them into SQL Server.
From my query string I receive the following Sport.aspx?ReaderID=A1B5A0F5C4E4A1B5A0F5C4E4&DataID=11B6C56A90B645B6C56A90B6,10 Oct 2010 13:15:20,|22B6C56A90B645B6C56A90B6,10 Oct 2010 14:15:26,|&Msg=04
What I need to do is split the pipe delimited field into MyTagI...