CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 After Login Problem - Frustration is kicking in :)

Print topic Send  topic

Author Message
Jan K. van Dalen
Posted: 07/21/2005, 6:42 PM

This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C58E3D.09950EC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, let me try again.

This is the generated code for the login and a Save Variable Value right =
after the login. The variable is not been set. I moved the Save =
Variable Value to another page to test and I get the correct result. =
Any ideas?=20

'Button Button_DoLogin Event OnClick. Action Login @4-D8B76358
If DBUtility.CheckUser(Loginlogin.Text,Loginpassword.Text) Then
If Not(HttpContext.Current.Request("ret_link") is Nothing) =
Then=20
If Not(HttpContext.Current.Request("ret_link")=3D"") =
Then=20
=
Response.Redirect(HttpContext.Current.Request("ret_link"))
Else
ErrorFlag=3DTrue
LoginErrors.Add("",rm.GetString("CCS_LoginError"))
End If
End If
Else
ErrorFlag=3DTrue
LoginErrors.Add("",rm.GetString("CCS_LoginError"))
End If
'End Button Button_DoLogin Event OnClick. Action Login

'Button Button_DoLogin Event OnClick. Action Save Variable Value =
@12-BCE91C0B
HttpContext.Current.Session("svDistributorID") =3D =
Settings.XERDataAccessObject.ExecuteScalar("SELECT GateKeeper.TypeID =
FROM GateKeeper WHERE GateKeeper.GateKeeperID=3D"&DBUtility.UserId)
'End Button Button_DoLogin Event OnClick. Action Save Variable Value

------=_NextPart_000_0006_01C58E3D.09950EC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3D"Courier New" size=3D2>Ok, let me try =
again.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>This is the generated code for =
the login=20
and a Save Variable Value right after the login.  The variable is =
not been=20
set.  I moved the Save Variable Value to another page to test and I =
get the=20
correct result.  Any ideas? </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>'Button Button_DoLogin Event =
OnClick.=20
Action Login @4-D8B76358<BR>        =
If=20
DBUtility.CheckUser(Loginlogin.Text,Loginpassword.Text)=20
Then<BR>           =
; If=20
Not(HttpContext.Current.Request("ret_link") is Nothing) Then=20
<BR>           &nb=
sp;   =20
If Not(HttpContext.Current.Request("ret_link")=3D"") Then=20
<BR>           &nb=
sp;   =20
Response.Redirect(HttpContext.Current.Request("ret_link"))<BR>  =
;            =
 =20
Else<BR>           =
;    =20
ErrorFlag=3DTrue<BR>         =
;      =20
LoginErrors.Add("",rm.GetString("CCS_LoginError"))<BR>   &=
nbsp;           =20
End =
If<BR>            =
End=20
If<BR>       =20
Else<BR>           =
;=20
ErrorFlag=3DTrue<BR>         =
;  =20
LoginErrors.Add("",rm.GetString("CCS_LoginError"))<BR>   &=
nbsp;   =20
End If<BR>'End Button Button_DoLogin Event OnClick. Action =
Login</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>'Button Button_DoLogin Event =
OnClick.=20
Action Save Variable Value=20
@12-BCE91C0B<BR>        <FONT=20
color=3D#ff0000>HttpContext.Current.Session("svDistributorID") =3D=20
Settings.XERDataAccessObject.ExecuteScalar("SELECT GateKeeper.TypeID =
FROM=20
GateKeeper WHERE =
GateKeeper.GateKeeperID=3D"&DBUtility.UserId)</FONT><BR>'End=20
Button Button_DoLogin Event OnClick. Action Save Variable =
Value</FONT></DIV>
<DIV><FONT face=3D"Courier New" =
size=3D2></FONT> </DIV></BODY></HTML>

------=_NextPart_000_0006_01C58E3D.09950EC0--
Jan K. van Dalen
Posted: 07/22/2005, 11:42 AM

This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C58ECB.83572980
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, I got everything working, Thanks ...

"Jan K. van Dalen" <vandj@markross.com> wrote in message =
news:dbpiti$sle$1@news.codecharge.com...
Ok, let me try again.

This is the generated code for the login and a Save Variable Value =
right after the login. The variable is not been set. I moved the Save =
Variable Value to another page to test and I get the correct result. =
Any ideas?=20

'Button Button_DoLogin Event OnClick. Action Login @4-D8B76358
If DBUtility.CheckUser(Loginlogin.Text,Loginpassword.Text) =
Then
If Not(HttpContext.Current.Request("ret_link") is Nothing) =
Then=20
If Not(HttpContext.Current.Request("ret_link")=3D"") =
Then=20
=
Response.Redirect(HttpContext.Current.Request("ret_link"))
Else
ErrorFlag=3DTrue
LoginErrors.Add("",rm.GetString("CCS_LoginError"))
End If
End If
Else
ErrorFlag=3DTrue
LoginErrors.Add("",rm.GetString("CCS_LoginError"))
End If
'End Button Button_DoLogin Event OnClick. Action Login

'Button Button_DoLogin Event OnClick. Action Save Variable Value =
@12-BCE91C0B
HttpContext.Current.Session("svDistributorID") =3D =
Settings.XERDataAccessObject.ExecuteScalar("SELECT GateKeeper.TypeID =
FROM GateKeeper WHERE GateKeeper.GateKeeperID=3D"&DBUtility.UserId)
'End Button Button_DoLogin Event OnClick. Action Save Variable Value

------=_NextPart_000_000C_01C58ECB.83572980
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ok, I got everything working, Thanks=20
....</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Jan K. van Dalen" <<A=20
href=3D"mailto:vandj@markross.com">vandj@markross.com</A>> wrote in =
message=20
<A=20
=
href=3D"news:dbpiti$sle$1@news.codecharge.com">news:dbpiti$sle$1@news.cod=
echarge.com</A>...</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Ok, let me try =
again.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>This is the generated code =
for the login=20
and a Save Variable Value right after the login.  The variable is =
not=20
been set.  I moved the Save Variable Value to another page to =
test and I=20
get the correct result.  Any ideas? </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>'Button Button_DoLogin Event =
OnClick.=20
Action Login @4-D8B76358<BR>        =
If=20
DBUtility.CheckUser(Loginlogin.Text,Loginpassword.Text)=20
=
Then<BR>           =
; If=20
Not(HttpContext.Current.Request("ret_link") is Nothing) Then=20
=
<BR>           &nb=
sp;   =20
If Not(HttpContext.Current.Request("ret_link")=3D"") Then=20
=
<BR>           &nb=
sp;   =20
=
Response.Redirect(HttpContext.Current.Request("ret_link"))<BR>  =
;            =
 =20
=
Else<BR>           =
;    =20
=
ErrorFlag=3DTrue<BR>         =
;      =20
=
LoginErrors.Add("",rm.GetString("CCS_LoginError"))<BR>   &=
nbsp;           =20
End =
If<BR>            =

End If<BR>       =20
=
Else<BR>           =
;=20
=
ErrorFlag=3DTrue<BR>         =
;  =20
=
LoginErrors.Add("",rm.GetString("CCS_LoginError"))<BR>   &=
nbsp;   =20
End If<BR>'End Button Button_DoLogin Event OnClick. Action =
Login</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>'Button Button_DoLogin Event =
OnClick.=20
Action Save Variable Value=20
@12-BCE91C0B<BR>        <FONT=20
color=3D#ff0000>HttpContext.Current.Session("svDistributorID") =3D=20
Settings.XERDataAccessObject.ExecuteScalar("SELECT GateKeeper.TypeID =
FROM=20
GateKeeper WHERE=20
GateKeeper.GateKeeperID=3D"&DBUtility.UserId)</FONT><BR>'End =
Button=20
Button_DoLogin Event OnClick. Action Save Variable Value</FONT></DIV>
<DIV><FONT face=3D"Courier New"=20
size=3D2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000C_01C58ECB.83572980--

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.