steve that's why I told you to use POST instead of GET
POST does not give values in the URL Address... on GET
Web Client Application:
<form name="myform" id="myform" method="POST"
action="www.yourserver.com/loginpage.aspx">
<input type="hidden"
value="http://www.ClientWebServer.com/user/default.aspx" name="PostBackURL"
/>
<input type="hidden" value"iux876xj" name="CLientID" />
<a href="#" onclick="document.myform.submit();">Please click here to
login</a>
</form>
********************************************************************
Your loginpage.apx in you server
<%
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)
Dim sClientID as String = request("ClientID")
if sClientID isnot nothing then
if validateClientID( sClientID ) then
' everything is ok, let's show the login page to the
user, but before let's keep the PostBackURL
session("RedirectTo") = request("PostBackURL")
else
' the clientID does not EXIST redirect the user with an
error
response.redirect("http://www.ClientWebServer.com/user/default.aspx?error=1",
true )
end if
end if
End Sub
Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
' imagine this is the event when the user click the LOGIN button
in this page
dim sUser as string = fUser.text.tostring
dim sPwd as string = fPwd.text.tostring
if validateUser(sUser, sPwd) then
response.redirect( session("PostBackURL"), true)
else
myErrorLabel.Text = "Invalid Username/Password!"
end if
End Sub
%>
got it?...
if you still have doubts, send me an email (bruno.in.dk@gmail.com) and I
will send you 2 pages with this working.
--
Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Steven Spits" <nospam@company.com> escreveu na mensagem
news:uWZSro5kGHA.3512@TK2MSFTNGP03.phx.gbl...
|