[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

03/23/2006 at 02:42PM PST, ID: 21786716
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

4.2

Redirect

Asked by lukegriffiths110 in Active Server Pages (ASP)

Tags: been

I need to redirect users from the page coded below to viewOrderDetails.asp, so basically the user doesn't have to click View Order Details. I have been trying to use:-

If InputIsValid = true Then
response.redirect("viewOrderDetails.asp")

after Session.Abandon

but this didn't work.


The source code which redirect ness to be added:-



<%  
Option Explicit
%>
      <!--#include file="Cart_Include.asp"-->
<%

Function AddOrderToOrderTable()

      dim rsOrders
      dim sqlString
     dim connectionString, physicalPath
      dim newOrderID

      connectionString = BuildConnectionString(DATABASE_NAME, DATABASE_PATH)
     
      sqlString = "select * from Orders"
     
      set rsOrders = Server.CreateObject("ADODB.Recordset")

   rsOrders.Open sqlString, connectionString, adOpenDynamic, adLockOptimistic

      rsOrders.AddNew

      rsOrders("CustomerFirstName") = ConvertEmptyToNull(FName)
      rsOrders("CustomerLastName") = ConvertEmptyToNull(LName)
      rsOrders("CustomerEmail") = ConvertEmptyToNull(EMail)
      rsOrders("OrderDate") = Date()
      rsOrders.Update
      rsOrders.Close
      rsOrders.Open sqlString, connectionString
      rsOrders.MoveLast  
      newOrderID = rsOrders("OrderID")
      rsOrders.Close
      Set rsOrders = Nothing
      AddOrderToOrderTable = newOrderID
     
End Function

Sub AddItemsToOrderDetails(theNewOrderID)

      dim rsOrderItems
      dim sqlString
     dim connectionString, physicalPath
     dim ID, price, productQuantity
     dim itemsInCart
      dim itemNumber  

      connectionString = BuildConnectionString(DATABASE_NAME, DATABASE_PATH)

      sqlString = "select * from OrderDetails"
     
      set rsOrderItems = Server.CreateObject("ADODB.Recordset")

   rsOrderItems.Open sqlString, connectionString, adOpenDynamic, adLockOptimistic

      itemsInCart = Session("ItemCount")

      for itemNumber = 0 to itemsInCart
     
           if ShoppingCart(0, itemNumber) <> "" then

                ID = ShoppingCart(PRODUCT_ID, itemNumber)
                price = ShoppingCart(PRODUCT_PRICE, itemNumber)
                productQuantity = ShoppingCart(PRODUCT_QUANTITY, itemNumber)
      rsOrderItems.AddNew
      rsOrderItems("OrderID") = theNewOrderID
      rsOrderItems("ProductID") = ID
      rsOrderItems("Price") = price
      rsOrderItems("Quantity") = productQuantity
      rsOrderItems.Update
     
           End If
     
      next  

      rsOrderItems.Close
      Set rsOrderItems = Nothing
     
End Sub

Function InputIsValid

      dim message, result

      result = True

     
      If FName = "" Then
           message = "You left First Name empty!"
           result = False
      ElseIf LName = "" Then
           message = "You left Last Name empty!"
           result = False
      ElseIf EMail = "" Then
           message = "You left E-Mail empty!"
           result = False
      End If

      Session("Message") = message

      InputIsValid = result

End Function
     
      dim OrderID
      dim FName, LName, Email

      FName = Request.Form("txtFName")
      LName = Request.Form("txtLName")
      EMail = Request.Form("txtEMail")
      If InputIsValid = False Then
           response.redirect "AddOrderForm.asp"
      End If

      If IsEmpty(Session("ShoppingCart")) Then
     
           Session("ShoppingCart") = ShoppingCart
           
           Session("ItemCount") = 0
      End If
      ShoppingCart = Session("ShoppingCart")
      OrderID = AddOrderToOrderTable()
      Call AddItemsToOrderDetails(OrderID)
      Session.Abandon
%>
[+][-]03/23/06 03:16 PM, ID: 16275932

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:22 PM, ID: 16275983

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:22 PM, ID: 16275989

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:25 PM, ID: 16276015

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:26 PM, ID: 16276022

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:29 PM, ID: 16276038

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:35 PM, ID: 16276066

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:38 PM, ID: 16276080

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:39 PM, ID: 16276094

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:45 PM, ID: 16276120

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:46 PM, ID: 16276126

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:48 PM, ID: 16276138

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:49 PM, ID: 16276141

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:49 PM, ID: 16276142

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:51 PM, ID: 16276152

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:52 PM, ID: 16276155

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:54 PM, ID: 16276171

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:56 PM, ID: 16276182

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 03:57 PM, ID: 16276185

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 03:57 PM, ID: 16276187

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:02 PM, ID: 16276210

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:07 PM, ID: 16276243

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:07 PM, ID: 16276246

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:09 PM, ID: 16276250

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:09 PM, ID: 16276251

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:10 PM, ID: 16276257

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:11 PM, ID: 16276261

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:12 PM, ID: 16276271

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:12 PM, ID: 16276276

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:13 PM, ID: 16276281

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:14 PM, ID: 16276291

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:14 PM, ID: 16276292

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:19 PM, ID: 16276320

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:21 PM, ID: 16276328

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:22 PM, ID: 16276334

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:24 PM, ID: 16276341

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:24 PM, ID: 16276342

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:24 PM, ID: 16276344

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:27 PM, ID: 16276356

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:27 PM, ID: 16276358

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:28 PM, ID: 16276361

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:29 PM, ID: 16276367

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:30 PM, ID: 16276375

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:30 PM, ID: 16276379

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:33 PM, ID: 16276391

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:36 PM, ID: 16276411

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:40 PM, ID: 16276424

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:44 PM, ID: 16276444

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:45 PM, ID: 16276454

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:50 PM, ID: 16276479

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:52 PM, ID: 16276496

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 04:56 PM, ID: 16276508

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 04:57 PM, ID: 16276513

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 05:00 PM, ID: 16276524

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/23/06 05:00 PM, ID: 16276528

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/23/06 11:10 PM, ID: 16277976

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: been
Sign Up Now!
Solution Provided By: TheMegaLoser
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20090824-EE-VQP-74