I would check a few more things as well.
First of all, using Request.Form only grabs variables that are POSTed, not
through the QueryString, since I don't know his query string, I thought I
would just bring that up.
Second, is Option Compare Text on? (this is why I don't use strings in web
queries). Go != GO != go
Third, Listen to Armin about the option strict on, using a straight out Dim
reminds me of old asp 2.0 days... It's extra work to go through all those
conversions... That, and its just bad practice.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
"Miguel Dias Moura" <in************@27lamps.com> schrieb
Please don't open a new thread for the the issue.
i have this code line in a script in my ASP.net / VB web site:
dim msgNewsletterAction
I hope in your real application you have Option Strict On.
msgNewsletterAction = Request.Form("newsletterAction")
Try this here:
msgbox msgNewsletterAction.gettype.fullname
msgbox msgNewsletterAction.tostring.length
What is displayed?
if msgNewsletterAction = "go" Then
Code1
Else
Code2
End If
--
Armin
How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html