I have an application I have built and when I debug/test it on my local machine it works great but when I put it on my development DNN portal the one part I need to work doesn't. Specifically, I have a page where a user enters serial numbers based on part, lot and quantity. What my page does on my local machine is a user enters the part, lot and quanty to scan then they scan a serial number. If the quantity scanned is larger than the quantity to scan then it will not let them continue.
txtQtyToScan.Text = 1 and txtQtyScanned.Text = 2 equals TRUE
txtQtyToScan.Text = 2 and txtQtyScanned.Text = 2 equals FALSE and will not let them continue.
Here is a simple block of text which checks those textboxes values. As I mentioned, it works fine in my local environment (which is not a DNN project but just a regular ASP.NET 3.5 web app) but when I copy my DLL and test it on my DNN install all the other areas work just fine except for this validation.
If txtQtyToScan.Text.Length < 1 Then
lblMessage.Text += "enter qty to scan"
txtQtyToScan.BackColor = Drawing.Color.Red
lblMessage.BackColor = Drawing.Color.Red
chk_err = 1
ElseIf (Convert.ToInt32(txtQtyScanned.Text) >= Convert.ToInt32(txtQtyToScan.Text)) Then
lblMessage.Text += " reached scanned qty"
lblMessage.BackColor = Drawing.Color.Red
txtQtyToScan.BackColor = Drawing.Color.Red
txtQtyScanned.BackColor = Drawing.Color.Red
chk_err = 1
End If