Aurokripa
asked on
is any alternative of "history.back()" in ASP?
hello expert,
i am working in web site development for b2b application in ASP. In this application i am facing one problem as follow:
There is one form for Customer Master. In this form i ask user to give User Name, Password, First Name etc. Now on submit button i check database for Unique User Name. if user name is already exist then i want to show same form with given data. Is there any function in ASP like " history.back() " in javascript.
If you find any solution then give me reply as soon as possible . i am awaiting for your positive reply.
kamal
i am working in web site development for b2b application in ASP. In this application i am facing one problem as follow:
There is one form for Customer Master. In this form i ask user to give User Name, Password, First Name etc. Now on submit button i check database for Unique User Name. if user name is already exist then i want to show same form with given data. Is there any function in ASP like " history.back() " in javascript.
If you find any solution then give me reply as soon as possible . i am awaiting for your positive reply.
kamal
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually you don't need it if you don't write anything to the browser first!
Response.Buffer=True
Response.Buffer=True
<%
Response.Buffer=True
loginName=Request.QueryStr
pwd =Request.QueryString("pwd"
set Myconn=server.CreateObject
Myconn.Open "DRIVER={MicroSoft Access Driver (*.mdb)};DBQ=" & server.MapPath("./website.
set rs=server.CreateObject("AD
rs.open "Select * from Login where usrName='" &loginName& "' and pwd='" &pwd& "'" ,Myconn ,adOpenDynamic,adLockOptim
if rs.eof then
rs.AddNew
rs.Fields("usrName")=login
rs.Fields("pwd")=pwd
rs.Update
else
response.rediect("previous
end if
%>
;->
Kunal