i dicided to rewrite my portal in asp but theres a problem! there an error!
could some one tell me whats wrong?
http://i.1asphost.com/myportaladminarea/home.asp
i need help fast!
Response.Write ("Welcome, your Logined As " & Session(“name”) & ")
count your quotes
right done the quote thing but now there are apearing some were else now! look at it ! (same link)
do you want me to post the whole code?
theres the asp code!
<%
If (Session)"name" = "") Then
Response.write("<a href=""login/default.asp"">Register</a> Or <a href=""login/default.asp"">Login</a>" & vbNewline)
Else
Response.write("Welcome, your Logined As & Session("name") &" & vbNewline)
End If
%>
ITS ASP
<%
If Session("name") = "") Then
Response.write("<a href=""login/default.asp"">Register</a> Or <a href=""login/default.asp"">Login</a>" & vbNewline)
Else
Response.write("Welcome, your Logined As & Session("name") &" & vbNewline)
End If
%>
nope it still dont work look at it now!!
/
digital’s code is correct -
that 500 error is stopping your code from even running
what else is going on codewise on the page?
If Session(“name”) = “” Then
again count your quotes, parenthesis, delimiters…always vital…
that is like step 1 of troubleshooting - don’t be afraid to experiment to find out the reason for the error - here we had an ending ) without a beginning (
done the braket thing now whats the matter its go again! “Expected ‘)’”?
is name the correct label? was it called something else earlier?
also try changing the “name” to ‘name’
thanks pr and ever one else who helped! it was the “” there meant to be ‘’ !lol! little mistake!
oh ****! it gone again i changed the
Response.write("Welcome, your Logined As & Session('name') &" & vbNewline)
to
Response.write("Welcome, your Logined As <% & Session('name') & %>" & vbNewline)
because the & Session(‘name’) & wasnt executing!
all i did was add the <% %> tags!
what the mater now?
http://i.1asphost.com/myportaladminarea/myportalnew/home.asp
you cant put the delimeter (thats what the <% %> are called) there…
its bad syntax -